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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6d8cd2
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x7e500c]
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 edi, ecx
xor eax, eax
mov dword [edi + 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 0x5dac78
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5da9f0
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.004271d0
lea eax, [edi + 0x34]
push eax
lea ecx, [ebp - 0x24c]
call fcn.00427050
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
push 6
xor eax, eax
mov dword [ebp - 0x254], 0
push str..trace
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
call fcn.004271d0
lea edx, [ebp - 0x264]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.004f9d70
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
mov bl, al
call fcn.00427170
test bl, bl
je 0x5dac6d
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x234]
call fcn.00605a80
test al, al
je 0x5dac6d
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 0x5dabd5
push 6
xor eax, eax
mov dword [ebp - 0x254], 0
push str..debug
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
call fcn.004271d0
lea edx, [ebp - 0x264]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
call fcn.004f9d70
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
mov bl, al
call fcn.00427170
test bl, bl
je 0x5dab45
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 0x5dab45
mov eax, 0x14
mov dword [edi + 0x64], eax
jmp 0x5dac6d
lea ecx, [ebp - 0x234]
call fcn.004f9e10
test al, al
je 0x5dac6d
push 9
xor eax, eax
mov dword [ebp - 0x254], 0
push str.asu.trace
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
call fcn.004271d0
lea edx, [ebp - 0x264]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x234]
call fcn.00605a80
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 1
mov bl, al
call fcn.00427170
test bl, bl
je 0x5dac6d
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 0x5dabe2
mov eax, 0xa
mov dword [edi + 0x64], eax
jmp 0x5dac6d
lea ecx, [ebp - 0x234]
call fcn.004f9e10
test al, al
je 0x5dac6d
push 9
xor eax, eax
mov dword [ebp - 0x254], 0
push str.asu.debug
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x250], 7
mov word [ebp - 0x264], ax
call fcn.004271d0
lea edx, [ebp - 0x264]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x234]
call fcn.00605a80
lea ecx, [ebp - 0x264]
mov bl, al
call fcn.00427170
test bl, bl
je 0x5dac6d
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 0x5dac6d
mov dword [edi + 0x64], 0x14
lea ecx, [ebp - 0x24c]
call fcn.00427170
lea ecx, [ebp - 0x234]
call fcn.00427170
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.00650ddc
mov esp, ebp
pop ebp
ret 4