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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e693f
mov eax, dword fs:[0]
push eax
sub esp, 0x8a4
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8ac], ecx
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.005be3a0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x218], dx
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.005be3a0
add esp, 0xc
push 0x5ee99c
lea ecx, [ebp - 0x848]
call fcn.00402790
mov dword [ebp - 4], 0
push 0x5ee9a0
lea ecx, [ebp - 0x890]
call fcn.00402790
mov byte [ebp - 4], 1
push 0x5ee9a4
lea ecx, [ebp - 0x878]
call fcn.00402790
mov byte [ebp - 4], 2
push 0x5ee9a8
lea ecx, [ebp - 0x860]
call fcn.00402790
mov byte [ebp - 4], 3
mov dword [ebp - 0x8b0], 0
push 0
push 0x2b
lea ecx, [ebp - 0x420]
push ecx
push 0
call fcn.005b18eb
add esp, 0x10
push 0x5ee9ac
lea edx, [ebp - 0x420]
push edx
call fcn.005c7787
add esp, 8
push 0x5ee9b0
lea eax, [ebp - 0x420]
push eax
call fcn.005c7787
add esp, 8
push 0x5ee9c4
lea ecx, [ebp - 0x420]
push ecx
call fcn.005c7787
add esp, 8
push 0x5ee9c8
lea edx, [ebp - 0x420]
push edx
call fcn.005c7787
add esp, 8
push 0x5ee9dc
lea eax, [ebp - 0x420]
push eax
call fcn.005c7787
add esp, 8
lea ecx, [ebp - 0x420]
push ecx
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x5ee9e8
push 0x5ee9ec
push 0x5eea04
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
call fcn.005c1d51
add esp, 4
mov dword [ebp - 0x8b0], eax
cmp dword [ebp - 0x8b0], 0
jle 0x428b17
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x428b17
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x848]
call fcn.004028a0
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x8ac]
add ecx, 0x2c
call fcn.004028a0
mov ecx, dword [ebp - 0x8ac]
mov byte [ecx + 6], 1
mov edx, dword [ebp - 0x8ac]
movzx eax, byte [edx + 8]
test eax, eax
jne 0x428b17
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x860]
call fcn.00402750
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x878]
call fcn.00402750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x890]
call fcn.00402750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x848]
call fcn.00402750
jmp 0x428f5a
xor ecx, ecx
mov word [ebp - 0x830], cx
push 0x206
push 0
lea edx, [ebp - 0x82e]
push edx
call fcn.005be3a0
add esp, 0xc
mov ecx, dword [ebp - 0x8ac]
add ecx, 0x5c
call fcn.00402820
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.005c5a4b
add esp, 8
xor ecx, ecx
mov word [ebp - 0x628], cx
push 0x206
push 0
lea edx, [ebp - 0x626]
push edx
call fcn.005be3a0
add esp, 0xc
push 0x5eea14
lea eax, [ebp - 0x830]
push eax
push 0x5eea38
lea ecx, [ebp - 0x628]
push ecx
call fcn.00409310
add esp, 0x10
lea edx, [ebp - 0x628]
push edx
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x5eea44
push 0x5eea48
push 0x5eea60
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x218]
push ecx
call fcn.005c1d51
add esp, 4
mov dword [ebp - 0x8b0], eax
cmp dword [ebp - 0x8b0], 0
jle 0x428c75
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x428c75
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x890]
call fcn.004028a0
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x8ac]
add ecx, 0x2c
call fcn.004028a0
mov edx, dword [ebp - 0x8ac]
mov byte [edx + 6], 1
mov eax, dword [ebp - 0x8ac]
movzx ecx, byte [eax + 8]
test ecx, ecx
jne 0x428c75
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x860]
call fcn.00402750
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x878]
call fcn.00402750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x890]
call fcn.00402750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x848]
call fcn.00402750
jmp 0x428f5a
push 0x5eea70
mov ecx, dword [ebp - 0x8ac]
add ecx, 0x74
call fcn.00402820
push eax
push 0x5eea94
lea edx, [ebp - 0x628]
push edx
call fcn.00409310
add esp, 0x10
lea eax, [ebp - 0x628]
push eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0x5eeaa0
push 0x5eeaa4
push 0x5eeabc
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [ebp - 0x218]
push edx
call fcn.005c1d51
add esp, 4
mov dword [ebp - 0x8b0], eax
cmp dword [ebp - 0x8b0], 0
jle 0x428d7f
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x428d7f
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x878]
call fcn.004028a0
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp - 0x8ac]
add ecx, 0x2c
call fcn.004028a0
mov eax, dword [ebp - 0x8ac]
mov byte [eax + 6], 1
mov ecx, dword [ebp - 0x8ac]
movzx edx, byte [ecx + 8]
test edx, edx
jne 0x428d7f
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x860]
call fcn.00402750
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x878]
call fcn.00402750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x890]
call fcn.00402750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x848]
call fcn.00402750
jmp 0x428f5a
push 0x5eeacc
push str.CfgRootPath
push 0x5eeae8
lea eax, [ebp - 0x8a8]
push eax
mov ecx, dword [ebp - 0x8ac]
call fcn.00429900
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8a8]
call fcn.00402820
push eax
call fcn.005c1d51
add esp, 4
mov dword [ebp - 0x8b0], eax
cmp dword [ebp - 0x8b0], 0
jle 0x428e77
lea ecx, [ebp - 0x8a8]
call fcn.00402820
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x428e77
lea ecx, [ebp - 0x8a8]
push ecx
lea ecx, [ebp - 0x860]
call fcn.00404390
lea edx, [ebp - 0x8a8]
push edx
mov ecx, dword [ebp - 0x8ac]
add ecx, 0x2c
call fcn.00404390
mov eax, dword [ebp - 0x8ac]
mov byte [eax + 6], 1
mov ecx, dword [ebp - 0x8ac]
movzx edx, byte [ecx + 8]
test edx, edx
jne 0x428e77
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8a8]
call fcn.00402750
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x860]
call fcn.00402750
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x878]
call fcn.00402750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x890]
call fcn.00402750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x848]
call fcn.00402750
jmp 0x428f5a
mov eax, dword [ebp - 0x8ac]
movzx ecx, byte [eax + 8]
test ecx, ecx
je 0x428f0c
mov edx, dword [ebp - 0x8ac]
movzx eax, byte [edx + 6]
test eax, eax
je 0x428f0c
lea ecx, [ebp - 0x890]
push ecx
lea edx, [ebp - 0x848]
push edx
call fcn.00429d90
add esp, 8
movzx eax, al
test eax, eax
je 0x428ebe
mov ecx, dword [ebp - 0x8ac]
mov byte [ecx + 9], 1
lea edx, [ebp - 0x878]
push edx
lea eax, [ebp - 0x848]
push eax
call fcn.00429d90
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x428ee5
mov edx, dword [ebp - 0x8ac]
mov byte [edx + 9], 1
lea eax, [ebp - 0x860]
push eax
lea ecx, [ebp - 0x848]
push ecx
call fcn.00429d90
add esp, 8
movzx edx, al
test edx, edx
je 0x428f0c
mov eax, dword [ebp - 0x8ac]
mov byte [eax + 9], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8a8]
call fcn.00402750
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x860]
call fcn.00402750
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x878]
call fcn.00402750
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x890]
call fcn.00402750
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x848]
call fcn.00402750
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ad281
mov esp, ebp
pop ebp
ret