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

Disassembly:
push 0xffffffffffffffff
push 0x43c386
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [esp + 0x1c]
call fcn.004161a0
xor esi, esi
push 0xffffffffffffffff
lea edi, [ebx + 0x2bc]
push esi
mov ecx, edi
mov dword [esp + 0x278], esi
call fcn.004079e0
mov ebp, 8
mov dword [esp + 0x270], 0xffffffff
cmp dword [esp + 0x34], ebp
jb 0x405f92
mov eax, dword [esp + 0x20]
push eax
call fcn.0041c4fe
add esp, 4
cmp dword [edi + 0x18], ebp
jb 0x405f9c
mov eax, dword [edi + 4]
jmp 0x405f9f
lea eax, [edi + 4]
push eax
push str.GetTempPath_:__s
mov ecx, 0x44cfe0
call fcn.00412bc0
add esp, 8
cmp dword [ebx + 0x2d0], esi
jne 0x405fca
push 0xffffffffffffffff
push esi
lea eax, [ebx + 0x2a0]
mov ecx, edi
call fcn.004079e0
call fcn.00413fb0
push 0x208
lea ecx, [esp + 0x5a]
push esi
push ecx
mov word [esp + 0x60], si
call fcn.00420090
push esi
call fcn.0041d4ee
add esp, 0x10
mov ebp, eax
mov dword [esp + 0x18], edx
cmp dword [edi + 0x18], 8
jb 0x405ffe
mov eax, dword [edi + 4]
jmp 0x406001
lea eax, [edi + 4]
lea edx, [esp + 0x54]
push edx
push ebp
push str.UNINST
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x406026
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40602e
add esi, 1
cmp esi, 5
jl 0x405ff3
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40609b
lea edx, [esp + 0x54]
push edx
push str.GetTempFileName_:__s
mov ecx, 0x44cfe0
call fcn.00412bc0
lea eax, [esp + 0x5c]
push eax
call fcn.00414d90
add esp, 0xc
test eax, eax
je 0x40609b
lea eax, [esp + 0x54]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406070
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x58]
push ecx
mov esi, edi
call fcn.00408070
call fcn.00413fb0
mov dword [ebx + 0x29c], 1
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov eax, edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
call fcn.004079e0
mov dword [esp + 0x270], 1
mov eax, dword [esp + 0x4c]
cmp eax, 1
jb 0x406118
lea esi, [eax - 1]
cmp esi, eax
jbe 0x4060dc
call fcn.0041d74b
mov eax, dword [esp + 0x3c]
mov edi, 8
cmp dword [esp + 0x50], edi
jae 0x4060ef
lea eax, [esp + 0x3c]
movzx ecx, word [eax + esi*2]
xor eax, eax
cmp cx, word [eax + 0x442e38]
je 0x40611d
add eax, 2
cmp eax, 4
jb 0x4060f5
push 1
push 0x43fc94
lea ecx, [esp + 0x40]
call fcn.00411f50
jmp 0x40611d
mov edi, 8
mov ecx, 0x443334
lea edx, [esp + 0x38]
call fcn.00414280
cmp dword [esp + 0x50], edi
mov ecx, dword [esp + 0x3c]
jae 0x406139
lea ecx, [esp + 0x3c]
push 0x443344
push 0x6b
call fcn.0040a870
mov ecx, dword [esp + 0x44]
add esp, 8
cmp dword [esp + 0x50], edi
jae 0x406156
lea ecx, [esp + 0x3c]
push eax
push ecx
push str.Extrace_File___s____d_
mov ecx, 0x44cfe0
call fcn.00412bc0
add esp, 0xc
cmp dword [esp + 0x50], edi
jb 0x40617d
mov edx, dword [esp + 0x3c]
push edx
call fcn.0041c4fe
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.0041cb94
add esp, 0x260
ret