Function at 0x42d550
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593932
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x612120]
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 [esi + 0x64], 0x1e
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
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 0x42d83a
cmp word [ebp - 0x218], 0
jne 0x42d5ce
xor ecx, ecx
jmp 0x42d5e6
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d5d7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004081c0
xor ecx, ecx
mov dword [ebp - 0x234], 7
push 0xffffffffffffffff
push ecx
lea eax, [esi + 0x34]
mov word [ebp - 0x248], cx
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
call fcn.00407320
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x260]
push 6
xor eax, eax
mov dword [ebp - 0x24c], 7
push str..trace
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
call fcn.004081c0
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x248]
call fcn.0042fee0
mov byte [ebp - 4], 1
mov bl, al
mov ecx, dword [ebp - 0x24c]
cmp ecx, 8
jb 0x42d694
inc ecx
push ecx
push dword [ebp - 0x260]
lea ecx, [ebp - 0x260]
call fcn.00407210
test bl, bl
je 0x42d7ff
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x230]
call fcn.0042fcf0
test al, al
je 0x42d7ff
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 0x42d6e1
mov dword [esi + 0x64], 0xa
jmp 0x42d7ff
push str..debug
lea ecx, [ebp - 0x260]
call fcn.004080d0
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x230]
call fcn.0042fee0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 1
mov bl, al
call fcn.00407140
test bl, bl
je 0x42d73f
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
je 0x42d7f8
lea ecx, [ebp - 0x230]
call fcn.0042ff90
test al, al
je 0x42d7ff
push str.asu.trace
lea ecx, [ebp - 0x260]
call fcn.004080d0
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x230]
call fcn.0042fcf0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 1
mov bl, al
call fcn.00407140
test bl, bl
je 0x42d7ff
lea ecx, [ebp - 0x230]
call fcn.0042fcd0
test al, al
je 0x42d7a4
mov dword [esi + 0x64], 0xa
jmp 0x42d7ff
lea ecx, [ebp - 0x230]
call fcn.0042ff90
test al, al
je 0x42d7ff
push str.asu.debug
lea ecx, [ebp - 0x260]
call fcn.004080d0
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x230]
call fcn.0042fcf0
lea ecx, [ebp - 0x260]
mov bl, al
call fcn.00407140
test bl, bl
je 0x42d7ff
lea ecx, [ebp - 0x230]
call fcn.0042fcd0
test al, al
je 0x42d7ff
mov dword [esi + 0x64], 0x14
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x42d81d
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.00407210
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x42d858
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00407210
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.00564ee1
mov esp, ebp
pop ebp
ret 4