Function at 0x50f358
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6cc
push ebx
mov dword [ebp - 0x6c0], 0
mov dword [ebp - 0x4a8], 0
mov dword [ebp - 0x418], 0xff
mov dword [ebp - 0x6c4], 0x20
mov dword [ebp - 0x394], 8
mov dword [ebp - 0x5b0], 2
mov dword [ebp - 0x5ac], 4
mov byte [ebp - 4], 0
mov byte [ebp - 0x4a4], 1
mov byte [ebp - 0x41c], 0
cmp dword [ebp + 0x10], 8
jl 0x50f3e4
cmp dword [ebp + 0x10], 0x1c
jg 0x50f3e4
mov dword [ebp - 0x6c4], 0x30
mov dword [ebp - 0x394], 0x10
mov dword [ebp - 0x5ac], 8
push 0x5db7b8
lea eax, [ebp - 0x20c]
push eax
call fcn.0054c45b
add esp, 8
mov dword [ebp - 0x420], 0
jmp 0x50f413
mov ecx, dword [ebp - 0x420]
add ecx, 1
mov dword [ebp - 0x420], ecx
mov edx, dword [ebp - 0x5ac]
imul edx, dword [ebp - 0x5b0]
cmp dword [ebp - 0x420], edx
jge 0x50f57e
mov eax, dword [ebp - 0x420]
cmp eax, dword [ebp - 0x5ac]
jl 0x50f44b
cmp dword [ebp - 0x418], 0xff
je 0x50f44b
jmp 0x50f57e
mov ecx, dword [ebp - 0x420]
imul ecx, dword [ebp - 0x394]
mov edx, dword [ebp - 0x6c4]
add edx, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + edx]
test ecx, ecx
je 0x50f579
mov edx, dword [ebp - 0x420]
imul edx, dword [ebp - 0x394]
mov eax, dword [ebp - 0x6c4]
add eax, edx
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx + eax]
cmp edx, 0xff
je 0x50f579
cmp dword [ebp - 0x418], 0xff
jne 0x50f50f
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x418], eax
mov ecx, dword [ebp - 0x420]
imul ecx, dword [ebp - 0x394]
mov edx, dword [ebp - 0x6c4]
add edx, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cl, byte [eax + edx]
push ecx
push 0x5b329c
lea edx, [ebp - 0x20c]
push edx
call fcn.0054c45b
add esp, 0xc
push 6
mov eax, dword [ebp - 0x420]
imul eax, dword [ebp - 0x394]
mov ecx, dword [ebp - 0x6c4]
add ecx, eax
mov edx, dword [ebp + 0xc]
add edx, ecx
push edx
lea eax, [ebp - 0x5b8]
push eax
call fcn.0054c980
add esp, 0xc
mov cl, byte [ebp - 0x41c]
add cl, 1
mov byte [ebp - 0x41c], cl
mov edx, dword [ebp - 0x4a4]
and edx, 0xff
test edx, edx
je 0x50f579
mov eax, dword [ebp - 0x420]
imul eax, dword [ebp - 0x394]
mov ecx, dword [ebp - 0x6c4]
add ecx, eax
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx + ecx]
mov ecx, dword [ebp - 0x5ac]
add ecx, dword [ebp - 0x420]
imul ecx, dword [ebp - 0x394]
mov edx, dword [ebp - 0x6c4]
add edx, ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov bl, byte [ecx + edx]
cmp eax, ebx
je 0x50f579
mov byte [ebp - 0x4a4], 0
jmp 0x50f404
mov edx, dword [ebp - 0x4a4]
and edx, 0xff
test edx, edx
je 0x50f5c6
mov eax, dword [ebp - 0x41c]
and eax, 0xff
test eax, eax
je 0x50f5c0
mov ecx, dword [ebp - 0x41c]
and ecx, 0xff
and ecx, 0x80000001
jns 0x50f5b6
dec ecx
or ecx, 0xfffffffe
inc ecx
test ecx, ecx
jne 0x50f5c0
mov byte [ebp - 4], 0xa0
jmp 0x50f5c4
mov byte [ebp - 4], 0x50
jmp 0x50f5fb
mov edx, dword [ebp - 0x41c]
and edx, 0xff
test edx, edx
je 0x50f5f7
mov eax, dword [ebp - 0x41c]
and eax, 0xff
and eax, 0x80000001
jns 0x50f5ed
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x50f5f7
mov byte [ebp - 4], 0xa
jmp 0x50f5fb
mov byte [ebp - 4], 5
cmp dword [ebp - 0x418], 0xff
jne 0x50f60e
xor eax, eax
jmp 0x5102a4
lea ecx, [ebp - 0x6bc]
push ecx
call fcn.0053534c
add esp, 4
push str.UFD_ALL_FORCEFW_
lea edx, [ebp - 0x6bc]
push edx
call fcn.0054bed0
add esp, 8
mov dword [ebp - 0x420], 0
jmp 0x50f64c
mov eax, dword [ebp - 0x420]
add eax, 1
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0x17
jge 0x50f6a0
mov ecx, dword [ebp - 0x420]
imul ecx, ecx, 0x14
mov edx, dword [ecx + 0x5b8460]
cmp edx, dword [ebp + 0x10]
jne 0x50f69e
mov eax, dword [ebp - 0x420]
imul eax, eax, 0x14
mov ecx, dword [eax + 0x5b8458]
push ecx
lea edx, [ebp - 0x6bc]
push edx
call fcn.0054bed0
add esp, 8
push str..FFW
lea eax, [ebp - 0x6bc]
push eax
call fcn.0054bed0
add esp, 8
jmp 0x50f6a0
jmp 0x50f63d
cmp dword [ebp - 0x6c0], 0
jne 0x50f894
lea ecx, [ebp - 0x6bc]
push ecx
push 0
push str.CardModeNum
push 0x5b32cc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x6c8], eax
mov dword [ebp - 0x420], 0
jmp 0x50f6e7
mov edx, dword [ebp - 0x420]
add edx, 1
mov dword [ebp - 0x420], edx
mov eax, dword [ebp - 0x420]
cmp eax, dword [ebp - 0x6c8]
jge 0x50f894
mov ecx, dword [ebp - 0x420]
push ecx
push str.CardMode__d
lea edx, [ebp - 0x414]
push edx
call fcn.0054c45b
add esp, 0xc
lea eax, [ebp - 0x6bc]
push eax
push 0x104
lea ecx, [ebp - 0x390]
push ecx
push 0x5b32e8
lea edx, [ebp - 0x414]
push edx
push 0x5b32ec
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x420]
push eax
push str.CardMode__d_Vendor
lea ecx, [ebp - 0x414]
push ecx
call fcn.0054c45b
add esp, 0xc
lea edx, [ebp - 0x6bc]
push edx
push 0x80
lea eax, [ebp - 0x4a0]
push eax
push 0x5db7bc
lea ecx, [ebp - 0x414]
push ecx
push 0x5b3310
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x4a0]
push edx
call fcn.0054c3e0
add esp, 4
test eax, eax
je 0x50f7b5
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x4a0]
push ecx
call fcn.0054ccc0
add esp, 8
test eax, eax
jne 0x50f7b5
jmp 0x50f6d8
lea edx, [ebp - 0x390]
push edx
call fcn.005353c2
add esp, 4
mov ecx, dword [ebp - 4]
and ecx, 0xff
and eax, ecx
mov edx, dword [ebp - 4]
and edx, 0xff
cmp eax, edx
jne 0x50f88f
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x6cc], eax
cmp dword [ebp - 0x6cc], 0
je 0x50f7fd
cmp dword [ebp - 0x6cc], 1
je 0x50f81a
jmp 0x50f835
mov ecx, dword [ebp - 0x420]
push ecx
push str.CardMode__d_ISP
lea edx, [ebp - 0x414]
push edx
call fcn.0054c45b
add esp, 0xc
jmp 0x50f835
mov eax, dword [ebp - 0x420]
push eax
push str.CardMode__d_PTest
lea ecx, [ebp - 0x414]
push ecx
call fcn.0054c45b
add esp, 0xc
lea edx, [ebp - 0x6bc]
push edx
push 0x104
lea eax, [ebp - 0x390]
push eax
push 0x5db7c0
lea ecx, [ebp - 0x414]
push ecx
push str.ForceCardModeFW
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x390]
push edx
call fcn.0054c3e0
add esp, 4
test eax, eax
je 0x50f88f
lea eax, [ebp - 0x390]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.0054bec0
add esp, 8
mov dword [ebp - 0x6c0], 1
jmp 0x50f6d8
cmp dword [ebp - 0x6c0], 0
jne 0x51029e
push 0x5b3354
lea edx, [ebp - 0x28c]
push edx
call fcn.0054bec0
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x50f8c1
cmp dword [ebp + 0x14], 1
jne 0x50f904
push 0xff
push 0
lea eax, [ebp - 0x5a8]
push eax
call fcn.0054bfb0
add esp, 0xc
lea ecx, [ebp - 0x5a8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005102a9
add esp, 8
test eax, eax
je 0x50f904
lea eax, [ebp - 0x5a8]
push eax
lea ecx, [ebp - 0x28c]
push ecx
call fcn.0054bec0
add esp, 8
cmp dword [ebp + 0x14], 3
jne 0x50f943
push str.ForceFW_19nm
lea edx, [ebp - 0x28c]
push edx
call fcn.0054bec0
add esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax + 0x29074], 0
je 0x50f93e
push str.ForceFW
lea ecx, [ebp - 0x28c]
push ecx
call fcn.0054bec0
add esp, 8
jmp 0x50fa0b
cmp dword [ebp + 0x14], 4
jne 0x50f962
push 0x5b3374
lea edx, [ebp - 0x28c]
push edx
call fcn.0054bec0
add esp, 8
jmp 0x50fa0b
cmp dword [ebp + 0x14], 5
jne 0x50f981
push str.ForceFW_FlashID
lea eax, [ebp - 0x28c]
push eax
call fcn.0054bec0
add esp, 8
jmp 0x50fa0b
cmp dword [ebp + 0x14], 6
jne 0x50f99d
push str.ForceFW_4PlaneISP
lea ecx, [ebp - 0x28c]
push ecx
call fcn.0054bec0
add esp, 8
jmp 0x50fa0b
cmp dword [ebp + 0x14], 7
jne 0x50f9b9
push str.ForceFW_4PlaneISP_Toggle
lea edx, [ebp - 0x28c]
push edx
call fcn.0054bec0
add esp, 8
jmp 0x50fa0b
cmp dword [ebp + 0x14], 8
jne 0x50f9d5
push str.ForceFWFolder
lea eax, [ebp - 0x28c]
push eax
call fcn.0054bec0
add esp, 8
jmp 0x50fa0b
cmp dword [ebp + 0x14], 9
jne 0x50f9f1
push str.ForceFW_Title
lea ecx, [ebp - 0x28c]
push ecx
call fcn.0054bec0
add esp, 8
jmp 0x50fa0b
cmp dword [ebp + 0x14], 0xa
jne 0x50fa0b
push str.ForceFW_Process
lea edx, [ebp - 0x28c]
push edx
call fcn.0054bec0
add esp, 8
lea eax, [ebp - 0x6bc]
push eax
push 0
push str.SupportDisableInterleave
lea ecx, [ebp - 0x28c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x4a8], eax
cmp dword [ebp + 0x14], 0
jne 0x50fb41
cmp dword [ebp - 0x4a8], 0
je 0x50fa8e
cmp dword [ebp + 0x1c], 0
je 0x50fa8e
mov edx, dword [ebp - 0x5b5]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b6]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b7]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b8]
and edx, 0xff
push edx
push 0x5b3410
lea eax, [ebp - 0x414]
push eax
call fcn.0054c45b
add esp, 0x18
jmp 0x50fad5
mov ecx, dword [ebp - 0x5b5]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b6]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b7]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b8]
and ecx, 0xff
push ecx
push 0x5b3438
lea edx, [ebp - 0x414]
push edx
call fcn.0054c45b
add esp, 0x18
mov eax, dword [ebp + 8]
cmp dword [eax + 0x29074], 0
je 0x50fb41
mov ecx, dword [ebp - 0x5b3]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b4]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b5]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b6]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b7]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b8]
and eax, 0xff
push eax
push 0x5b3454
lea ecx, [ebp - 0x414]
push ecx
call fcn.0054c45b
add esp, 0x20
cmp dword [ebp + 0x14], 1
jne 0x50fc56
cmp dword [ebp - 0x4a8], 0
je 0x50fba3
cmp dword [ebp + 0x1c], 0
je 0x50fba3
mov edx, dword [ebp - 0x5b5]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b6]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b7]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b8]
and edx, 0xff
push edx
push str.FLASH__.2X_.2X_.2X_.2X_PTEST_DisableIntlv
lea eax, [ebp - 0x414]
push eax
call fcn.0054c45b
add esp, 0x18
jmp 0x50fbea
mov ecx, dword [ebp - 0x5b5]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b6]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b7]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b8]
and ecx, 0xff
push ecx
push str.FLASH__.2X_.2X_.2X_.2X_PTEST
lea edx, [ebp - 0x414]
push edx
call fcn.0054c45b
add esp, 0x18
mov eax, dword [ebp + 8]
cmp dword [eax + 0x29074], 0
je 0x50fc56
mov ecx, dword [ebp - 0x5b3]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b4]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b5]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b6]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b7]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b8]
and eax, 0xff
push eax
push str.FLASH__.2X_.2X_.2X_.2X.2X_.2X_PTEST
lea ecx, [ebp - 0x414]
push ecx
call fcn.0054c45b
add esp, 0x20
cmp dword [ebp + 0x14], 3
jne 0x50fd6b
cmp dword [ebp - 0x4a8], 0
je 0x50fcb8
cmp dword [ebp + 0x1c], 0
je 0x50fcb8
mov edx, dword [ebp - 0x5b5]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b6]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b7]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b8]
and edx, 0xff
push edx
push str.FLASH__.2X_.2X_.2X_.2X_ISP_DisableIntlv
lea eax, [ebp - 0x414]
push eax
call fcn.0054c45b
add esp, 0x18
jmp 0x50fcff
mov ecx, dword [ebp - 0x5b5]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b6]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b7]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b8]
and ecx, 0xff
push ecx
push str.FLASH__.2X_.2X_.2X_.2X_ISP
lea edx, [ebp - 0x414]
push edx
call fcn.0054c45b
add esp, 0x18
mov eax, dword [ebp + 8]
cmp dword [eax + 0x29074], 0
je 0x50fd6b
mov ecx, dword [ebp - 0x5b3]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b4]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b5]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b6]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b7]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b8]
and eax, 0xff
push eax
push str.FLASH__.2X_.2X_.2X_.2X.2X_.2X_ISP
lea ecx, [ebp - 0x414]
push ecx
call fcn.0054c45b
add esp, 0x20
cmp dword [ebp + 0x14], 4
jne 0x50fdd1
mov edx, dword [ebp - 0x5b3]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b4]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b5]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b6]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b7]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b8]
and ecx, 0xff
push ecx
push str.FLASH__.2X_.2X_.2X_.2X_.2X_.2X_Folder
lea edx, [ebp - 0x414]
push edx
call fcn.0054c45b
add esp, 0x20
cmp dword [ebp + 0x14], 5
jne 0x50fe37
mov eax, dword [ebp - 0x5b3]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b4]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b5]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b6]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b7]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b8]
and edx, 0xff
push edx
push 0x5b3578
lea eax, [ebp - 0x414]
push eax
call fcn.0054c45b
add esp, 0x20
cmp dword [ebp + 0x14], 6
jne 0x50fe9d
mov ecx, dword [ebp - 0x5b3]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b4]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b5]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b6]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b7]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b8]
and eax, 0xff
push eax
push 0x5b3598
lea ecx, [ebp - 0x414]
push ecx
call fcn.0054c45b
add esp, 0x20
cmp dword [ebp + 0x14], 7
jne 0x50ff03
mov edx, dword [ebp - 0x5b3]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b4]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b5]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b6]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b7]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b8]
and ecx, 0xff
push ecx
push 0x5b35b8
lea edx, [ebp - 0x414]
push edx
call fcn.0054c45b
add esp, 0x20
cmp dword [ebp + 0x14], 8
jne 0x50ff69
mov eax, dword [ebp - 0x5b3]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b4]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b5]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b6]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b7]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b8]
and edx, 0xff
push edx
push 0x5b35d8
lea eax, [ebp - 0x414]
push eax
call fcn.0054c45b
add esp, 0x20
cmp dword [ebp + 0x14], 9
jne 0x50ffcf
mov ecx, dword [ebp - 0x5b3]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b4]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b5]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b6]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b7]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b8]
and eax, 0xff
push eax
push 0x5b35f8
lea ecx, [ebp - 0x414]
push ecx
call fcn.0054c45b
add esp, 0x20
cmp dword [ebp + 0x14], 0xa
jne 0x510035
mov edx, dword [ebp - 0x5b3]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b4]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b5]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b6]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b7]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b8]
and ecx, 0xff
push ecx
push str.FLASH__.2X_.2X_.2X_.2X_.2X_.2X
lea edx, [ebp - 0x414]
push edx
call fcn.0054c45b
add esp, 0x20
cmp dword [ebp + 0x14], 0xb
jne 0x51009b
mov eax, dword [ebp - 0x5b3]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b4]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b5]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b6]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b7]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b8]
and edx, 0xff
push edx
push str.FLASH__.2X_.2X_.2X_.2X_.2X_.2X_BCEN
lea eax, [ebp - 0x414]
push eax
call fcn.0054c45b
add esp, 0x20
cmp dword [ebp + 0x14], 0xc
jne 0x510101
mov ecx, dword [ebp - 0x5b3]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b4]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b5]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b6]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b7]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b8]
and eax, 0xff
push eax
push str.FLASH__.2X_.2X_.2X_.2X_.2X_.2X_BCDS
lea ecx, [ebp - 0x414]
push ecx
call fcn.0054c45b
add esp, 0x20
cmp dword [ebp + 0x14], 0xd
jne 0x510167
mov edx, dword [ebp - 0x5b3]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b4]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b5]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b6]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b7]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b8]
and ecx, 0xff
push ecx
push str.FLASH__.2X_.2X_.2X_.2X_.2X_.2X_HYEN
lea edx, [ebp - 0x414]
push edx
call fcn.0054c45b
add esp, 0x20
cmp dword [ebp + 0x14], 0xe
jne 0x5101cd
mov eax, dword [ebp - 0x5b3]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b4]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b5]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x5b6]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x5b7]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x5b8]
and edx, 0xff
push edx
push str.FLASH__.2X_.2X_.2X_.2X_.2X_.2X_HYDS
lea eax, [ebp - 0x414]
push eax
call fcn.0054c45b
add esp, 0x20
push 0x104
push 0
lea ecx, [ebp - 0x390]
push ecx
call fcn.0054bfb0
add esp, 0xc
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x28c]
push eax
push str._szHeadName_____s___szItemName___s__r_n
lea ecx, [ebp - 0x204]
push ecx
call fcn.0054c45b
add esp, 0x10
lea edx, [ebp - 0x204]
push edx
call fcn.00536ebf
add esp, 4
lea eax, [ebp - 0x6bc]
push eax
push 0x104
lea ecx, [ebp - 0x390]
push ecx
push 0x5db7c4
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x51029e
lea ecx, [ebp - 0x390]
push ecx
call fcn.0054c3e0
add esp, 4
test eax, eax
je 0x51029e
lea edx, [ebp - 0x390]
push edx
push str.szFFWName___s__r_n
lea eax, [ebp - 0x204]
push eax
call fcn.0054c45b
add esp, 0xc
lea ecx, [ebp - 0x204]
push ecx
call fcn.00536ebf
add esp, 4
lea edx, [ebp - 0x390]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.0054bec0
add esp, 8
mov dword [ebp - 0x6c0], 1
mov eax, dword [ebp - 0x6c0]
pop ebx
mov esp, ebp
pop ebp
ret