Function at 0x47aa40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d084d
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], 0x5e23f8
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, 0x5e23f8
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0047adb0
add esp, 8
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x47ab73
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 0x47ab04
push str.Temp
lea ecx, [ebp - 0x3c]
call fcn.004760a0
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], 0x5e18d8
push eax
call fcn.0047a7d0
mov eax, dword [ebp - 0x6c]
add esp, 0xc
test eax, eax
je 0x47ab5c
cmp eax, 1
je 0x47ab5c
cmp dword [ebp - 0x7c], 0
jne 0x47ab5c
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0047a7d0
add esp, 0xc
cmp dword [ebp - 0x60], 3
jne 0x47ab5c
cmp dword [ebp - 0x7c], 0
je 0x47abc0
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 0x47abb1
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47aba7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47ad9f
push edx
push ecx
call fcn.004ece5f
add esp, 8
mov eax, dword [ebp + esi*4 - 0x20]
inc esi
test eax, eax
jne 0x47aac1
jmp 0x47abcc
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0
call fcn.00419980
cmp dword [ebp - 0x2c], 0
jne 0x47acba
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 0x47ac2e
cmp ecx, 0x7fffffff
ja 0x47ad9a
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 0x47acfc
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 0x47acfe
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 0x47ac60
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.004760a0
test esi, esi
je 0x47acb7
mov ecx, dword [ebp - 0x68]
add ecx, ecx
cmp ecx, 0x1000
jb 0x47acad
mov edx, dword [esi - 4]
add ecx, 0x23
sub esi, edx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x47ad9f
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.00479e20
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 0x47ad5c
and edi, 0xfffffffe
cmp edi, 0x1000
jb 0x47ad52
mov ecx, dword [esi - 4]
add edi, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x47ad9f
mov esi, ecx
push edi
push esi
call fcn.004ece5f
add esp, 8
mov edx, dword [ebp - 0x28]
cmp edx, 8
jb 0x47ad92
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47ad88
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47ad9f
push edx
push ecx
call fcn.004ece5f
add esp, 8
mov eax, dword [ebp - 0x58]
jmp 0x47ace1
call fcn.00427420
call fcn.004f242f
int3