Function at 0x494eb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c338
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x587084]
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 + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x24], 0x546158
mov dword [ebp - 0x20], str.TEMP
mov dword [ebp - 0x1c], str.LOCALAPPDATA
mov dword [ebp - 0x18], str.USERPROFILE
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
mov dword [ebp - 4], 1
xor edi, edi
mov eax, 0x546158
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00495250
add esp, 8
cmp dword [ebp - 0x44], 0
mov byte [ebp - 4], 2
sete al
test al, al
jne 0x494ff1
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00401afd
cmp edi, 2
jl 0x494f72
push str.Temp
lea ecx, [ebp - 0x3c]
call fcn.00495830
mov dword [ebp - 0x5c], 0
call fcn.00497f70
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00494d30
mov eax, dword [ebp - 0x78]
add esp, 0xc
test eax, eax
je 0x494fda
cmp eax, 1
je 0x494fda
cmp dword [ebp - 0x5c], 0
sete al
test al, al
je 0x494fda
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00494d30
add esp, 0xc
cmp dword [ebp - 0x64], 3
sete al
test al, al
je 0x494fda
cmp dword [ebp - 0x5c], 0
sete al
test al, al
jne 0x49505b
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
cmovae eax, dword [ebp - 0x3c]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 3
cmp eax, 8
jb 0x495048
mov ecx, dword [ebp - 0x54]
inc eax
cmp eax, 0x7fffffff
ja 0x495174
add eax, eax
cmp eax, 0x1000
jb 0x49503f
test cl, 0x1f
jne 0x495174
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x495174
sub ecx, eax
cmp ecx, 4
jb 0x495174
cmp ecx, 0x23
ja 0x495174
mov ecx, eax
push ecx
call fcn.00498033
add esp, 4
mov eax, dword [ebp + edi*4 - 0x20]
inc edi
mov byte [ebp - 4], 1
test eax, eax
jne 0x494f30
jmp 0x495067
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.004017e4
cmp dword [ebp - 0x2c], 0
sete al
test al, al
je 0x4950fb
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0
push 0
call edi
push eax
lea ecx, [ebp - 0x68]
call fcn.00493980
mov ebx, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
cmp ebx, ecx
mov byte [ebp - 4], 4
sete al
test al, al
jne 0x495128
sub ecx, ebx
sar ecx, 1
push ecx
push ebx
call edi
test eax, eax
je 0x495128
cmp word [ebx], 0
jne 0x4950b8
xor ecx, ecx
jmp 0x4950cf
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4950c0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x3c]
call fcn.00401a84
push str.Temp
lea ecx, [ebp - 0x3c]
call fcn.00495830
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x68]
sub eax, ebx
mov byte [ebp - 4], 8
sar eax, 1
push eax
push ebx
call fcn.00401c8b
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4951d7
mov eax, dword [esi]
jmp 0x4951d9
push str.boost::filesystem::temp_directory_path
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00494400
add esp, 0xc
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x495157
mov eax, dword [esi]
jmp 0x495159
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov byte [ebp - 4], 6
test ebx, ebx
je 0x4951b9
mov eax, dword [ebp - 0x60]
sub eax, ebx
sar eax, 1
cmp eax, 0x7fffffff
jbe 0x495179
call fcn.004da3e6
add eax, eax
cmp eax, 0x1000
jb 0x4951b0
test bl, 0x1f
je 0x49518c
call fcn.004da3e6
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x495198
call fcn.004da3e6
sub ebx, eax
cmp ebx, 4
jae 0x4951a4
call fcn.004da3e6
cmp ebx, 0x23
jbe 0x4951ae
call fcn.004da3e6
mov ebx, eax
push ebx
call fcn.00498033
add esp, 4
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], 7
cmp ecx, 8
jb 0x49522e
inc ecx
push ecx
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x3c]
call fcn.00401c8b
jmp 0x49522e
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
cmp esi, eax
je 0x495226
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4951fc
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00401c8b
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x495214
mov eax, dword [esi]
jmp 0x495216
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x3c]
push eax
mov ecx, esi
call fcn.00407a52
lea ecx, [ebp - 0x3c]
call fcn.004017e4
mov eax, esi
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.00497fef
mov esp, ebp
pop ebp
ret