Function at 0x52e5ab
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
push ebx
push esi
push edi
mov dword [ebp - 0x340], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x198], 0xff
mov dword [ebp - 0x344], 0x20
mov dword [ebp - 0x114], 8
mov dword [ebp - 0x230], 2
mov dword [ebp - 0x22c], 4
mov byte [ebp - 4], 0
mov byte [ebp - 0x224], 1
mov byte [ebp - 0x19c], 0
cmp dword [ebp + 0xc], 8
jl 0x52e639
cmp dword [ebp + 0xc], 0x16
jg 0x52e639
mov dword [ebp - 0x344], 0x30
mov dword [ebp - 0x114], 0x10
mov dword [ebp - 0x22c], 8
push 0x6858cc
lea eax, [ebp - 0xc]
push eax
call fcn.0054c6e3
add esp, 8
mov dword [ebp - 0x1a0], 0
jmp 0x52e665
mov ecx, dword [ebp - 0x1a0]
add ecx, 1
mov dword [ebp - 0x1a0], ecx
mov edx, dword [ebp - 0x22c]
imul edx, dword [ebp - 0x230]
cmp dword [ebp - 0x1a0], edx
jge 0x52e7cd
mov eax, dword [ebp - 0x1a0]
cmp eax, dword [ebp - 0x22c]
jl 0x52e69d
cmp dword [ebp - 0x198], 0xff
je 0x52e69d
jmp 0x52e7cd
mov ecx, dword [ebp - 0x1a0]
imul ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x344]
add edx, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + edx]
test ecx, ecx
je 0x52e7c8
mov edx, dword [ebp - 0x1a0]
imul edx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x344]
add eax, edx
mov ecx, dword [ebp + 8]
xor edx, edx
mov dl, byte [ecx + eax]
cmp edx, 0xff
je 0x52e7c8
cmp dword [ebp - 0x198], 0xff
jne 0x52e75e
mov eax, dword [ebp - 0x1a0]
mov dword [ebp - 0x198], eax
mov ecx, dword [ebp - 0x1a0]
imul ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x344]
add edx, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cl, byte [eax + edx]
push ecx
push 0x5cbb48
lea edx, [ebp - 0xc]
push edx
call fcn.0054c6e3
add esp, 0xc
push 6
mov eax, dword [ebp - 0x1a0]
imul eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x344]
add ecx, eax
mov edx, dword [ebp + 8]
add edx, ecx
push edx
lea eax, [ebp - 0x238]
push eax
call fcn.0054c7e0
add esp, 0xc
mov cl, byte [ebp - 0x19c]
add cl, 1
mov byte [ebp - 0x19c], cl
mov edx, dword [ebp - 0x224]
and edx, 0xff
test edx, edx
je 0x52e7c8
mov eax, dword [ebp - 0x1a0]
imul eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 0x344]
add ecx, eax
mov edx, dword [ebp + 8]
xor eax, eax
mov al, byte [edx + ecx]
mov ecx, dword [ebp - 0x22c]
add ecx, dword [ebp - 0x1a0]
imul ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x344]
add edx, ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov bl, byte [ecx + edx]
cmp eax, ebx
je 0x52e7c8
mov byte [ebp - 0x224], 0
jmp 0x52e656
mov edx, dword [ebp - 0x224]
and edx, 0xff
test edx, edx
je 0x52e815
mov eax, dword [ebp - 0x19c]
and eax, 0xff
test eax, eax
je 0x52e80f
mov ecx, dword [ebp - 0x19c]
and ecx, 0xff
and ecx, reloc.WSOCK32.dll_accept
jns 0x52e805
dec ecx
or ecx, 0xfffffffe
inc ecx
test ecx, ecx
jne 0x52e80f
mov byte [ebp - 4], 0xa0
jmp 0x52e813
mov byte [ebp - 4], 0x50
jmp 0x52e84a
mov edx, dword [ebp - 0x19c]
and edx, 0xff
test edx, edx
je 0x52e846
mov eax, dword [ebp - 0x19c]
and eax, 0xff
and eax, reloc.WSOCK32.dll_accept
jns 0x52e83c
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x52e846
mov byte [ebp - 4], 0xa
jmp 0x52e84a
mov byte [ebp - 4], 5
cmp dword [ebp - 0x198], 0xff
jne 0x52e85d
xor eax, eax
jmp 0x52ed5b
lea ecx, [ebp - 0x33c]
push ecx
call fcn.00529440
add esp, 4
push str.UFD_ALL_FORCEFW_
lea edx, [ebp - 0x33c]
push edx
call fcn.0054bea0
add esp, 8
mov dword [ebp - 0x1a0], 0
jmp 0x52e89b
mov eax, dword [ebp - 0x1a0]
add eax, 1
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0x11
jge 0x52e8ef
mov ecx, dword [ebp - 0x1a0]
imul ecx, ecx, 0xc
mov edx, dword [ecx + 0x5cb0e0]
cmp edx, dword [ebp + 0xc]
jne 0x52e8ed
mov eax, dword [ebp - 0x1a0]
imul eax, eax, 0xc
mov ecx, dword [eax + 0x5cb0d8]
push ecx
lea edx, [ebp - 0x33c]
push edx
call fcn.0054bea0
add esp, 8
push str..FFW
lea eax, [ebp - 0x33c]
push eax
call fcn.0054bea0
add esp, 8
jmp 0x52e8ef
jmp 0x52e88c
cmp dword [ebp - 0x340], 0
jne 0x52eaf9
lea ecx, [ebp - 0x33c]
push ecx
push 0
push str.CardModeNum
push 0x5cbb78
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x348], eax
mov dword [ebp - 0x1a0], 0
jmp 0x52e936
mov edx, dword [ebp - 0x1a0]
add edx, 1
mov dword [ebp - 0x1a0], edx
mov eax, dword [ebp - 0x1a0]
cmp eax, dword [ebp - 0x348]
jge 0x52eaf9
mov ecx, dword [ebp - 0x1a0]
push ecx
push str.CardMode__d
lea edx, [ebp - 0x194]
push edx
call fcn.0054c6e3
add esp, 0xc
lea eax, [ebp - 0x33c]
push eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0x5cbb94
lea edx, [ebp - 0x194]
push edx
push 0x5cbb98
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [ebp - 0x1a0]
push eax
push str.CardMode__d_Vendor
lea ecx, [ebp - 0x194]
push ecx
call fcn.0054c6e3
add esp, 0xc
lea edx, [ebp - 0x33c]
push edx
push 0x80
lea eax, [ebp - 0x220]
push eax
push 0x6858d0
lea ecx, [ebp - 0x194]
push ecx
push 0x5cbbbc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [ebp - 0x220]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
test ecx, ecx
je 0x52ea04
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.0054cb20
add esp, 8
test eax, eax
jne 0x52ea04
jmp 0x52e927
lea ecx, [ebp - 0x110]
push ecx
call fcn.00529529
add esp, 4
mov edx, dword [ebp - 4]
and edx, 0xff
and eax, edx
mov ecx, dword [ebp - 4]
and ecx, 0xff
cmp eax, ecx
jne 0x52eaf4
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x34c], edx
cmp dword [ebp - 0x34c], 0
je 0x52ea4c
cmp dword [ebp - 0x34c], 1
je 0x52ea69
jmp 0x52ea84
mov eax, dword [ebp - 0x1a0]
push eax
push str.CardMode__d_ISP
lea ecx, [ebp - 0x194]
push ecx
call fcn.0054c6e3
add esp, 0xc
jmp 0x52ea84
mov edx, dword [ebp - 0x1a0]
push edx
push str.CardMode__d_PTest
lea eax, [ebp - 0x194]
push eax
call fcn.0054c6e3
add esp, 0xc
lea ecx, [ebp - 0x33c]
push ecx
push 0x104
lea edx, [ebp - 0x110]
push edx
push 0x6858d4
lea eax, [ebp - 0x194]
push eax
push str.ForceCardModeFW
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [ebp - 0x110]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
test ecx, ecx
je 0x52eaf4
lea edi, [ebp - 0x110]
mov edx, dword [ebp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x340], 1
jmp 0x52e927
cmp dword [ebp - 0x340], 0
jne 0x52ed55
lea ecx, [ebp - 0x33c]
push ecx
push 0
push str.SupportDisableInterleave
push 0x5cbc1c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x228], eax
cmp dword [ebp + 0x10], 0
jne 0x52ec03
cmp dword [ebp - 0x228], 0
je 0x52eba3
cmp dword [0x67aa6c], 0
je 0x52eba3
mov edx, dword [ebp - 0x233]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x234]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x235]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x236]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x237]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x238]
and ecx, 0xff
push ecx
push str.FLASH__.2X_.2X_.2X_.2X_.2X_.2X_ISP_DisableIntlv
lea edx, [ebp - 0x194]
push edx
call fcn.0054c6e3
add esp, 0x20
jmp 0x52ec03
mov eax, dword [ebp - 0x233]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x234]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x235]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x236]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x237]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x238]
and edx, 0xff
push edx
push str.FLASH__.2X_.2X_.2X_.2X_.2X_.2X_ISP
lea eax, [ebp - 0x194]
push eax
call fcn.0054c6e3
add esp, 0x20
cmp dword [ebp + 0x10], 1
jne 0x52ece1
cmp dword [ebp - 0x228], 0
je 0x52ec81
cmp dword [0x67aa6c], 0
je 0x52ec81
mov ecx, dword [ebp - 0x233]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x234]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x235]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x236]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x237]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x238]
and eax, 0xff
push eax
push str.FLASH__.2X_.2X_.2X_.2X_.2X_.2X_PTEST_DisableIntlv
lea ecx, [ebp - 0x194]
push ecx
call fcn.0054c6e3
add esp, 0x20
jmp 0x52ece1
mov edx, dword [ebp - 0x233]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x234]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x235]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x236]
and edx, 0xff
push edx
mov eax, dword [ebp - 0x237]
and eax, 0xff
push eax
mov ecx, dword [ebp - 0x238]
and ecx, 0xff
push ecx
push str.FLASH__.2X_.2X_.2X_.2X_.2X_.2X_PTEST
lea edx, [ebp - 0x194]
push edx
call fcn.0054c6e3
add esp, 0x20
lea eax, [ebp - 0x33c]
push eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0x6858d8
lea edx, [ebp - 0x194]
push edx
push str.ForceFW
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x52ed55
lea edi, [ebp - 0x110]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xffffffff
test ecx, ecx
je 0x52ed55
lea edi, [ebp - 0x110]
mov edx, dword [ebp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x340], 1
mov eax, dword [ebp - 0x340]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret