Function at 0x40c2e0
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x492731
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x4bb190]
xor eax, esp
mov dword [esp + 0x45c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bb190]
xor eax, esp
push eax
lea eax, [esp + 0x474]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0xb8], ebx
je 0x40c5e7
mov eax, dword [edi + 0x3c]
push eax
call fcn.00435a20
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40c5e7
xor ecx, ecx
lea eax, [esi + 0x20]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004440d6
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x40c5e7
xor eax, eax
mov word [ebp], ax
mov eax, dword [edi + 0x3c]
push eax
push esi
push ebp
push 0x49abc4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea ecx, [esp + 0x1c]
call fcn.00409c40
lea eax, [esp + 0x1c]
push eax
xor ecx, ecx
xor edx, edx
push esi
push ebp
mov dword [esp + 0x488], ebx
mov word [ebp + esi*2 - 4], cx
mov word [ebp + esi*2 - 2], dx
call fcn.00436110
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 0xc
test eax, eax
jle 0x40c5d5
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x40c3dc
mov ecx, dword [esp + 0x18]
cmp ebx, eax
jb 0x40c3ed
call fcn.00467a4e
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
cmp dword [ecx + esi + 0x18], 8
jb 0x40c3fa
mov esi, dword [ecx + esi + 4]
jmp 0x40c3fe
lea esi, [ecx + esi + 4]
push esi
lea ecx, [esp + 0x18]
call fcn.00402bb0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
mov byte [esp + 0x47c], 1
jle 0x40c43f
push 0x3d
push eax
call fcn.00467cfa
add esp, 8
test eax, eax
je 0x40c43f
sub eax, dword [esp + 0x14]
sar eax, 1
test eax, eax
jle 0x40c43f
push 0
push eax
lea ecx, [esp + 0x1c]
call fcn.00404dc0
lea ecx, [esp + 0x14]
call fcn.00405480
lea ecx, [esp + 0x14]
call fcn.00405d70
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x272]
push edx
mov word [esp + 0x274], cx
call fcn.00467850
mov eax, dword [edi + 0x3c]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push eax
push 0x103
lea eax, [esp + 0x270]
push eax
push 0x49ab28
push ecx
push 0x49abc4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x26c]
push eax
mov ecx, edi
call fcn.0040ad20
test eax, eax
je 0x40c582
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x6a]
push edx
mov word [esp + 0x6c], cx
call fcn.00467850
mov eax, dword [esp + 0x20]
push eax
push 0x49aa7c
push 0x103
lea ecx, [esp + 0x78]
push 0x104
push ecx
call fcn.00467824
lea edx, [esp + 0x80]
push 0x104
push edx
call fcn.00467f05
add esp, 0x28
xor eax, eax
mov word [esp + 0x48], ax
lea eax, [esp + 0x60]
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
lea edx, [eax + 2]
jmp 0x40c520
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c520
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00402220
lea edx, [esp + 0x44]
push edx
lea ecx, [edi + 0x60]
mov byte [esp + 0x480], 2
call fcn.0040bdf0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
cmp dword [esp + 0x5c], 8
jb 0x40c582
mov eax, dword [esp + 0x48]
push eax
call fcn.004440cb
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x47c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c5aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
add dword [esp + 0x18], 0x1c
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
cmp ebx, eax
jl 0x40c3d8
push ebp
call fcn.004440cb
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.0040a630
mov ecx, dword [esp + 0x474]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x45c]
xor ecx, esp
call fcn.004677ab
add esp, 0x46c
ret