Function at 0x402130
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52095d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x4058
call fcn.004fe1a0
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
push 0x800
push 0
lea eax, [ebp - 0x1814]
push eax
call fcn.004fd670
push 0x800
push 0
lea ecx, [ebp - 0x1014]
push ecx
call fcn.004fd670
add esp, 0x18
lea edx, [ebp - 0x4064]
push edx
call fcn.00487b00
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
push 0x800
push 0
lea eax, [ebp - 0x1014]
push eax
call fcn.004fd670
push 0x800
push 0
lea ecx, [ebp - 0x814]
push ecx
call fcn.004fd670
add esp, 0x18
push 0
push 0x400
lea edx, [ebp - 0x814]
push edx
push str._SRC_DIR_SetupData
mov ecx, dword [esi + 0x2ee78]
call fcn.00480760
test eax, eax
jne 0x40222c
push 0x3ff
push 0x5356dc
push 0x400
lea eax, [ebp - 0x814]
push eax
call fcn.004fa558
push 0x3ff
push 0x5356e0
push 0x400
lea ecx, [ebp - 0x814]
push ecx
call fcn.004fa558
add esp, 0x20
call fcn.004290f0
push 1
push 0x800
lea edx, [ebp - 0x1014]
push edx
push 0x5356e8
mov eax, dword [eax]
push eax
mov edx, str.InstallingSetupLanguage
call fcn.004920e0
add esp, 0x14
test eax, eax
jne 0x4024b1
lea ecx, [ebp - 0x1814]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4024b1
mov ecx, 0x5356dc
lea edx, [ebp - 0x1814]
call fcn.00494c80
push 0x800
push 0
lea edx, [ebp - 0x2014]
push edx
call fcn.004fd670
lea eax, [ebp - 0x1014]
push eax
push 0x5356e0
push str.CI3Temp
lea ecx, [ebp - 0x1814]
push ecx
push str._s_s_s_s
lea edx, [ebp - 0x2014]
call fcn.00404380
lea ebx, [esi + 0x2ee80]
push 0x800
push 0
push ebx
call fcn.004fd670
push str.image.png
lea edx, [ebp - 0x2014]
push edx
push 0x535a74
mov edx, ebx
call fcn.00404380
lea edi, [esi + 0x2f680]
push 0x800
push 0
push edi
call fcn.004fd670
add esp, 0x44
push str.string.xml
lea eax, [ebp - 0x2014]
push eax
push 0x535a74
mov edx, edi
call fcn.00404380
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402370
push 0x800
push eax
push edi
call fcn.004fd670
push str.string.xml
lea ecx, [ebp - 0x1014]
push ecx
lea edx, [ebp - 0x814]
push edx
push 0x535788
mov edx, edi
call fcn.00404380
add esp, 0x1c
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x402370
push 0x800
push eax
push edi
call fcn.004fd670
add esp, 0xc
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4023c3
push 0x800
push eax
push ebx
call fcn.004fd670
push str.image.png
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x814]
push ecx
push 0x535788
mov edx, ebx
call fcn.00404380
add esp, 0x1c
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4023c3
push 0x800
push eax
push ebx
call fcn.004fd670
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4024b1
lea ebx, [esi + 0x2fe80]
push 0x800
push 0
push ebx
call fcn.004fd670
add esi, 0x30680
push 0x800
push 0
push esi
call fcn.004fd670
add esp, 0x18
push 0
lea eax, [ebp - 0x4064]
call fcn.00487be0
test eax, eax
je 0x402439
push str.Load_XML_fail___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 0x4068], 0xd
push 0x5814b0
lea edx, [ebp - 0x4068]
push edx
call fcn.004fd5a3
push 0x800
push 0
push ebx
call fcn.004fd670
add esp, 0xc
push 1
push 0x400
mov edx, str.TITLE
lea ecx, [ebp - 0x4064]
call fcn.00487e80
test eax, eax
je 0x402474
push 0x800
push 0
push ebx
call fcn.004fd670
add esp, 0xc
push 0x800
push 0
push esi
call fcn.004fd670
add esp, 0xc
push 1
push 0x400
mov ebx, esi
mov edx, str.MESSAGE
lea ecx, [ebp - 0x4064]
call fcn.00487e80
test eax, eax
je 0x4024b1
push 0x800
push 0
push esi
call fcn.004fd670
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x4064]
push eax
call fcn.00487b80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004fa103
mov esp, ebp
pop ebp
ret