Function at 0x405ef0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x409951
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
mov eax, dword [esp + 0x224]
push eax
lea ecx, [esp + 4]
call fcn.00402ec0
mov ecx, dword [esp]
push 0x5c
push ecx
mov dword [esp + 0x224], 0
call dword [sym.imp.MSVCR70.dll__mbsrchr]
add esp, 8
test eax, eax
jne 0x405f40
or eax, 0xffffffff
jmp 0x405f44
sub eax, dword [esp]
push eax
lea edx, [esp + 8]
push edx
lea ecx, [esp + 8]
call fcn.004048e0
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x220], 1
call fcn.00402c40
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov byte [esp + 0x21c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405f8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push str.EFCSD.INI
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00404a60
mov eax, dword [eax]
add esp, 0xc
push eax
push 0x104
lea edx, [esp + 0x118]
push edx
push str..DATA
push str.SYSDATA
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405fe5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp byte [esp + 0x110], 0x2e
jne 0x40607b
push 0x5c
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00404bf0
lea edx, [esp + 0x11c]
push edx
push eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x234], 2
call fcn.00404a60
mov eax, dword [eax]
push 0x104
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.MSVCR70.dll__fullpath]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x24
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406053
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x21c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406090
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x406090
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x110]
mov byte [esp + eax + 0xc], cl
inc eax
test cl, cl
jne 0x406080
lea eax, [esp + 0xc]
push 0
push eax
call dword [sym.imp.MSVCR70.dll__access]
add esp, 8
test eax, eax
je 0x4060e9
push str.DATA
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00404a60
mov ecx, dword [eax]
add esp, 0xc
lea edx, [esp + 0xc]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4060c1
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4060e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.00403d10
lea eax, [esp + 0xc]
push esi
push eax
call fcn.00405c00
mov eax, dword [esp + 8]
add eax, 0xfffffff0
add esp, 8
mov dword [esp + 0x21c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40612b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
add esp, 0x220
ret