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

Disassembly:
mov eax, 0x4810
call fcn.004fe1a0
mov eax, dword [0x5a4aa8]
xor eax, esp
mov dword [esp + 0x480c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x481c]
xor ebx, ebx
cmp byte [ebp + 0x5ec6], bl
push esi
push edi
mov byte [esp + 0x17], bl
je 0x442f98
xor al, al
jmp 0x4432f8
cmp dword [ebp + 0x5ebc], ebx
jne 0x442faa
mov dword [ebp + 0x5ebc], 1
test byte [ebp + 0x5ebc], 0x10
jne 0x442fd5
cmp dword [ebp + 0x5ebc], ebx
jne 0x442fc5
mov dword [ebp + 0x5ebc], 1
test dword [ebp + 0x5ebc], 0x100
je 0x4432f4
push 0x800
lea eax, [esp + 0x101c]
push ebx
push eax
call fcn.004fd670
add esp, 0xc
push 0x400
lea ecx, [esp + 0x101c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x442f91
lea edx, [esp + 0x1018]
push 0x5c
push edx
call fcn.004fa6eb
push 0x800
mov esi, eax
lea eax, [esp + 0x1824]
push ebx
push eax
call fcn.004fd670
add esp, 0x14
cmp esi, ebx
je 0x44304f
push 0x3ff
lea ecx, [esi + 2]
push ecx
lea edx, [esp + 0x1820]
push 0x400
push edx
call fcn.004fa71b
add esp, 0x10
mov word [esi], bx
push 0x800
lea eax, [esp + 0x81c]
push ebx
push eax
call fcn.004fd670
add esp, 0xc
lea ecx, [esp + 0x818]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x442f91
lea eax, [esp + 0x818]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x443090
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x816], 0x5c
jne 0x4430cb
lea eax, [esp + 0x818]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4430b4
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0x816], bx
push 0x800
lea edx, [esp + 0x1c]
push ebx
push edx
xor esi, esi
call fcn.004fd670
add esp, 0xc
push str.CI3_Inst
lea eax, [esp + 0x81c]
push eax
push 0x535a74
lea ecx, [esp + 0x24]
push 0x400
push ecx
call fcn.004fa51d
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x14
lea edx, [esp + 0x18]
push edx
call edi
test eax, eax
je 0x4431c7
lea esp, [esp]
push 1
lea ecx, [esp + 0x1c]
call fcn.0049c660
add esp, 4
lea eax, [esp + 0x18]
push eax
call edi
test eax, eax
je 0x4431c7
push 0x800
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.004fd670
add esp, 0xc
push esi
push str.CI3_Inst
lea edx, [esp + 0x20]
push edx
push str._s_s__d_
mov eax, edx
push 0x400
push eax
call fcn.004fa51d
add esi, 1
add esp, 0x18
cmp esi, 0xa
jne 0x4431b8
push 0x800
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.004fd670
add esp, 0xc
push str.CI3_Inst
lea edx, [esp + 0x1c]
push edx
push 0x535a74
mov eax, edx
push 0x400
push eax
call fcn.004fa51d
add esp, 0x14
push 1
lea ecx, [esp + 0x1c]
call fcn.0049c660
add esp, 4
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
jne 0x443120
push ebx
push ebx
push ebx
xor bl, bl
lea edi, [esp + 0x24]
lea eax, [esp + 0x1024]
call fcn.0049bd40
add esp, 0xc
push 0x800
lea edx, [esp + 0x201c]
push 0
push edx
call fcn.004fd670
add esp, 0xc
lea eax, [esp + 0x1018]
push eax
push str._sSetup
lea ecx, [esp + 0x2020]
push 0x400
push ecx
call fcn.004fa51d
push 0x800
lea edx, [esp + 0x82c]
push 0
push edx
call fcn.004fd670
add esp, 0x1c
mov eax, edi
push eax
push str._sSetup
lea ecx, [esp + 0x820]
push 0x400
push ecx
call fcn.004fa51d
push 0
push 0
push 1
lea edi, [esp + 0x834]
lea eax, [esp + 0x2034]
call fcn.0049bd40
add esp, 0x1c
push 0x3ff
push 0x5356dc
lea edx, [esp + 0x20]
push 0x400
push edx
call fcn.004fa558
push 0x3ff
lea eax, [esp + 0x182c]
push eax
lea ecx, [esp + 0x30]
push 0x400
push ecx
call fcn.004fa558
push 0x2000
lea edx, [esp + 0x283c]
push 0
push edx
call fcn.004fd670
mov ecx, dword [ebp + 0x48]
add esp, 0x2c
lea eax, [esp + 0x1018]
push eax
push ecx
push str._s__B__s___t
lea edx, [esp + 0x2824]
push 0x1000
push edx
call fcn.004fa51d
add esp, 0x14
push 0
push 0
lea edx, [esp + 0x2820]
lea ecx, [esp + 0x20]
call fcn.00493a40
add esp, 8
test eax, eax
jne 0x4432f4
mov byte [esp + 0x17], 1
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x481c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fa103
add esp, 0x4810
ret 4