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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f2757
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x521284]
xor eax, ebp
mov dword [ebp - 0x10], 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 - 0x230], 0
mov dword [esi + 0x64], 0x1e
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x41ff4f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41fc93
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00402a90
lea eax, [esi + 0x34]
push eax
lea ecx, [ebp - 0x248]
call fcn.00402eb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x260]
push 6
xor eax, eax
mov dword [ebp - 0x260], 0
push str..trace
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
call fcn.00402a90
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.00425c90
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 1
mov bl, al
call fcn.00402a30
test bl, bl
je 0x41ff44
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x230]
call fcn.00425ad0
test al, al
je 0x41ff44
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x41fd75
mov eax, 0xa
mov dword [esi + 0x64], eax
jmp 0x41ff44
push 6
xor eax, eax
mov dword [ebp - 0x260], 0
push str..debug
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
call fcn.00402a90
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.00425c90
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 1
mov bl, al
call fcn.00402a30
test bl, bl
je 0x41fe05
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x41fe05
mov eax, 0x14
mov dword [esi + 0x64], eax
jmp 0x41ff44
lea ecx, [ebp - 0x230]
call fcn.00425d30
test al, al
je 0x41ff44
push 9
xor eax, eax
mov dword [ebp - 0x260], 0
push str.asu.trace
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
call fcn.00402a90
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x230]
call fcn.00425ad0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 1
mov bl, al
call fcn.00402a30
test bl, bl
je 0x41ff44
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x41feab
mov dword [esi + 0x64], 0xa
jmp 0x41ff44
lea ecx, [ebp - 0x230]
call fcn.00425d30
test al, al
je 0x41ff44
push 9
xor eax, eax
mov dword [ebp - 0x260], 0
push str.asu.debug
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
call fcn.00402a90
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x230]
call fcn.00425ad0
lea ecx, [ebp - 0x260]
mov bl, al
call fcn.00402a30
test bl, bl
je 0x41ff44
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x41ff44
mov dword [esi + 0x64], 0x14
lea ecx, [ebp - 0x248]
call fcn.00402a30
lea ecx, [ebp - 0x230]
call fcn.00402a30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cc21a
mov esp, ebp
pop ebp
ret 4