Function at 0x10050ac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10172111
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x101c6270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x74], eax
xor eax, eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x24], 0x1017f0c4
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], 1
xor esi, esi
mov eax, 0x1017f0c4
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.10050f00
add esp, 8
cmp dword [ebp - 0x44], 0
mov byte [ebp - 4], 2
je 0x10050bfe
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x3c]
call fcn.100041a0
cmp esi, 2
jl 0x10050b7f
push str.Temp
lea ecx, [ebp - 0x3c]
call fcn.100514f0
mov dword [ebp - 0x64], 0
call fcn.10127920
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.100508f0
mov eax, dword [ebp - 0x80]
add esp, 0xc
test eax, eax
je 0x10050be7
cmp eax, 1
je 0x10050be7
cmp dword [ebp - 0x64], 0
sete al
test al, al
je 0x10050be7
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.100508f0
add esp, 0xc
cmp dword [ebp - 0x6c], 3
sete al
test al, al
je 0x10050be7
cmp dword [ebp - 0x64], 0
sete al
test al, al
jne 0x10050c68
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], 4
cmp eax, 8
jb 0x10050c55
mov ecx, dword [ebp - 0x54]
inc eax
cmp eax, 0x7fffffff
ja 0x10050da0
add eax, eax
cmp eax, 0x1000
jb 0x10050c4c
test cl, 0x1f
jne 0x10050da0
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x10050da0
sub ecx, eax
cmp ecx, 4
jb 0x10050da0
cmp ecx, 0x23
ja 0x10050da0
mov ecx, eax
push ecx
call fcn.1010f663
add esp, 4
mov eax, dword [ebp + esi*4 - 0x20]
inc esi
mov byte [ebp - 4], 1
test eax, eax
jne 0x10050b42
jmp 0x10050c85
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 3
cmp eax, 8
jb 0x10050c81
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.10004630
mov byte [ebp - 4], 1
cmp dword [ebp - 0x2c], 0
jne 0x10050d15
lea eax, [ebp - 0x55]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push eax
lea ecx, [ebp - 0x70]
call fcn.1004e490
mov esi, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
cmp esi, ecx
mov byte [ebp - 4], 5
sete al
test al, al
jne 0x10050d56
sub ecx, esi
sar ecx, 1
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x10050d56
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10050cd6
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x3c]
call fcn.10004470
push str.Temp
lea ecx, [ebp - 0x3c]
call fcn.100514f0
mov byte [ebp - 4], 8
test esi, esi
je 0x10050d15
mov eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x70]
sub eax, esi
sar eax, 1
push eax
push esi
call fcn.10004630
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 9
cmp edi, eax
je 0x10050eba
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x10050e86
mov ecx, dword [edi]
inc eax
cmp eax, 0x7fffffff
jbe 0x10050e46
call fcn.101393f2
push str.boost::filesystem::temp_directory_path
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1004fef0
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
add esp, 0xc
mov word [edi], ax
mov dword [ebp - 0x5c], 1
mov ecx, dword [ebp - 0x70]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x10050de5
mov eax, dword [ebp - 0x68]
sub eax, ecx
sar eax, 1
cmp eax, 0x7fffffff
jbe 0x10050da5
call fcn.101393f2
add eax, eax
cmp eax, 0x1000
jb 0x10050ddc
test cl, 0x1f
je 0x10050db8
call fcn.101393f2
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10050dc4
call fcn.101393f2
sub ecx, eax
cmp ecx, 4
jae 0x10050dd0
call fcn.101393f2
cmp ecx, 0x23
jbe 0x10050dda
call fcn.101393f2
mov ecx, eax
push ecx
call fcn.1010f663
add esp, 4
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 7
cmp eax, 8
jb 0x10050edb
mov ecx, dword [ebp - 0x3c]
inc eax
cmp eax, 0x7fffffff
jbe 0x10050e08
call fcn.101393f2
add eax, eax
cmp eax, 0x1000
jb 0x10050ed2
test byte [ebp - 0x3c], 0x1f
je 0x10050e20
call fcn.101393f2
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10050e2c
call fcn.101393f2
sub ecx, eax
cmp ecx, 4
jae 0x10050e38
call fcn.101393f2
cmp ecx, 0x23
jbe 0x10050ed0
call fcn.101393f2
add eax, eax
cmp eax, 0x1000
jb 0x10050e7d
test cl, 0x1f
je 0x10050e59
call fcn.101393f2
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x10050e65
call fcn.101393f2
sub ecx, eax
cmp ecx, 4
jae 0x10050e71
call fcn.101393f2
cmp ecx, 0x23
jbe 0x10050e7b
call fcn.101393f2
mov ecx, eax
push ecx
call fcn.1010f663
add esp, 4
movups xmm0, xmmword [ebp - 0x3c]
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 7
xor ecx, ecx
movups xmmword [edi], xmm0
mov word [ebp - 0x3c], cx
movq xmm0, qword [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, 7
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x28], eax
jmp 0x10050ebd
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x5c], 1
mov dword [ebp - 4], 0xa
jmp 0x10050def
mov ecx, eax
push ecx
call fcn.1010f663
add esp, 4
mov eax, edi
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.1010f54f
mov esp, ebp
pop ebp
ret