Function at 0x40c4a0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x457968
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x471920]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], 0
call fcn.0041c08e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c4ea
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push ebp
lea ecx, [esp + 0x14]
push 0x463d90
push ecx
mov dword [esp + 0x28], 0
call fcn.00402e70
mov esi, dword [0x4768b4]
add esp, 0xc
mov ecx, 0x4622b0
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c548
test dx, dx
je 0x40c544
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c548
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c522
xor eax, eax
jmp 0x40c54d
sbb eax, eax
sbb eax, 0xffffffff
mov edi, dword [esp + 0x10]
test eax, eax
sete al
test al, al
jne 0x40c5a6
mov edx, dword [0x4768b0]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x1f4
or eax, ecx
jge 0x40c589
push 0x1f4
mov ecx, 0x4768b0
call fcn.00402ba0
mov edx, dword [0x4768b0]
push esi
push 0x1f4
push edx
push 0
push edi
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x40c6be
mov edx, dword [0x4768b0]
test edx, edx
jne 0x40c5b4
xor eax, eax
jmp 0x40c5d5
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c5c0
sub eax, esi
sar eax, 1
js 0x40c6b4
cmp eax, dword [edx - 8]
jg 0x40c6b4
mov dword [edx - 0xc], eax
mov edx, dword [0x4768b0]
mov word [edx + eax*2], 0
mov edx, dword [0x4768b0]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x1f4
or eax, ecx
jge 0x40c61c
push 0x1f4
mov ecx, 0x4768b0
call fcn.00402ba0
mov edx, dword [0x4768b0]
mov eax, dword [0x47679c]
push 0x1f4
push edx
push ebp
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x40c6be
mov edx, dword [0x4768b0]
test edx, edx
je 0x40c657
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c646
sub eax, esi
sar eax, 1
js 0x40c6b4
cmp eax, dword [edx - 8]
jg 0x40c6b4
mov esi, dword [esp + 0x24]
mov dword [edx - 0xc], eax
mov ecx, dword [0x4768b0]
mov word [ecx + eax*2], 0
push 0x4622b0
mov ecx, esi
call fcn.00402680
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c69f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret
push 0x80070057
call fcn.00402660
mov edx, dword [0x4768b0]
test edx, edx
jne 0x40c6cc
xor eax, eax
jmp 0x40c6e2
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c6d1
sub eax, esi
sar eax, 1
js 0x40c6b4
cmp eax, dword [edx - 8]
jg 0x40c6b4
mov dword [edx - 0xc], eax
mov ecx, dword [0x4768b0]
mov word [ecx + eax*2], 0
mov eax, dword [0x4768b0]
add eax, 0xfffffff0
push eax
call fcn.00402ac0
mov esi, dword [esp + 0x28]
add esp, 4
add eax, 0x10
mov dword [esi], eax
jmp 0x40c67b