Function at 0x40c080
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4579a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x471920]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov dword [esp + 0x14], 0
call fcn.0041c08e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c0c8
push 0x80004005
call fcn.00402660
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], 0
call fcn.0041c08e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c0fa
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
lea ecx, [esp + 0x18]
push ecx
lea esi, [esp + 0x14]
mov byte [esp + 0x28], 1
call fcn.00401420
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c140
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0x104
or eax, ecx
jge 0x40c166
push 0x104
lea ecx, [esp + 0x18]
call fcn.00402ba0
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push 0
push 0x104
push edi
push ecx
push edx
call dword [sym.imp.USER32.dll_GetMenuStringW]
test edi, edi
jne 0x40c186
xor eax, eax
jmp 0x40c1a5
mov eax, edi
lea edx, [eax + 2]
jmp 0x40c190
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c190
sub eax, edx
sar eax, 1
js 0x40c2a6
cmp eax, dword [edi - 8]
jg 0x40c2a6
push str..lng
mov dword [edi - 0xc], eax
mov word [edi + eax*2], 0
mov eax, dword [esp + 0x14]
push edi
push eax
push str._sLanguage_s_s
push 0x4768b0
call fcn.00402e70
add esp, 0x14
push 0x4768b0
lea ecx, [esp + 0x14]
call fcn.00402930
mov edx, dword [0x4768b0]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0xc8
or eax, ecx
jge 0x40c211
push 0xc8
mov ecx, 0x4768b0
call fcn.00402ba0
mov edx, dword [0x4768b0]
mov ebp, dword [esp + 0x10]
push ebp
push 0xc8
push edx
push 0
push str.Description
push str.Language
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jne 0x40c298
mov edx, dword [0x4768b0]
test edx, edx
je 0x40c252
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c241
sub eax, esi
sar eax, 1
js 0x40c2a6
cmp eax, dword [edx - 8]
jg 0x40c2a6
mov dword [edx - 0xc], eax
mov ecx, dword [0x4768b0]
lea edx, [esp + 0x18]
push 0x13bb
push edx
mov word [ecx + eax*2], 0
call fcn.0040c4a0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c298
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x4768b0]
test edx, edx
jne 0x40c2b0
xor eax, eax
jmp 0x40c2c6
push 0x80070057
call fcn.00402660
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c2b5
sub eax, esi
sar eax, 1
js 0x40c2a6
cmp eax, dword [edx - 8]
jg 0x40c2a6
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 + 0x30]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x10]
add esp, 4
mov byte [esp + 0x24], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c315
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c339
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret