Function at 0x414990
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587f75
mov eax, dword fs:[0]
push eax
sub esp, 0x8bc
mov eax, dword [0x5f44b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c8], ecx
mov word [ebp - 0x88c], 0
push 0x206
push 0
lea eax, [ebp - 0x88a]
push eax
call fcn.0049e690
add esp, 0xc
mov word [ebp - 0x664], 0
push 0x206
push 0
lea ecx, [ebp - 0x662]
push ecx
call fcn.0049e690
add esp, 0xc
push 0x593dac
lea ecx, [ebp - 0x680]
call fcn.00401600
mov dword [ebp - 4], 0
push 0x593db0
lea ecx, [ebp - 0x8a8]
call fcn.00401600
mov byte [ebp - 4], 1
push 0x593db4
lea ecx, [ebp - 0x238]
call fcn.00401600
mov byte [ebp - 4], 2
push 0x593db8
lea ecx, [ebp - 0x8c4]
call fcn.00401600
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], 0
push 0
push 0x2b
lea edx, [ebp - 0x88c]
push edx
push 0
mov ecx, dword [ebp - 0x8c8]
call fcn.00415ac0
push 0x593dbc
lea eax, [ebp - 0x88c]
push eax
call fcn.0049eb28
add esp, 8
push 0x593dc0
lea ecx, [ebp - 0x88c]
push ecx
call fcn.0049eb28
add esp, 8
push 0x593de4
lea edx, [ebp - 0x88c]
push edx
call fcn.0049eb28
add esp, 8
push 0x593de8
lea eax, [ebp - 0x88c]
push eax
call fcn.0049eb28
add esp, 8
push 0x593e04
lea ecx, [ebp - 0x88c]
push ecx
call fcn.0049eb28
add esp, 8
lea edx, [ebp - 0x88c]
push edx
push 0x104
lea eax, [ebp - 0x664]
push eax
push 0x593e10
push 0x593e14
push 0x593e2c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x664]
push ecx
call fcn.0049e752
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x414bb1
lea edx, [ebp - 0x664]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414bb1
lea eax, [ebp - 0x664]
push eax
lea ecx, [ebp - 0x680]
call fcn.004036d0
lea ecx, [ebp - 0x664]
push ecx
mov ecx, dword [ebp - 0x8c8]
add ecx, 0x28
call fcn.004036d0
mov edx, dword [ebp - 0x8c8]
mov byte [edx + 2], 1
mov eax, dword [ebp - 0x8c8]
movzx ecx, byte [eax + 4]
test ecx, ecx
jne 0x414bb1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c4]
call fcn.00401640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.00401640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8a8]
call fcn.00401640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x680]
call fcn.00401640
jmp 0x415002
push 0x104
lea edx, [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x8c8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x21c]
push edx
call fcn.0049e752
add esp, 4
test eax, eax
jne 0x414bf4
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00407130
add esp, 8
mov word [eax + 2], 0
mov word [ebp - 0x45c], 0
push 0x206
push 0
lea edx, [ebp - 0x45a]
push edx
call fcn.0049e690
add esp, 0xc
push 0x593e3c
lea eax, [ebp - 0x21c]
push eax
push 0x593e64
lea ecx, [ebp - 0x45c]
push ecx
call fcn.0049e5b6
add esp, 0x10
lea edx, [ebp - 0x45c]
push edx
push 0x104
lea eax, [ebp - 0x664]
push eax
push 0x593e70
push 0x593e74
push 0x593e8c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x664]
push ecx
call fcn.0049e752
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x414d26
lea edx, [ebp - 0x664]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414d26
lea eax, [ebp - 0x664]
push eax
lea ecx, [ebp - 0x8a8]
call fcn.004036d0
lea ecx, [ebp - 0x664]
push ecx
mov ecx, dword [ebp - 0x8c8]
add ecx, 0x28
call fcn.004036d0
mov edx, dword [ebp - 0x8c8]
mov byte [edx + 2], 1
mov eax, dword [ebp - 0x8c8]
movzx ecx, byte [eax + 4]
test ecx, ecx
jne 0x414d26
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c4]
call fcn.00401640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.00401640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8a8]
call fcn.00401640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x680]
call fcn.00401640
jmp 0x415002
push 0x593e9c
mov ecx, dword [ebp - 0x8c8]
add ecx, 0xb4
call fcn.00401670
push eax
push 0x593ec4
lea edx, [ebp - 0x45c]
push edx
call fcn.0049e5b6
add esp, 0x10
lea eax, [ebp - 0x45c]
push eax
push 0x104
lea ecx, [ebp - 0x664]
push ecx
push 0x593ed0
push 0x593ed4
push 0x593eec
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x664]
push edx
call fcn.0049e752
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x414e2d
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414e2d
lea ecx, [ebp - 0x664]
push ecx
lea ecx, [ebp - 0x238]
call fcn.004036d0
lea edx, [ebp - 0x664]
push edx
mov ecx, dword [ebp - 0x8c8]
add ecx, 0x28
call fcn.004036d0
mov eax, dword [ebp - 0x8c8]
mov byte [eax + 2], 1
mov ecx, dword [ebp - 0x8c8]
movzx edx, byte [ecx + 4]
test edx, edx
jne 0x414e2d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c4]
call fcn.00401640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.00401640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8a8]
call fcn.00401640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x680]
call fcn.00401640
jmp 0x415002
push 0x593efc
push 0x593f00
push 0x593f18
lea eax, [ebp - 0x254]
push eax
mov ecx, dword [ebp - 0x8c8]
call fcn.00417680
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x254]
call fcn.00401670
push eax
call fcn.0049e752
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jle 0x414f1f
lea ecx, [ebp - 0x254]
call fcn.00401670
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414f1f
lea ecx, [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x8c4]
call fcn.004036b0
lea edx, [ebp - 0x254]
push edx
mov ecx, dword [ebp - 0x8c8]
add ecx, 0x28
call fcn.004036b0
mov eax, dword [ebp - 0x8c8]
mov byte [eax + 2], 1
mov ecx, dword [ebp - 0x8c8]
movzx edx, byte [ecx + 4]
test edx, edx
jne 0x414f1f
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x254]
call fcn.00401640
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c4]
call fcn.00401640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.00401640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8a8]
call fcn.00401640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x680]
call fcn.00401640
jmp 0x415002
mov eax, dword [ebp - 0x8c8]
movzx ecx, byte [eax + 4]
test ecx, ecx
je 0x414fb4
mov edx, dword [ebp - 0x8c8]
movzx eax, byte [edx + 2]
test eax, eax
je 0x414fb4
lea ecx, [ebp - 0x8a8]
push ecx
lea edx, [ebp - 0x680]
push edx
call fcn.004199f0
add esp, 8
movzx eax, al
test eax, eax
je 0x414f66
mov ecx, dword [ebp - 0x8c8]
mov byte [ecx + 5], 1
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x680]
push eax
call fcn.004199f0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x414f8d
mov edx, dword [ebp - 0x8c8]
mov byte [edx + 5], 1
lea eax, [ebp - 0x8c4]
push eax
lea ecx, [ebp - 0x680]
push ecx
call fcn.004199f0
add esp, 8
movzx edx, al
test edx, edx
je 0x414fb4
mov eax, dword [ebp - 0x8c8]
mov byte [eax + 5], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x254]
call fcn.00401640
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8c4]
call fcn.00401640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.00401640
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8a8]
call fcn.00401640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x680]
call fcn.00401640
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049e381
mov esp, ebp
pop ebp
ret