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

Disassembly:
push 0xffffffffffffffff
push 0x4923b1
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x4ba190]
xor eax, esp
mov dword [esp + 0x45c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ba190]
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 0x40c5b7
mov eax, dword [edi + 0x3c]
push eax
call fcn.004356f0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x40c5b7
xor ecx, ecx
lea eax, [esi + 0x20]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00443d0e
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x40c5b7
xor eax, eax
mov word [ebp], ax
mov eax, dword [edi + 0x3c]
push eax
push esi
push ebp
push 0x499bc4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea ecx, [esp + 0x1c]
call fcn.00409c10
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.00435de0
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 0x40c5a5
xor ecx, ecx
mov dword [esp + 0x18], ecx
jmp 0x40c3ac
mov ecx, dword [esp + 0x18]
cmp ebx, eax
jb 0x40c3bd
call fcn.0046767e
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
cmp dword [ecx + esi + 0x18], 8
jb 0x40c3ca
mov esi, dword [ecx + esi + 4]
jmp 0x40c3ce
lea esi, [ecx + esi + 4]
push esi
lea ecx, [esp + 0x18]
call fcn.00402ba0
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
mov byte [esp + 0x47c], 1
jle 0x40c40f
push 0x3d
push eax
call fcn.0046792a
add esp, 8
test eax, eax
je 0x40c40f
sub eax, dword [esp + 0x14]
sar eax, 1
test eax, eax
jle 0x40c40f
push 0
push eax
lea ecx, [esp + 0x1c]
call fcn.00404d60
lea ecx, [esp + 0x14]
call fcn.00405430
lea ecx, [esp + 0x14]
call fcn.00405d20
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x272]
push edx
mov word [esp + 0x274], cx
call fcn.00467480
mov eax, dword [edi + 0x3c]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push eax
push 0x103
lea eax, [esp + 0x270]
push eax
push 0x499b28
push ecx
push 0x499bc4
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x26c]
push eax
mov ecx, edi
call fcn.0040acf0
test eax, eax
je 0x40c552
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x6a]
push edx
mov word [esp + 0x6c], cx
call fcn.00467480
mov eax, dword [esp + 0x20]
push eax
push 0x499a7c
push 0x103
lea ecx, [esp + 0x78]
push 0x104
push ecx
call fcn.0046745c
lea edx, [esp + 0x80]
push 0x104
push edx
call fcn.00467b35
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 0x40c4f0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c4f0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x4c]
call fcn.00402210
lea edx, [esp + 0x44]
push edx
lea ecx, [edi + 0x60]
mov byte [esp + 0x480], 2
call fcn.0040bdc0
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 0x40c552
mov eax, dword [esp + 0x48]
push eax
call fcn.00443d03
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 0x40c57a
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 0x40c3a8
push ebp
call fcn.00443d03
add esp, 4
lea ecx, [esp + 0x1c]
call fcn.0040a600
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.004673e3
add esp, 0x46c
ret