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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578ea2
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x5df3f4]
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 esi, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov dword [esi + 0x64], edi
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
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 0x45c39f
cmp word [ebp - 0x21c], 0
jne 0x45c12e
xor ecx, ecx
jmp 0x45c146
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45c137
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.0044d430
xor ecx, ecx
mov dword [ebp - 0x250], 7
push 0xffffffffffffffff
push ecx
lea eax, [esi + 0x34]
mov word [ebp - 0x264], cx
push eax
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x254], 0
call fcn.0044d8f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24c]
push 6
xor eax, eax
mov dword [ebp - 0x238], 7
push str..trace
mov dword [ebp - 0x23c], 0
mov word [ebp - 0x24c], ax
call fcn.0044d430
lea edx, [ebp - 0x24c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x264]
call fcn.00464750
mov byte [ebp - 4], 1
mov bl, al
mov ecx, dword [ebp - 0x238]
cmp ecx, 8
jb 0x45c1f4
inc ecx
push ecx
push dword [ebp - 0x24c]
lea ecx, [ebp - 0x24c]
call fcn.0044d810
test bl, bl
je 0x45c364
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x234]
call fcn.00464560
test al, al
je 0x45c364
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 0x45c241
mov dword [esi + 0x64], 0xa
jmp 0x45c364
push str..debug
lea ecx, [ebp - 0x24c]
call fcn.0044d0f0
lea edx, [ebp - 0x24c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
call fcn.00464750
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 1
mov bl, al
call fcn.0044d0b0
test bl, bl
je 0x45c29f
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
je 0x45c358
lea ecx, [ebp - 0x234]
call fcn.00464800
test al, al
je 0x45c364
push str.asu.trace
lea ecx, [ebp - 0x24c]
call fcn.0044d0f0
lea edx, [ebp - 0x24c]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x234]
call fcn.00464560
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 1
mov bl, al
call fcn.0044d0b0
test bl, bl
je 0x45c364
lea ecx, [ebp - 0x234]
call fcn.00464540
test al, al
je 0x45c304
mov dword [esi + 0x64], 0xa
jmp 0x45c364
lea ecx, [ebp - 0x234]
call fcn.00464800
test al, al
je 0x45c364
push str.asu.debug
lea ecx, [ebp - 0x24c]
call fcn.0044d0f0
lea edx, [ebp - 0x24c]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x234]
call fcn.00464560
lea ecx, [ebp - 0x24c]
mov bl, al
call fcn.0044d0b0
test bl, bl
je 0x45c364
lea ecx, [ebp - 0x234]
call fcn.00464540
test al, al
je 0x45c364
cmp edi, 0x14
jle 0x45c364
mov dword [esi + 0x64], 0x14
mov eax, dword [ebp - 0x250]
cmp eax, 8
jb 0x45c382
inc eax
lea ecx, [ebp - 0x264]
push eax
push dword [ebp - 0x264]
call fcn.0044d810
xor eax, eax
mov dword [ebp - 0x250], 7
mov dword [ebp - 0x254], 0
mov word [ebp - 0x264], ax
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x45c3bd
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.0044d810
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.0050ad85
mov esp, ebp
pop ebp
ret 4