Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .text:00405134 .globl wl_format_ssid
- .text:00405134 wl_format_ssid: # CODE XREF: .text:004118B0p
- .text:00405134 # DATA XREF: .text:00407008o ...
- .text:00405134
- .text:00405134 var_28 = -0x28
- .text:00405134 var_20 = -0x20
- .text:00405134 var_1C = -0x1C
- .text:00405134 var_18 = -0x18
- .text:00405134 var_14 = -0x14
- .text:00405134 var_10 = -0x10
- .text:00405134 var_C = -0xC
- .text:00405134 var_8 = -8
- .text:00405134
- .text:00405134 li $gp, 0xFC04E5C
- .text:0040513C addu $gp, $t9
- .text:00405140 addiu $sp, -0x38
- .text:00405144 sw $ra, 0x38+var_8($sp)
- .text:00405148 sw $s5, 0x38+var_C($sp)
- .text:0040514C sw $s4, 0x38+var_10($sp)
- .text:00405150 sw $s3, 0x38+var_14($sp)
- .text:00405154 sw $s2, 0x38+var_18($sp)
- .text:00405158 sw $s1, 0x38+var_1C($sp)
- .text:0040515C sw $s0, 0x38+var_20($sp)
- .text:00405160 sw $gp, 0x38+var_28($sp)
- .text:00405164 move $s2, $a2
- .text:00405168 slti $v1, $a2, 0x21
- .text:0040516C li $v0, 0x20
- .text:00405170 movz $s2, $v0, $v1
- .text:00405174 move $s4, $a0
- .text:00405178 move $s5, $a1
- .text:0040517C move $s0, $a0
- .text:00405180 blez $s2, loc_405210
- .text:00405184 move $s3, $0
- .text:00405188 addu $v0, $s5, $s3
- .text:0040518C
- .text:0040518C loc_40518C: # CODE XREF: wl_format_ssid+D4j
- .text:0040518C lbu $s1, 0($v0)
- .text:00405190 li $v0, 0x5C
- .text:00405194 bne $s1, $v0, loc_4051A8
- .text:00405198 la $t9, __ctype_b_loc
- .text:0040519C sb $s1, 0($s0)
- .text:004051A0 b loc_4051E4
- .text:004051A4 addiu $s0, 1
- .text:004051A8 # ---------------------------------------------------------------------------
- .text:004051A8
- .text:004051A8 loc_4051A8: # CODE XREF: wl_format_ssid+60j
- .text:004051A8 jalr $t9
- .text:004051AC nop
- .text:004051B0 lw $v1, 0($v0)
- .text:004051B4 sll $v0, $s1, 1
- .text:004051B8 lw $gp, 0x38+var_28($sp)
- .text:004051BC addu $v0, $v1
- .text:004051C0 lhu $v0, 0($v0)
- .text:004051C4 la $a1, 0x420000
- .text:004051C8 la $t9, sprintf
- .text:004051CC srl $v0, 6
- .text:004051D0 andi $v0, 1
- .text:004051D4 addiu $a1, (aX02x - 0x420000) # "\\x%02X"
- .text:004051D8 move $a2, $s1
- .text:004051DC beqz $v0, loc_4051F0
- .text:004051E0 move $a0, $s0
- .text:004051E4
- .text:004051E4 loc_4051E4: # CODE XREF: wl_format_ssid+6Cj
- .text:004051E4 sb $s1, 0($s0)
- .text:004051E8 b loc_405200
- .text:004051EC addiu $s0, 1
- .text:004051F0 # ---------------------------------------------------------------------------
- .text:004051F0
- .text:004051F0 loc_4051F0: # CODE XREF: wl_format_ssid+A8j
- .text:004051F0 jalr $t9
- .text:004051F4 nop
- .text:004051F8 lw $gp, 0x38+var_28($sp)
- .text:004051FC addu $s0, $v0
- .text:00405200
- .text:00405200 loc_405200: # CODE XREF: wl_format_ssid+B4j
- .text:00405200 addiu $s3, 1
- .text:00405204 slt $v0, $s3, $s2
- .text:00405208 bnez $v0, loc_40518C
- .text:0040520C addu $v0, $s5, $s3
- .text:00405210
- .text:00405210 loc_405210: # CODE XREF: wl_format_ssid+4Cj
- .text:00405210 subu $v0, $s0, $s4
- .text:00405214 sb $0, 0($s0)
- .text:00405218 lw $ra, 0x38+var_8($sp)
- .text:0040521C lw $s5, 0x38+var_C($sp)
- .text:00405220 lw $s4, 0x38+var_10($sp)
- .text:00405224 lw $s3, 0x38+var_14($sp)
- .text:00405228 lw $s2, 0x38+var_18($sp)
- .text:0040522C lw $s1, 0x38+var_1C($sp)
- .text:00405230 lw $s0, 0x38+var_20($sp)
- .text:00405234 jr $ra
- .text:00405238 addiu $sp, 0x38
- .text:00405238 # End of function wl_format_ssid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement