Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MPASM 4.83 KB | None | 0 0
  1. .text:00405134                 .globl wl_format_ssid
  2. .text:00405134 wl_format_ssid:                          # CODE XREF: .text:004118B0p
  3. .text:00405134                                          # DATA XREF: .text:00407008o ...
  4. .text:00405134
  5. .text:00405134 var_28          = -0x28
  6. .text:00405134 var_20          = -0x20
  7. .text:00405134 var_1C          = -0x1C
  8. .text:00405134 var_18          = -0x18
  9. .text:00405134 var_14          = -0x14
  10. .text:00405134 var_10          = -0x10
  11. .text:00405134 var_C           = -0xC
  12. .text:00405134 var_8           = -8
  13. .text:00405134
  14. .text:00405134                 li      $gp, 0xFC04E5C
  15. .text:0040513C                 addu    $gp, $t9
  16. .text:00405140                 addiu   $sp, -0x38
  17. .text:00405144                 sw      $ra, 0x38+var_8($sp)
  18. .text:00405148                 sw      $s5, 0x38+var_C($sp)
  19. .text:0040514C                 sw      $s4, 0x38+var_10($sp)
  20. .text:00405150                 sw      $s3, 0x38+var_14($sp)
  21. .text:00405154                 sw      $s2, 0x38+var_18($sp)
  22. .text:00405158                 sw      $s1, 0x38+var_1C($sp)
  23. .text:0040515C                 sw      $s0, 0x38+var_20($sp)
  24. .text:00405160                 sw      $gp, 0x38+var_28($sp)
  25. .text:00405164                 move    $s2, $a2
  26. .text:00405168                 slti    $v1, $a2, 0x21
  27. .text:0040516C                 li      $v0, 0x20
  28. .text:00405170                 movz    $s2, $v0, $v1
  29. .text:00405174                 move    $s4, $a0
  30. .text:00405178                 move    $s5, $a1
  31. .text:0040517C                 move    $s0, $a0
  32. .text:00405180                 blez    $s2, loc_405210
  33. .text:00405184                 move    $s3, $0
  34. .text:00405188                 addu    $v0, $s5, $s3
  35. .text:0040518C
  36. .text:0040518C loc_40518C:                              # CODE XREF: wl_format_ssid+D4j
  37. .text:0040518C                 lbu     $s1, 0($v0)
  38. .text:00405190                 li      $v0, 0x5C
  39. .text:00405194                 bne     $s1, $v0, loc_4051A8
  40. .text:00405198                 la      $t9, __ctype_b_loc
  41. .text:0040519C                 sb      $s1, 0($s0)
  42. .text:004051A0                 b       loc_4051E4
  43. .text:004051A4                 addiu   $s0, 1
  44. .text:004051A8  # ---------------------------------------------------------------------------
  45. .text:004051A8
  46. .text:004051A8 loc_4051A8:                              # CODE XREF: wl_format_ssid+60j
  47. .text:004051A8                 jalr    $t9
  48. .text:004051AC                 nop
  49. .text:004051B0                 lw      $v1, 0($v0)
  50. .text:004051B4                 sll     $v0, $s1, 1
  51. .text:004051B8                 lw      $gp, 0x38+var_28($sp)
  52. .text:004051BC                 addu    $v0, $v1
  53. .text:004051C0                 lhu     $v0, 0($v0)
  54. .text:004051C4                 la      $a1, 0x420000
  55. .text:004051C8                 la      $t9, sprintf
  56. .text:004051CC                 srl     $v0, 6
  57. .text:004051D0                 andi    $v0, 1
  58. .text:004051D4                 addiu   $a1, (aX02x - 0x420000)  # "\\x%02X"
  59. .text:004051D8                 move    $a2, $s1
  60. .text:004051DC                 beqz    $v0, loc_4051F0
  61. .text:004051E0                 move    $a0, $s0
  62. .text:004051E4
  63. .text:004051E4 loc_4051E4:                              # CODE XREF: wl_format_ssid+6Cj
  64. .text:004051E4                 sb      $s1, 0($s0)
  65. .text:004051E8                 b       loc_405200
  66. .text:004051EC                 addiu   $s0, 1
  67. .text:004051F0  # ---------------------------------------------------------------------------
  68. .text:004051F0
  69. .text:004051F0 loc_4051F0:                              # CODE XREF: wl_format_ssid+A8j
  70. .text:004051F0                 jalr    $t9
  71. .text:004051F4                 nop
  72. .text:004051F8                 lw      $gp, 0x38+var_28($sp)
  73. .text:004051FC                 addu    $s0, $v0
  74. .text:00405200
  75. .text:00405200 loc_405200:                              # CODE XREF: wl_format_ssid+B4j
  76. .text:00405200                 addiu   $s3, 1
  77. .text:00405204                 slt     $v0, $s3, $s2
  78. .text:00405208                 bnez    $v0, loc_40518C
  79. .text:0040520C                 addu    $v0, $s5, $s3
  80. .text:00405210
  81. .text:00405210 loc_405210:                              # CODE XREF: wl_format_ssid+4Cj
  82. .text:00405210                 subu    $v0, $s0, $s4
  83. .text:00405214                 sb      $0, 0($s0)
  84. .text:00405218                 lw      $ra, 0x38+var_8($sp)
  85. .text:0040521C                 lw      $s5, 0x38+var_C($sp)
  86. .text:00405220                 lw      $s4, 0x38+var_10($sp)
  87. .text:00405224                 lw      $s3, 0x38+var_14($sp)
  88. .text:00405228                 lw      $s2, 0x38+var_18($sp)
  89. .text:0040522C                 lw      $s1, 0x38+var_1C($sp)
  90. .text:00405230                 lw      $s0, 0x38+var_20($sp)
  91. .text:00405234                 jr      $ra
  92. .text:00405238                 addiu   $sp, 0x38
  93. .text:00405238  # End of function wl_format_ssid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement