Function at 0x40c190
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61fb08
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x690a1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x69f068]
mov esi, dword [edi]
mov dword [ebp - 0x20], esi
cmp esi, edi
je 0x40c371
nop dword [eax + eax]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 0x10]
lea ebx, [eax - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [ebx + 0xc], 0
mov edx, eax
lea eax, [ebx + 0xc]
jl 0x40c1f5
cmp edx, dword [ebx]
jne 0x40c1f5
lock inc dword [eax]
jmp 0x40c22b
mov eax, dword [edx]
lea ecx, [ebx + 4]
push 2
push dword [ecx]
mov dword [ebp - 0x14], ecx
mov ecx, edx
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x40c383
mov eax, dword [ebp - 0x14]
lea edx, [ebx + 0x10]
mov ecx, dword [eax]
mov dword [ebx + 4], ecx
mov ecx, dword [eax]
inc ecx
push ecx
push dword [ebp - 0x24]
push ecx
push edx
call fcn.004071b0
add esp, 0x10
add ebx, 0x10
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], eax
call fcn.00407410
mov ecx, eax
test ecx, ecx
je 0x40c388
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, str.DotTip
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x40c276
movzx eax, ax
push eax
call fcn.00407850
jmp 0x40c280
push str.DotTip
call fcn.0040ba20
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1c]
call fcn.00408650
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x18]
call fcn.00408650
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
call fcn.0040be20
add esp, 4
push dword [eax]
push dword [esi + 0x14]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp - 0x28]
mov dword [esi + 0x14], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c2e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c301
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c320
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c33f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
lea edx, [ebx - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c35e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x20]
call fcn.0040bbf0
mov esi, dword [ebp - 0x20]
cmp esi, edi
jne 0x40c1d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00407f90
push 0x80004005
call fcn.00407120
int3