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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7a0b
mov eax, dword fs:[0]
push eax
sub esp, 0x8d0
mov eax, dword [0x5381f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x89c], ecx
mov dword [ebp - 0x898], 0
lea ecx, [ebp - 0x8a4]
call fcn.004037a0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x89c]
cmp dword [eax + 0xc], 0
jne 0x418c66
push 0x208
push 0
lea ecx, [ebp - 0x420]
push ecx
call fcn.004a03d0
add esp, 0xc
push 0x208
push 0
lea edx, [ebp - 0x628]
push edx
call fcn.004a03d0
add esp, 0xc
push 0x208
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x89c]
mov edx, dword [ecx + 0x10]
push edx
mov ecx, dword [ebp - 0x89c]
call fcn.004191f0
test eax, eax
jne 0x418c14
push 0x507468
push 0x208
lea eax, [ebp - 0x420]
push eax
call fcn.0041a6d0
push 0x208
lea ecx, [ebp - 0x628]
push ecx
mov ecx, dword [ebp - 0x89c]
call fcn.00419380
lea edx, [ebp - 0x628]
push edx
mov eax, dword [ebp - 0x89c]
mov ecx, dword [eax + 0x10]
push ecx
lea edx, [ebp - 0x420]
push edx
mov eax, dword [ebp - 0x89c]
mov ecx, dword [eax + 4]
push ecx
push str._s_s__d__s.dmp
lea edx, [ebp - 0x8a4]
push edx
call fcn.004043f0
add esp, 0x18
jmp 0x418ff3
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.004a03d0
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x830]
push ecx
call fcn.004a03d0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
call fcn.0045dab0
mov byte [ebp - 0x891], 0
call fcn.00413540
mov ecx, eax
call fcn.00413670
mov dword [ebp - 0x8ac], eax
lea eax, [ebp - 0x860]
push eax
mov ecx, dword [ebp - 0x8ac]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x8ac]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0x8c4], eax
mov ecx, dword [ebp - 0x8c4]
mov dword [ebp - 0x8c8], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x898]
or edx, 1
mov dword [ebp - 0x898], edx
mov eax, dword [ebp - 0x8c8]
push eax
mov ecx, dword [0x5370a4]
push ecx
call fcn.004195f0
add esp, 8
movzx edx, al
test edx, edx
jne 0x418d95
call fcn.00413540
mov ecx, eax
call fcn.00413670
mov dword [ebp - 0x8b0], eax
lea eax, [ebp - 0x848]
push eax
mov ecx, dword [ebp - 0x8b0]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x8b0]
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 0x8cc], eax
mov ecx, dword [ebp - 0x8cc]
mov dword [ebp - 0x8d0], ecx
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x898]
or edx, 2
mov dword [ebp - 0x898], edx
mov eax, dword [ebp - 0x8d0]
push eax
mov ecx, dword [0x5370a8]
push ecx
call fcn.004195f0
add esp, 8
movzx edx, al
test edx, edx
jne 0x418d95
mov dword [ebp - 0x8b4], 0
jmp 0x418d9f
mov dword [ebp - 0x8b4], 1
mov al, byte [ebp - 0x8b4]
mov byte [ebp - 0x891], al
mov cl, byte [ebp - 0x891]
mov byte [ebp - 0x89d], cl
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x898]
and edx, 2
je 0x418ddb
and dword [ebp - 0x898], 0xfffffffd
lea ecx, [ebp - 0x848]
call fcn.00409d80
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x898]
and eax, 1
je 0x418dff
and dword [ebp - 0x898], 0xfffffffe
lea ecx, [ebp - 0x860]
call fcn.00409d80
movzx ecx, byte [ebp - 0x89d]
test ecx, ecx
je 0x418f3a
call fcn.00413540
mov ecx, eax
call fcn.00413670
mov dword [ebp - 0x8b8], eax
push 0
lea edx, [ebp - 0x878]
push edx
mov eax, dword [ebp - 0x8b8]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x8b8]
mov eax, dword [edx + 0x34]
call eax
mov dword [ebp - 0x8d4], eax
mov ecx, dword [ebp - 0x8d4]
mov dword [ebp - 0x8d8], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x8d8]
call fcn.00417670
push eax
lea ecx, [ebp - 0x8c0]
call fcn.00403720
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x878]
call fcn.00409d80
lea ecx, [ebp - 0x8c0]
call fcn.00403a90
push eax
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x507498
push 0x50749c
push 0x5074b8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.00413540
mov ecx, eax
call fcn.00413670
mov dword [ebp - 0x8bc], eax
push 0
lea eax, [ebp - 0x890]
push eax
mov ecx, dword [ebp - 0x8bc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x8bc]
mov eax, dword [edx + 0x6c]
call eax
mov dword [ebp - 0x8dc], eax
mov ecx, dword [ebp - 0x8dc]
sub esp, 0x18
mov edx, esp
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dword [edx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ecx + 0x14]
mov dword [edx + 0x14], ecx
push 0x5074c8
push 0x104
lea edx, [ebp - 0x830]
push edx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x24
lea ecx, [ebp - 0x890]
call fcn.00409d80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c0]
call fcn.00403900
mov dword [ebp - 0x8a8], 0
jmp 0x418f55
mov eax, dword [ebp - 0x8a8]
add eax, 1
mov dword [ebp - 0x8a8], eax
cmp dword [ebp - 0x8a8], 0xa
jg 0x418feb
movzx ecx, byte [ebp - 0x891]
test ecx, ecx
je 0x418fa2
mov edx, dword [ebp - 0x8a8]
push edx
lea eax, [ebp - 0x830]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x89c]
mov eax, dword [edx + 4]
push eax
push str._s_s__s__03d.dmp
lea ecx, [ebp - 0x8a4]
push ecx
call fcn.004043f0
add esp, 0x18
jmp 0x418fce
mov edx, dword [ebp - 0x8a8]
push edx
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x89c]
mov edx, dword [ecx + 4]
push edx
push str._s_s__03d.dmp
lea eax, [ebp - 0x8a4]
push eax
call fcn.004043f0
add esp, 0x14
lea ecx, [ebp - 0x8a4]
call fcn.00403a90
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x418fe6
jmp 0x418feb
jmp 0x418f46
xor ecx, ecx
jne 0x418b9d
lea edx, [ebp - 0x8a4]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403700
mov eax, dword [ebp - 0x898]
or eax, 4
mov dword [ebp - 0x898], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8a4]
call fcn.00403900
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046621a
mov esp, ebp
pop ebp
ret 4