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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455012
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x468620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov ebx, 7
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x270], edi
mov dword [edi + 0x74], eax
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x224], esi
mov word [ebp - 0x234], cx
lea edx, [ebp - 0x218]
push edx
push 0x104
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
je 0x41fc2f
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x41fb20
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00401d50
push 0xffffffffffffffff
push esi
xor edx, edx
add edi, 0x3c
push edi
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x25c], esi
mov word [ebp - 0x26c], dx
call fcn.004017b0
mov byte [ebp - 4], 1
push 6
xor eax, eax
push str..trace
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x240], esi
mov word [ebp - 0x250], ax
call fcn.00401d50
lea ecx, [ebp - 0x250]
lea edi, [ebp - 0x26c]
mov byte [ebp - 4], 2
call fcn.00425670
mov byte [ebp - 4], 1
cmp dword [ebp - 0x23c], 8
mov bl, al
jb 0x41fbc7
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.0043a5c1
add esp, 4
test bl, bl
je 0x41fd4c
lea ecx, [ebp - 0x26c]
lea edi, [ebp - 0x234]
call fcn.004254b0
test al, al
je 0x41fd4c
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x41fbf9
mov eax, edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
cmp eax, 1
jne 0x41fc3b
mov edx, dword [ebp - 0x270]
mov dword [edx + 0x74], 0xa
lea ecx, [ebp - 0x26c]
call fcn.00401460
lea ecx, [ebp - 0x234]
call fcn.00401460
jmp 0x41fd98
cmp dword [ebp - 0x220], 8
jmp 0x41fd87
push str..debug
lea ecx, [ebp - 0x250]
call fcn.00401410
lea ecx, [ebp - 0x250]
lea edi, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.00425670
lea ecx, [ebp - 0x250]
mov bl, al
mov byte [ebp - 4], 1
call fcn.00401460
test bl, bl
je 0x41fcaa
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x41fc86
mov eax, edi
push eax
call esi
cmp eax, 1
jne 0x41fcaa
mov eax, 0x14
cmp dword [ebp + 8], eax
jle 0x41fc14
mov ecx, dword [ebp - 0x270]
mov dword [ecx + 0x74], eax
jmp 0x41fc14
lea esi, [ebp - 0x234]
call fcn.00425710
test al, al
je 0x41fd4a
push str.asu.trace
lea ecx, [ebp - 0x250]
call fcn.00401410
lea ecx, [ebp - 0x250]
mov edi, esi
mov byte [ebp - 4], 4
call fcn.004254b0
lea ecx, [ebp - 0x250]
mov bl, al
mov byte [ebp - 4], 1
call fcn.00401460
test bl, bl
je 0x41fd4a
mov eax, esi
call fcn.00425490
test al, al
jne 0x41fc07
call fcn.00425710
test al, al
je 0x41fd4a
push str.asu.debug
lea ecx, [ebp - 0x250]
call fcn.00401410
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 5
call fcn.004254b0
lea ecx, [ebp - 0x250]
mov bl, al
call fcn.00401460
test bl, bl
je 0x41fd4a
mov eax, esi
call fcn.00425490
test al, al
jne 0x41fc8e
xor esi, esi
mov edi, 8
cmp dword [ebp - 0x258], edi
jb 0x41fd68
mov edx, dword [ebp - 0x26c]
push edx
call fcn.0043a5c1
add esp, 4
xor eax, eax
cmp dword [ebp - 0x220], edi
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], esi
mov word [ebp - 0x26c], ax
jb 0x41fd98
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.0043a5c1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043a0d5
mov esp, ebp
pop ebp
ret 4