Function at 0x413e10
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x42c044]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x228], edx
push 0x4053e8
push 2
mov ebx, ecx
mov dword [ebp - 0x224], eax
mov edi, eax
call fcn.0041944e
pop ecx
pop ecx
mov edx, 0x403ca0
mov ecx, ebx
call fcn.00419e25
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x4140a6
mov edx, 0x405420
mov ecx, ebx
call fcn.00419e25
mov esi, eax
mov dword [ebp - 0x230], esi
test esi, esi
je 0x414064
mov edx, 0x405460
mov ecx, ebx
call fcn.00419e25
mov dword [ebp - 0x224], eax
test eax, eax
je 0x414051
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414041
test al, 0x50
jne 0x414041
mov ebx, 0x4054cc
cmp dword [ebp + 8], edi
jne 0x413ebf
mov ebx, 0x4054fc
push 0x4000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x22c], edi
test edi, edi
jne 0x413ef2
push 0x405530
push 4
call fcn.0041944e
pop ecx
pop ecx
jmp 0x414051
push esi
push 0x2000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x413f13
push 0x4055a0
push 2
jmp 0x413ee6
cmp eax, 0x1ffe
jb 0x413f2e
push 0x4055e0
push 4
call fcn.0041944e
mov eax, dword [ebp - 0x220]
pop ecx
pop ecx
mov ebx, edi
test eax, eax
je 0x414037
mov edi, dword [ebp - 0x224]
xor edx, edx
cmp word [ebx], dx
je 0x41402b
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x413f4e
sub esi, ecx
mov edx, 0x104
push edi
lea ecx, [ebp - 0x214]
sar esi, 1
call fcn.0041158f
push 0x5c
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x413fa4
xor ecx, ecx
mov edx, 0x104
mov word [eax], cx
add eax, 2
push ebx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
call fcn.004115c4
mov eax, dword [ebp - 0x218]
jmp 0x413fac
mov eax, ebx
mov dword [ebp - 0x218], ebx
push eax
push dword [ebp - 0x21c]
lea eax, [ebp - 0x214]
push eax
push 0x405640
push 2
call fcn.0041944e
mov eax, dword [ebp - 0x228]
add esp, 0x14
mov edx, dword [ebp - 0x21c]
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
push eax
push ecx
push dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
call fcn.004131ec
test eax, eax
jne 0x41401b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x218]
lea eax, [ebp - 0x214]
push dword [ebp - 0x21c]
push eax
push 0x4056a8
push 4
call fcn.0041944e
add esp, 0x18
inc esi
sub dword [ebp - 0x220], esi
lea ebx, [ebx + esi*2]
jne 0x413f3e
mov edi, dword [ebp - 0x22c]
mov esi, dword [ebp - 0x230]
push 0x405740
jmp 0x413f0f
push esi
push 0x405478
push 3
call fcn.0041944e
add esp, 0xc
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x414066
xor ebx, ebx
push dword [ebp - 0x21c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x41408d
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4140a6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0042a860
leave
ret 4