Function at 0x46acb7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea11c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
mov dword [ebp - 0x434], ecx
lea ecx, [ebp - 0x430]
call fcn.004d3300
mov dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004adbd0
add esp, 0xc
mov ecx, dword [ebp - 0x434]
add ecx, 0x2d4
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.004ade30
add esp, 8
push 0x52382c
lea eax, [ebp - 0x218]
push eax
call fcn.004ade40
add esp, 8
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.004adbd0
add esp, 0xc
push 0x10
push 0x52df50
lea edx, [ebp - 0x420]
push edx
call fcn.004ae270
add esp, 0xc
movsx eax, byte [ebp - 0x420]
test eax, eax
jne 0x46adac
cmp dword [0x52d238], 0x979
jne 0x46ad8c
push 0x523838
lea ecx, [ebp - 0x420]
push ecx
call fcn.004ade30
add esp, 8
jmp 0x46adac
cmp dword [0x52d238], 0x97a
jne 0x46adac
push 0x523840
lea edx, [ebp - 0x420]
push edx
call fcn.004ade30
add esp, 8
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.004ade40
add esp, 8
push 0x523848
lea edx, [ebp - 0x218]
push edx
call fcn.004ade40
add esp, 8
cmp dword [0x52df3c], 0
je 0x46ae6d
push 7
push 0
mov eax, dword [ebp - 0x434]
add eax, 0x1000
push eax
call fcn.004adbd0
add esp, 0xc
mov ecx, dword [ebp - 0x434]
add ecx, 0x8ec
push ecx
push 7
mov edx, dword [ebp - 0x434]
add edx, 0x1000
push edx
push 0x52e330
push str.FWTAG
push 0x523854
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x434]
movsx ecx, byte [eax + 0x1000]
test ecx, ecx
je 0x46ae6d
mov edx, dword [ebp - 0x434]
add edx, 0x1000
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.004ade40
add esp, 8
push 0x52385c
lea ecx, [ebp - 0x218]
push ecx
call fcn.004ade40
add esp, 8
push 0x208
push 0
lea edx, [ebp - 0x420]
push edx
call fcn.004adbd0
add esp, 0xc
mov eax, dword [ebp - 0x434]
add eax, 0x2d4
push eax
lea ecx, [ebp - 0x420]
push ecx
call fcn.004ade30
add esp, 8
push 0x523860
lea edx, [ebp - 0x420]
push edx
call fcn.004ade40
add esp, 8
push 0
push 0x8040
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x430]
call fcn.004d34b2
test eax, eax
je 0x46af74
lea ecx, [ebp - 0x430]
call fcn.004d37ac
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x434]
cmp dword [ecx + 0x123c], 0
jne 0x46af08
mov edx, dword [ebp - 0x10]
push edx
call fcn.004ae6be
add esp, 4
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x123c], eax
mov edx, dword [ebp - 0x434]
cmp dword [edx + 0x123c], 0
je 0x46af69
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx + 0x123c]
push edx
call fcn.004adbd0
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx + 0x123c]
push edx
lea ecx, [ebp - 0x430]
call fcn.004d35cf
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x1238], eax
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x1240], eax
lea ecx, [ebp - 0x430]
call fcn.004d36cd
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.004adbd0
add esp, 0xc
mov edx, dword [ebp - 0x434]
add edx, 0x2d4
push edx
lea eax, [ebp - 0x420]
push eax
call fcn.004ade30
add esp, 8
push str.DriveSettingMP_CIDtable.bin
lea ecx, [ebp - 0x420]
push ecx
call fcn.004ade40
add esp, 8
push 0
push 0x8040
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x430]
call fcn.004d34b2
test eax, eax
je 0x46b07c
lea ecx, [ebp - 0x430]
call fcn.004d37ac
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x434]
cmp dword [eax + 0x1248], 0
jne 0x46b010
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004ae6be
add esp, 4
mov edx, dword [ebp - 0x434]
mov dword [edx + 0x1248], eax
mov eax, dword [ebp - 0x434]
cmp dword [eax + 0x1248], 0
je 0x46b071
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 0x1248]
push eax
call fcn.004adbd0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 0x1248]
push eax
lea ecx, [ebp - 0x430]
call fcn.004d35cf
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x1244], eax
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x124c], eax
lea ecx, [ebp - 0x430]
call fcn.004d36cd
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.004adbd0
add esp, 0xc
mov edx, dword [ebp - 0x434]
add edx, 0x2d4
push edx
lea eax, [ebp - 0x420]
push eax
call fcn.004ade30
add esp, 8
push str.DriveSettingMP_IDtable.bin
lea ecx, [ebp - 0x420]
push ecx
call fcn.004ade40
add esp, 8
push 0
push 0x8040
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x430]
call fcn.004d34b2
test eax, eax
je 0x46b184
lea ecx, [ebp - 0x430]
call fcn.004d37ac
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x434]
cmp dword [eax + 0x1254], 0
jne 0x46b118
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004ae6be
add esp, 4
mov edx, dword [ebp - 0x434]
mov dword [edx + 0x1254], eax
mov eax, dword [ebp - 0x434]
cmp dword [eax + 0x1254], 0
je 0x46b179
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 0x1254]
push eax
call fcn.004adbd0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 0x1254]
push eax
lea ecx, [ebp - 0x430]
call fcn.004d35cf
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x1250], eax
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x1258], eax
lea ecx, [ebp - 0x430]
call fcn.004d36cd
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.004adbd0
add esp, 0xc
mov edx, dword [ebp - 0x434]
add edx, 0x2d4
push edx
lea eax, [ebp - 0x420]
push eax
call fcn.004ade30
add esp, 8
push str.DriveSettingMPINFO_Final.bin
lea ecx, [ebp - 0x420]
push ecx
call fcn.004ade40
add esp, 8
push 0
push 0x8040
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x430]
call fcn.004d34b2
test eax, eax
je 0x46b28c
lea ecx, [ebp - 0x430]
call fcn.004d37ac
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x434]
cmp dword [eax + 0x1260], 0
jne 0x46b220
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004ae6be
add esp, 4
mov edx, dword [ebp - 0x434]
mov dword [edx + 0x1260], eax
mov eax, dword [ebp - 0x434]
cmp dword [eax + 0x1260], 0
je 0x46b281
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 0x1260]
push eax
call fcn.004adbd0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 0x1260]
push eax
lea ecx, [ebp - 0x430]
call fcn.004d35cf
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x125c], eax
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x1264], eax
lea ecx, [ebp - 0x430]
call fcn.004d36cd
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.004adbd0
add esp, 0xc
mov edx, dword [ebp - 0x434]
add edx, 0x2d4
push edx
lea eax, [ebp - 0x420]
push eax
call fcn.004ade30
add esp, 8
push str.TablesTLCSeedTable1Z.bin
lea ecx, [ebp - 0x420]
push ecx
call fcn.004ade40
add esp, 8
push 0
push 0x8040
lea edx, [ebp - 0x420]
push edx
lea ecx, [ebp - 0x430]
call fcn.004d34b2
test eax, eax
je 0x46b394
lea ecx, [ebp - 0x430]
call fcn.004d37ac
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x434]
cmp dword [eax + 0x126c], 0
jne 0x46b328
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004ae6be
add esp, 4
mov edx, dword [ebp - 0x434]
mov dword [edx + 0x126c], eax
mov eax, dword [ebp - 0x434]
cmp dword [eax + 0x126c], 0
je 0x46b389
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 0x126c]
push eax
call fcn.004adbd0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 0x126c]
push eax
lea ecx, [ebp - 0x430]
call fcn.004d35cf
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x1268], eax
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x1270], eax
lea ecx, [ebp - 0x430]
call fcn.004d36cd
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.004adbd0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x420]
push eax
call fcn.004ade30
add esp, 8
cmp dword [0x52d238], 0x979
jne 0x46b3e2
push str.BootISP2258.bin
lea ecx, [ebp - 0x420]
push ecx
call fcn.004ade40
add esp, 8
jmp 0x46b402
cmp dword [0x52d238], 0x97a
jne 0x46b402
push str.BootISP2256.bin
lea edx, [ebp - 0x420]
push edx
call fcn.004ade40
add esp, 8
push 0
push 0x8040
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x430]
call fcn.004d34b2
test eax, eax
je 0x46b4c4
lea ecx, [ebp - 0x430]
call fcn.004d37ac
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x434]
cmp dword [ecx + 0x1278], 0
jne 0x46b458
mov edx, dword [ebp - 0x10]
push edx
call fcn.004ae6be
add esp, 4
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x1278], eax
mov edx, dword [ebp - 0x434]
cmp dword [edx + 0x1278], 0
je 0x46b4b9
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx + 0x1278]
push edx
call fcn.004adbd0
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx + 0x1278]
push edx
lea ecx, [ebp - 0x430]
call fcn.004d35cf
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x1274], eax
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x127c], eax
lea ecx, [ebp - 0x430]
call fcn.004d36cd
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.004adbd0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x420]
push eax
call fcn.004ade30
add esp, 8
cmp dword [0x52d238], 0x979
jne 0x46b512
push 0x523920
lea ecx, [ebp - 0x420]
push ecx
call fcn.004ade40
add esp, 8
jmp 0x46b532
cmp dword [0x52d238], 0x97a
jne 0x46b532
push 0x523930
lea edx, [ebp - 0x420]
push edx
call fcn.004ade40
add esp, 8
push 0
push 0x8040
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x430]
call fcn.004d34b2
test eax, eax
je 0x46b5f4
lea ecx, [ebp - 0x430]
call fcn.004d37ac
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x434]
cmp dword [ecx + 0x1284], 0
jne 0x46b588
mov edx, dword [ebp - 0x10]
push edx
call fcn.004ae6be
add esp, 4
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x1284], eax
mov edx, dword [ebp - 0x434]
cmp dword [edx + 0x1284], 0
je 0x46b5e9
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx + 0x1284]
push edx
call fcn.004adbd0
add esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx + 0x1284]
push edx
lea ecx, [ebp - 0x430]
call fcn.004d35cf
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x1280], eax
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x1288], eax
lea ecx, [ebp - 0x430]
call fcn.004d36cd
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.004adbd0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x420]
push eax
call fcn.004ade30
add esp, 8
movsx ecx, byte [0x52df38]
test ecx, ecx
je 0x46b653
push 0x52df38
lea edx, [ebp - 0x420]
push edx
call fcn.004ade40
add esp, 8
push 0x523940
lea eax, [ebp - 0x420]
push eax
call fcn.004ade40
add esp, 8
cmp dword [0x52d238], 0x979
jne 0x46b69a
mov ecx, dword [ebp - 0x434]
cmp dword [ecx + 0x1050], 0
je 0x46b684
push 0x523944
lea edx, [ebp - 0x420]
push edx
call fcn.004ade40
add esp, 8
jmp 0x46b698
push 0x523954
lea eax, [ebp - 0x420]
push eax
call fcn.004ade40
add esp, 8
jmp 0x46b6df
cmp dword [0x52d238], 0x97a
jne 0x46b6df
mov ecx, dword [ebp - 0x434]
cmp dword [ecx + 0x1050], 0
je 0x46b6cb
push 0x523960
lea edx, [ebp - 0x420]
push edx
call fcn.004ade40
add esp, 8
jmp 0x46b6df
push 0x523970
lea eax, [ebp - 0x420]
push eax
call fcn.004ade40
add esp, 8
push 0
push 0x8040
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x430]
call fcn.004d34b2
test eax, eax
je 0x46b7f1
lea ecx, [ebp - 0x430]
call fcn.004d37ac
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x434]
cmp dword [edx + 0x1290], 0
jne 0x46b737
mov eax, dword [ebp - 0x10]
push eax
call fcn.004ae6be
add esp, 4
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x1290], eax
jmp 0x46b785
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 0x1294]
cmp eax, dword [ebp - 0x10]
je 0x46b785
mov ecx, dword [ebp - 0x434]
mov edx, dword [ecx + 0x1290]
push edx
call fcn.004ae5ad
add esp, 4
mov eax, dword [ebp - 0x434]
mov dword [eax + 0x1290], 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004ae6be
add esp, 4
mov edx, dword [ebp - 0x434]
mov dword [edx + 0x1290], eax
mov eax, dword [ebp - 0x434]
cmp dword [eax + 0x1290], 0
je 0x46b7e6
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 0x1290]
push eax
call fcn.004adbd0
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 0x1290]
push eax
lea ecx, [ebp - 0x430]
call fcn.004d35cf
mov ecx, dword [ebp - 0x434]
mov dword [ecx + 0x128c], eax
mov edx, dword [ebp - 0x434]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x1294], eax
lea ecx, [ebp - 0x430]
call fcn.004d36cd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x430]
call fcn.004d33f5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret