Function at 0x52e572
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc20
mov dword [ebp - 0xc20], ecx
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x618], 0
mov dword [ebp - 0xb1c], 0
mov dword [ebp - 0x614], 0
mov dword [ebp - 0x610], 0
mov eax, 0x5c4fa8
test eax, eax
je 0x52e5c6
mov eax, 1
jmp 0x52ebb3
cmp dword [0x5be754], 0
jne 0x52e5f3
cmp dword [0x5be618], 0
je 0x52ebae
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc20]
cmp dword [edx + ecx*4 + 0x195c0], 0
jne 0x52ebae
mov eax, dword [ebp + 8]
imul eax, eax, 0x124
mov dword [eax + 0x5db8b4], 0
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x124
mov dword [ecx + 0x5db9c8], 0
push 0x200
push 0
lea edx, [ebp - 0x200]
push edx
call fcn.0054bfb0
add esp, 0xc
push 0
push 0x28
push 0x200
lea eax, [ebp - 0x200]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xc20]
add ecx, 0x10d2c
call fcn.004d0cb4
mov dword [ebp - 0xb1c], eax
push 0x200
push 0
lea edx, [ebp - 0xb18]
push edx
call fcn.0054bfb0
add esp, 0xc
mov eax, dword [ebp - 0x39]
and eax, 0xff
shl eax, 8
mov ecx, dword [ebp - 0x3a]
and ecx, 0xff
add eax, ecx
mov dword [ebp - 0x60c], eax
push 0
push 0x28
push 0x200
lea edx, [ebp - 0xb18]
push edx
mov eax, dword [ebp - 0x60c]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0xc20]
add ecx, 0x10d2c
call fcn.004d0cb4
mov dword [ebp - 0xb1c], eax
mov edx, dword [ebp - 0xac6]
and edx, 0xff
cmp edx, 0x46
jne 0x52eb91
mov eax, dword [ebp - 0xac5]
and eax, 0xff
cmp eax, 0x41
jne 0x52eb91
mov ecx, dword [ebp - 0xac4]
and ecx, 0xff
cmp ecx, 0x54
jne 0x52eb91
push 0x200
push 0
lea edx, [ebp - 0x508]
push edx
call fcn.0054bfb0
add esp, 0xc
mov eax, dword [ebp - 0x39]
and eax, 0xff
shl eax, 8
mov ecx, dword [ebp - 0x3a]
and ecx, 0xff
add eax, ecx
mov edx, dword [ebp - 0xb0a]
and edx, 0xff
add eax, edx
mov dword [ebp - 0x60c], eax
push 0
push 0x28
push 0x200
lea eax, [ebp - 0x508]
push eax
mov ecx, dword [ebp - 0x60c]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0xc20]
add ecx, 0x10d2c
call fcn.004d0cb4
mov dword [ebp - 0xb1c], eax
push 0x200
push 0
lea eax, [ebp - 0x918]
push eax
call fcn.0054bfb0
add esp, 0xc
push 0x1f0
lea ecx, [ebp - 0x908]
push ecx
lea edx, [ebp - 0x4f8]
push edx
call fcn.0054c730
add esp, 0xc
test eax, eax
je 0x52e960
mov eax, 0x5c4fa8
test eax, eax
jne 0x52e960
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x124
mov dword [ecx + 0x5db8b4], 1
mov edx, dword [ebp + 8]
imul edx, edx, 0x42c
mov eax, dword [ebp - 0xc20]
movsx ecx, byte [eax + edx + 0x163c]
test ecx, ecx
je 0x52e95b
push 0x5dcc90
lea edx, [ebp - 0x718]
push edx
call fcn.0054bec0
add esp, 8
lea eax, [ebp - 0x308]
push eax
mov ecx, dword [ebp - 0xc20]
mov edx, dword [ecx + 0x4b4]
push edx
call fcn.004016bb
add esp, 8
lea eax, [ebp - 0x308]
push eax
push 0xff
lea ecx, [ebp - 0x718]
push ecx
push 0x5dcc94
push 0x5b7870
push 0x5b7880
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x718]
push edx
call fcn.0054c3e0
add esp, 4
test eax, eax
jne 0x52e867
push 0x5b7890
lea eax, [ebp - 0x718]
push eax
call fcn.0054bec0
add esp, 8
lea ecx, [ebp - 0x718]
push ecx
mov edx, dword [ebp + 8]
imul edx, edx, 0x3c
mov eax, dword [ebp - 0xc20]
lea ecx, [eax + edx + 0x14280]
call fcn.0056432f
cmp dword [0x5be754], 0
je 0x52e95b
push 0x5dcc98
lea ecx, [ebp - 0x718]
push ecx
call fcn.0054bec0
add esp, 8
lea edx, [ebp - 0x308]
push edx
mov eax, dword [ebp - 0xc20]
mov ecx, dword [eax + 0x4b4]
push ecx
call fcn.004016bb
add esp, 8
lea edx, [ebp - 0x308]
push edx
push 0xff
lea eax, [ebp - 0x718]
push eax
push 0x5dcc9c
push 0x5b789c
push 0x5b78a4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x718]
push ecx
call fcn.0054c3e0
add esp, 4
test eax, eax
jne 0x52e912
push 0x5b78b0
lea edx, [ebp - 0x718]
push edx
call fcn.0054bec0
add esp, 8
lea eax, [ebp - 0x718]
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x3c
mov edx, dword [ebp - 0xc20]
lea ecx, [edx + ecx + 0xaec]
call fcn.0056432f
push 0x5dcca0
mov eax, dword [ebp + 8]
imul eax, eax, 0x3c
mov ecx, dword [ebp - 0xc20]
lea ecx, [ecx + eax + 0x14280]
call fcn.0056432f
push 1
mov ecx, dword [ebp - 0xc20]
call fcn.004089e0
jmp 0x52eb8f
push 0xff
push 0
lea edx, [ebp - 0xc1c]
push edx
call fcn.0054bfb0
add esp, 0xc
push 0xff
push 0
lea eax, [ebp - 0x608]
push eax
call fcn.0054bfb0
add esp, 0xc
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x42c
mov edx, dword [ebp - 0xc20]
mov al, byte [edx + ecx + 0x163c]
push eax
lea ecx, [ebp - 0x608]
push ecx
lea edx, [ebp - 0xc1c]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc20]
add ecx, 0x10d2c
call fcn.004d9786
push 0x5b78c0
lea ecx, [ebp - 0x608]
push ecx
call fcn.0054ccc0
add esp, 8
test eax, eax
je 0x52eb68
push 0x5dcca4
lea edx, [ebp - 0x718]
push edx
call fcn.0054bec0
add esp, 8
lea eax, [ebp - 0x308]
push eax
mov ecx, dword [ebp - 0xc20]
mov edx, dword [ecx + 0x4b4]
push edx
call fcn.004016bb
add esp, 8
lea eax, [ebp - 0x308]
push eax
push 0xff
lea ecx, [ebp - 0x718]
push ecx
push 0x5dcca8
push 0x5b78c4
push 0x5b78d4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x718]
push edx
call fcn.0054c3e0
add esp, 4
test eax, eax
jne 0x52ea61
push 0x5b78e4
lea eax, [ebp - 0x718]
push eax
call fcn.0054bec0
add esp, 8
lea ecx, [ebp - 0x718]
push ecx
mov edx, dword [ebp + 8]
imul edx, edx, 0x3c
mov eax, dword [ebp - 0xc20]
lea ecx, [eax + edx + 0x14280]
call fcn.0056432f
cmp dword [0x5be754], 0
je 0x52eb68
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x124
mov dword [ecx + 0x5db9c8], 1
push 0x5dccac
lea edx, [ebp - 0x718]
push edx
call fcn.0054bec0
add esp, 8
lea eax, [ebp - 0x308]
push eax
mov ecx, dword [ebp - 0xc20]
mov edx, dword [ecx + 0x4b4]
push edx
call fcn.004016bb
add esp, 8
lea eax, [ebp - 0x308]
push eax
push 0xff
lea ecx, [ebp - 0x718]
push ecx
push 0x5dccb0
push str.0x06
push str.ErrorCode
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x718]
push edx
call fcn.0054c3e0
add esp, 4
test eax, eax
jne 0x52eb1f
push 0x5b7904
lea eax, [ebp - 0x718]
push eax
call fcn.0054bec0
add esp, 8
lea ecx, [ebp - 0x718]
push ecx
mov edx, dword [ebp + 8]
imul edx, edx, 0x3c
mov eax, dword [ebp - 0xc20]
lea ecx, [eax + edx + 0xaec]
call fcn.0056432f
push 0x5dccb4
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x3c
mov edx, dword [ebp - 0xc20]
lea ecx, [edx + ecx + 0x14280]
call fcn.0056432f
push 1
mov ecx, dword [ebp - 0xc20]
call fcn.004089e0
mov eax, dword [ebp + 8]
imul eax, eax, 0x124
add eax, 0x5db8c4
push eax
mov ecx, dword [ebp + 8]
imul ecx, ecx, 0x3c
mov edx, dword [ebp - 0xc20]
lea ecx, [edx + ecx + 0x14280]
call fcn.0056432f
jmp 0x52ebae
cmp dword [0x5be5b8], 0
je 0x52ebae
mov eax, dword [ebp + 8]
add eax, 0x97
push eax
mov ecx, dword [ebp - 0xc20]
call fcn.00411370
mov eax, 1
mov esp, ebp
pop ebp
ret 4