Function at 0x40bf10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x626b97
mov eax, dword fs:[0]
push eax
sub esp, 0x8bc
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8a8], ecx
mov dword [ebp - 0x8a4], 0
mov dword [ebp - 4], 2
xor eax, eax
mov word [ebp - 0x82c], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x82a]
push ecx
call fcn.005b4de0
add esp, 0xc
cmp dword [ebp + 0x44], 1
jne 0x40bfb7
mov ecx, dword [ebp - 0x8a8]
add ecx, 0x2e4
call fcn.0040e5d0
push eax
push 0x400
lea edx, [ebp - 0x82c]
push edx
push 0x63b294
lea ecx, [ebp + 0x28]
call fcn.0040e5d0
push eax
lea ecx, [ebp + 0xc]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x40c078
cmp dword [ebp + 0x44], 2
jne 0x40bffa
mov ecx, dword [ebp - 0x8a8]
add ecx, 0x104
call fcn.0040e5d0
push eax
push 0x400
lea eax, [ebp - 0x82c]
push eax
push 0x63b298
lea ecx, [ebp + 0x28]
call fcn.0040e5d0
push eax
lea ecx, [ebp + 0xc]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x40c078
cmp dword [ebp + 0x44], 3
jne 0x40c03d
mov ecx, dword [ebp - 0x8a8]
add ecx, 0x120
call fcn.0040e5d0
push eax
push 0x400
lea ecx, [ebp - 0x82c]
push ecx
push 0x63b29c
lea ecx, [ebp + 0x28]
call fcn.0040e5d0
push eax
lea ecx, [ebp + 0xc]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x40c078
mov ecx, dword [ebp - 0x8a8]
add ecx, 0x23c
call fcn.0040e5d0
push eax
push 0x400
lea edx, [ebp - 0x82c]
push edx
push 0x63b2a0
lea ecx, [ebp + 0x28]
call fcn.0040e5d0
push eax
lea ecx, [ebp + 0xc]
call fcn.0040e5d0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040e4b0
mov byte [ebp - 4], 3
push 0x63b2a4
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00412550
add esp, 8
movzx edx, al
test edx, edx
je 0x40c257
push 0x63b2a8
lea eax, [ebp - 0x84c]
push eax
call fcn.00438000
add esp, 4
mov dword [ebp - 0x8ac], eax
mov ecx, dword [ebp - 0x8ac]
mov dword [ebp - 0x8b0], ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x8b0]
call fcn.0040e5d0
push eax
call fcn.005b501e
add esp, 8
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x82d], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x84c]
call fcn.0040e530
movzx edx, byte [ebp - 0x82d]
test edx, edx
je 0x40c1f5
push 0x63b2b8
mov eax, dword [ebp - 0x8a8]
add eax, 0x370
push eax
call fcn.00412550
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x40c17f
lea edx, [ebp - 0x868]
push edx
mov ecx, dword [ebp - 0x8a8]
call fcn.0040a480
mov dword [ebp - 0x8b4], eax
mov eax, dword [ebp - 0x8b4]
mov dword [ebp - 0x8b8], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x8b8]
push ecx
mov ecx, dword [ebp - 0x8a8]
add ecx, 0x370
call fcn.0040e550
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x868]
call fcn.0040e530
push 0x63b2bc
lea ecx, [ebp + 0x28]
call fcn.0040e5d0
push eax
lea ecx, [ebp + 0xc]
call fcn.0040e5d0
push eax
mov ecx, dword [ebp - 0x8a8]
add ecx, 0x370
call fcn.0040e5d0
push eax
push 0x63b2c0
lea edx, [ebp - 0x884]
push edx
mov ecx, dword [ebp - 0x8a8]
call fcn.0040a940
mov dword [ebp - 0x8bc], eax
mov eax, dword [ebp - 0x8bc]
mov dword [ebp - 0x8c0], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x8c0]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040e550
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x884]
call fcn.0040e530
jmp 0x40c257
push 0x63b2c8
lea ecx, [ebp + 0x28]
call fcn.0040e5d0
push eax
lea ecx, [ebp + 0xc]
call fcn.0040e5d0
push eax
push 0x63b2cc
lea edx, [ebp - 0x8a0]
push edx
mov ecx, dword [ebp - 0x8a8]
call fcn.0040a670
mov dword [ebp - 0x8c4], eax
mov eax, dword [ebp - 0x8c4]
mov dword [ebp - 0x8c8], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x8c8]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040e550
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8a0]
call fcn.0040e530
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040e4f0
mov eax, dword [ebp - 0x8a4]
or eax, 1
mov dword [ebp - 0x8a4], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0040e530
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.0040e530
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x28]
call fcn.0040e530
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret 0x40