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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f4b7
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x456014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x234], 0
mov dword [esi + 0x64], 0x1e
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40f431
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f073
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.00403270
lea eax, [esi + 0x34]
push eax
lea ecx, [ebp - 0x24c]
call fcn.004047a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
push 6
push str..trace
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
call fcn.00402120
lea edx, [ebp - 0x264]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.004144d0
mov byte [ebp - 4], 1
mov bl, al
mov ecx, dword [ebp - 0x250]
cmp ecx, 8
jb 0x40f133
mov edx, dword [ebp - 0x264]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f129
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f48a
push ecx
push edx
call fcn.0041cdfe
add esp, 8
test bl, bl
je 0x40f3d4
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x234]
call fcn.00414390
test al, al
je 0x40f3d4
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x40f181
mov eax, 0xa
mov dword [esi + 0x64], eax
jmp 0x40f3d4
push 6
push str..debug
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
call fcn.00402120
lea edx, [ebp - 0x264]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
call fcn.004144d0
mov byte [ebp - 4], 1
mov bl, al
mov ecx, dword [ebp - 0x250]
cmp ecx, 8
jb 0x40f20c
mov edx, dword [ebp - 0x264]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f202
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f48f
push ecx
push edx
call fcn.0041cdfe
add esp, 8
test bl, bl
je 0x40f23d
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x40f23d
mov eax, 0x14
mov dword [esi + 0x64], eax
jmp 0x40f3d4
lea ecx, [ebp - 0x234]
call fcn.00414570
test al, al
je 0x40f3d4
push 9
push str.asu.trace
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
call fcn.00402120
lea edx, [ebp - 0x264]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x234]
call fcn.00414390
mov byte [ebp - 4], 1
mov bl, al
mov ecx, dword [ebp - 0x250]
cmp ecx, 8
jb 0x40f2db
mov edx, dword [ebp - 0x264]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f2d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f494
push ecx
push edx
call fcn.0041cdfe
add esp, 8
test bl, bl
je 0x40f3d4
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x40f30f
mov dword [esi + 0x64], 0xa
jmp 0x40f3d4
lea ecx, [ebp - 0x234]
call fcn.00414570
test al, al
je 0x40f3d4
push 9
push str.asu.debug
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
call fcn.00402120
lea edx, [ebp - 0x264]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x234]
call fcn.00414390
mov ecx, dword [ebp - 0x250]
mov bl, al
cmp ecx, 8
jb 0x40f3a9
mov edx, dword [ebp - 0x264]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f39f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f499
push ecx
push edx
call fcn.0041cdfe
add esp, 8
test bl, bl
je 0x40f3d4
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x40f3d4
mov dword [esi + 0x64], 0x14
mov ecx, dword [ebp - 0x238]
cmp ecx, 8
jb 0x40f414
mov edx, dword [ebp - 0x24c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f40a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f49e
push ecx
push edx
call fcn.0041cdfe
add esp, 8
xor eax, eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 7
mov word [ebp - 0x24c], ax
mov ecx, dword [ebp - 0x220]
cmp ecx, 8
jb 0x40f46d
mov edx, dword [ebp - 0x234]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f463
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f49e
push ecx
push edx
call fcn.0041cdfe
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041cdc0
mov esp, ebp
pop ebp
ret 4
call fcn.0042200f
call fcn.0042200f
call fcn.0042200f
call fcn.0042200f
call fcn.0042200f
int3