Function at 0x47aa60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d080d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x640844]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x70], eax
xor eax, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x24], 0x5e23a8
mov dword [ebp - 0x20], str.TEMP
mov dword [ebp - 0x1c], str.LOCALAPPDATA
mov dword [ebp - 0x18], str.USERPROFILE
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 7
mov word [ebp - 0x3c], ax
mov dword [ebp - 4], eax
xor esi, esi
mov eax, 0x5e23a8
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0047add0
add esp, 8
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x47ab93
cmp dword [ebp - 0x40], 8
lea eax, [ebp - 0x54]
push ecx
cmovae eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x3c]
push eax
call fcn.0041b0d0
cmp esi, 2
jl 0x47ab24
push str.Temp
lea ecx, [ebp - 0x3c]
call fcn.004760c0
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x78], 0
push eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x74], 0x5e1888
push eax
call fcn.0047a7f0
mov eax, dword [ebp - 0x6c]
add esp, 0xc
test eax, eax
je 0x47ab7c
cmp eax, 1
je 0x47ab7c
cmp dword [ebp - 0x7c], 0
jne 0x47ab7c
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0047a7f0
add esp, 0xc
cmp dword [ebp - 0x60], 3
jne 0x47ab7c
cmp dword [ebp - 0x7c], 0
je 0x47abe0
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 edx, dword [ebp - 0x40]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x47abd1
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47abc7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47adbf
push edx
push ecx
call fcn.004ece5f
add esp, 8
mov eax, dword [ebp + esi*4 - 0x20]
inc esi
test eax, eax
jne 0x47aae1
jmp 0x47abec
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00419980
cmp dword [ebp - 0x2c], 0
jne 0x47acda
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, eax
xor esi, esi
xor eax, eax
mov dword [ebp - 0x68], ecx
xor edi, edi
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
test ecx, ecx
je 0x47ac4e
cmp ecx, 0x7fffffff
ja 0x47adba
push ecx
lea ecx, [ebp - 0x64]
call fcn.0041b070
mov esi, eax
mov eax, dword [ebp - 0x68]
add eax, eax
mov dword [ebp - 0x64], esi
push eax
push 0
push esi
lea edi, [esi + eax]
mov dword [ebp - 0x5c], edi
call fcn.004ef230
add esp, 0xc
mov dword [ebp - 0x60], edi
mov eax, esi
mov byte [ebp - 4], 2
cmp esi, edi
je 0x47ad1c
sub edi, esi
mov ecx, edi
sar ecx, 1
push ecx
push eax
mov dword [ebp - 0x68], ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x47ad1e
mov edx, dword [ebp - 0x64]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47ac80
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x3c]
call fcn.0041b0d0
push str.Temp
lea ecx, [ebp - 0x3c]
call fcn.004760c0
test esi, esi
je 0x47acd7
mov ecx, dword [ebp - 0x68]
add ecx, ecx
cmp ecx, 0x1000
jb 0x47accd
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x47adbf
mov esi, edx
push ecx
push esi
call fcn.004ece5f
add esp, 8
mov edi, dword [ebp - 0x58]
movups xmm0, xmmword [ebp - 0x3c]
mov dword [edi], 0
mov eax, edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x2c]
movq qword [edi + 0x10], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ed0cc
mov esp, ebp
pop ebp
ret
sub edi, esi
push str.boost::filesystem::temp_directory_path
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00479e40
mov eax, dword [ebp - 0x58]
xor ecx, ecx
add esp, 0xc
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
test esi, esi
je 0x47ad7c
and edi, 0xfffffffe
cmp edi, 0x1000
jb 0x47ad72
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x47adbf
mov esi, ecx
push edi
push esi
call fcn.004ece5f
add esp, 8
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x47adb2
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47ada8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47adbf
push edx
push ecx
call fcn.004ece5f
add esp, 8
mov eax, dword [ebp - 0x58]
jmp 0x47ad01
call fcn.00427420
call fcn.004f242f
int3