Function at 0x497130
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a584
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5c5ebc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp - 0x48]
call fcn.00496220
mov eax, dword [ebp - 0x48]
push eax
call fcn.00485b60
add esp, 4
lea ecx, [ebp - 0x28]
push ecx
call fcn.004ca370
add esp, 4
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x50]
call fcn.00415f60
push eax
push 0
call fcn.004d0e00
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00415e20
push 0
mov ecx, dword [ebp - 0x48]
call fcn.0043b0a0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x497226
lea ecx, [ebp - 0x24]
call fcn.00415d60
mov dword [ebp - 4], 1
push 0x65
lea ecx, [ebp - 0x24]
call fcn.00416100
lea ecx, [ebp - 0x24]
call fcn.004119e0
movzx eax, al
test eax, eax
jne 0x497217
push 0
push 0
push 0x800
mov ecx, dword [ebp - 0x20]
call fcn.00498780
lea ecx, [ebp - 0x24]
call fcn.00415f60
push eax
push 0x10
push 0
mov ecx, dword [ebp - 0x20]
call fcn.00498780
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0049aa90
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00415e20
push 1
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x118]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.004987b0
push 0
push 0
mov ecx, dword [ebp - 0x48]
call fcn.004987e0
push eax
mov ecx, dword [ebp - 0x48]
call fcn.004987b0
lea ecx, [ebp - 0x1c]
call fcn.0042f690
push 0x407
mov ecx, dword [ebp - 0x48]
call fcn.004e7012
test eax, eax
je 0x4972a9
lea ecx, [ebp - 0x1c]
push ecx
push 0x407
mov ecx, dword [ebp - 0x48]
call fcn.004e7012
mov ecx, eax
call fcn.0042f730
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x48]
call fcn.004f5671
push 0
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x50000b44
mov ecx, dword [ebp - 0x48]
add ecx, 0x11c
call fcn.004ec531
push 0x407
mov ecx, dword [ebp - 0x48]
call fcn.004e7012
test eax, eax
je 0x497384
lea edx, [ebp - 0x1c]
push edx
push 0x407
mov ecx, dword [ebp - 0x48]
call fcn.004e7012
mov ecx, eax
call fcn.0042f730
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x48]
call fcn.004f5671
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
push 0xe804
push 0x56002800
push 0x400
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x170
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x170]
mov edx, dword [eax + 0x17c]
call edx
push 0xa0
push 0
push 0
mov eax, dword [ebp - 0x48]
add eax, 0x11c
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x170
call fcn.004fe553
push 1
mov ecx, dword [ebp - 0x48]
add ecx, 0x170
call fcn.004e72f5
push 1
lea ecx, [ebp - 0x1c]
call fcn.0042f6a0
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x170
call fcn.0042f6f0
push 7
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 0x190]
push edx
mov ecx, dword [ebp - 0x48]
add ecx, 0xe4
call fcn.0042dd30
mov ecx, 0x5fab20
call fcn.004dd9d0
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x20]
push ecx
mov ecx, 0x5fa8c0
call fcn.004db6b0
push 0x589a68
call fcn.0043d000
push eax
push 0x589a74
lea edx, [ebp - 0x30]
push edx
call fcn.0042d9b0
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x58]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.00411930
add esp, 0xc
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x60]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.00411930
add esp, 0xc
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.00411930
add esp, 0xc
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
call fcn.00415f60
push eax
push 1
push 0x589a78
push str.System
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x3c]
call fcn.00415e20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x38]
call fcn.00415e20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00415e20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00415e20
cmp dword [ebp - 0x2c], 0
je 0x4974e2
push 0x589aa0
lea eax, [ebp - 0x40]
push eax
call fcn.0043c9f0
add esp, 4
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x74]
call fcn.00415f60
push eax
call fcn.0043d000
push eax
lea edx, [ebp - 0x44]
push edx
call fcn.00499930
add esp, 8
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x7c]
call fcn.00415f60
push eax
push 2
call fcn.004d03e0
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.00415e20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00415e20
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret