Function at 0x51f540
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62dfa6
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1d0], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0x677194
mov byte [ebp - 0x11c], 0
push 0xff
push 0
lea eax, [ebp - 0x11b]
push eax
call fcn.005e5330
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00587e90
push eax
push 0
push 0x6771a0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
call fcn.00587e90
push eax
push 3
push 0x6771ac
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x124], 0
jmp 0x51f5f4
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
cmp ecx, dword [ebp - 0x10]
jge 0x51fd92
lea ecx, [ebp - 0x130]
call fcn.00404aa0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x124]
push edx
push 0x6771bc
lea eax, [ebp - 0x130]
push eax
call fcn.00405010
add esp, 0xc
mov ecx, dword [ebp + 8]
call fcn.00587e90
push eax
push 0x100
lea ecx, [ebp - 0x11c]
push ecx
push 0x677003
push 0x6771c8
lea ecx, [ebp - 0x130]
call fcn.00587e90
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp + 8]
call fcn.00587e90
push eax
push 0
push 0x6771d4
lea ecx, [ebp - 0x130]
call fcn.00587e90
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp + 8]
call fcn.00587e90
push eax
push 0
push 0x6771dc
lea ecx, [ebp - 0x130]
call fcn.00587e90
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp + 8]
call fcn.00587e90
push eax
push 0
push 0x6771e4
lea ecx, [ebp - 0x130]
call fcn.00587e90
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x128], eax
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0x134], 0
jne 0x51f887
push 1
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x140]
push ecx
call fcn.0052b660
add esp, 0xc
mov dword [ebp - 0x1d4], eax
mov edx, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d8], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1d8]
push eax
push 0x6771ec
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x144]
push edx
call fcn.00404260
add esp, 0xc
mov dword [ebp - 0x1dc], eax
mov eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1e0]
push ecx
lea edx, [ebp - 0x148]
push edx
call fcn.0040ed60
add esp, 0xc
mov dword [ebp - 0x1e4], eax
mov eax, dword [ebp - 0x1e4]
mov dword [ebp - 0x1e8], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1e8]
call fcn.00587e90
push eax
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x8c
call fcn.0050f430
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x139], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x148]
call fcn.00401620
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x144]
call fcn.00401620
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x140]
call fcn.00401620
movzx ecx, byte [ebp - 0x139]
test ecx, ecx
je 0x51f813
mov dword [ebp - 0x14c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.00401620
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401620
mov eax, dword [ebp - 0x14c]
jmp 0x51fdb1
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x8c
call fcn.00522e60
add eax, dword [ebp - 0x128]
push eax
mov edx, dword [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x8c
call fcn.0050f460
cdq
idiv dword [ebp - 0x138]
mov ecx, dword [ebp - 0x12c]
sub ecx, eax
push ecx
lea ecx, [ebp - 0x15c]
call fcn.00422540
mov edx, dword [ebp - 0x1d0]
add edx, 0xbc
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov dword [edx + 0xc], eax
cmp dword [ebp - 0x134], 2
jne 0x51fa23
push 1
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x164]
push edx
call fcn.0052b660
add esp, 0xc
mov dword [ebp - 0x1ec], eax
mov eax, dword [ebp - 0x1ec]
mov dword [ebp - 0x1f0], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1f0]
push ecx
push 0x6771f0
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x168]
push eax
call fcn.00404260
add esp, 0xc
mov dword [ebp - 0x1f4], eax
mov ecx, dword [ebp - 0x1f4]
mov dword [ebp - 0x1f8], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x1f8]
push edx
lea eax, [ebp - 0x16c]
push eax
call fcn.0040ed60
add esp, 0xc
mov dword [ebp - 0x1fc], eax
mov ecx, dword [ebp - 0x1fc]
mov dword [ebp - 0x200], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x200]
call fcn.00587e90
push eax
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x7c
call fcn.0050f430
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x15d], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x16c]
call fcn.00401620
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x168]
call fcn.00401620
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x164]
call fcn.00401620
movzx edx, byte [ebp - 0x15d]
test edx, edx
je 0x51f9b5
mov dword [ebp - 0x170], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.00401620
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401620
mov eax, dword [ebp - 0x170]
jmp 0x51fdb1
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x7c
call fcn.00522e60
add eax, dword [ebp - 0x128]
push eax
mov eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x7c
call fcn.0050f460
cdq
idiv dword [ebp - 0x138]
mov edx, dword [ebp - 0x12c]
sub edx, eax
push edx
lea ecx, [ebp - 0x180]
call fcn.00422540
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x9c
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
cmp dword [ebp - 0x134], 1
jne 0x51fd7e
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x84
call fcn.005788a0
test eax, eax
jne 0x51fbe6
push 1
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x188]
push edx
call fcn.0052b660
add esp, 0xc
mov dword [ebp - 0x204], eax
mov eax, dword [ebp - 0x204]
mov dword [ebp - 0x208], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x208]
push ecx
push 0x6771f4
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x18c]
push eax
call fcn.00404260
add esp, 0xc
mov dword [ebp - 0x20c], eax
mov ecx, dword [ebp - 0x20c]
mov dword [ebp - 0x210], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x210]
push edx
lea eax, [ebp - 0x190]
push eax
call fcn.0040ed60
add esp, 0xc
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x218], ecx
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x218]
call fcn.00587e90
push eax
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x84
call fcn.0050f430
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x181], al
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x190]
call fcn.00401620
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x18c]
call fcn.00401620
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x188]
call fcn.00401620
movzx edx, byte [ebp - 0x181]
test edx, edx
je 0x51fb6d
mov dword [ebp - 0x194], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.00401620
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401620
mov eax, dword [ebp - 0x194]
jmp 0x51fdb1
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x84
call fcn.00522e60
add eax, dword [ebp - 0x128]
push eax
mov eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x84
call fcn.0050f460
cdq
idiv dword [ebp - 0x138]
mov edx, dword [ebp - 0x12c]
sub edx, eax
push edx
lea ecx, [ebp - 0x1a4]
call fcn.00422540
mov ecx, dword [ebp - 0x1d0]
add ecx, 0xac
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
jmp 0x51fd7e
push 1
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x1ac]
push edx
call fcn.0052b660
add esp, 0xc
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x220]
push ecx
push 0x6771f8
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp - 0x1b0]
push eax
call fcn.00404260
add esp, 0xc
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x228], ecx
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0x228]
push edx
lea eax, [ebp - 0x1b4]
push eax
call fcn.0040ed60
add esp, 0xc
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x230], ecx
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x230]
call fcn.00587e90
push eax
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x94
call fcn.0050f430
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x1a5], al
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1b4]
call fcn.00401620
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1b0]
call fcn.00401620
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1ac]
call fcn.00401620
movzx edx, byte [ebp - 0x1a5]
test edx, edx
je 0x51fd0a
mov dword [ebp - 0x1b8], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.00401620
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401620
mov eax, dword [ebp - 0x1b8]
jmp 0x51fdb1
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x94
call fcn.00522e60
add eax, dword [ebp - 0x128]
push eax
mov eax, dword [ebp - 0x12c]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x94
call fcn.0050f460
cdq
idiv dword [ebp - 0x138]
mov edx, dword [ebp - 0x12c]
sub edx, eax
push edx
lea ecx, [ebp - 0x1c8]
call fcn.00422540
mov ecx, dword [ebp - 0x1d0]
add ecx, 0xcc
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x130]
call fcn.00401620
jmp 0x51f5e5
mov dword [ebp - 0x1cc], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401620
mov eax, dword [ebp - 0x1cc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005e5163
mov esp, ebp
pop ebp
ret 8