Function at 0x100f4440
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102961ba
mov eax, dword fs:[0]
push eax
mov eax, 0x1010
call fcn.102609e0
mov eax, dword [0x1035dd3c]
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 edi, ecx
mov dword [ebp - 0x101c], 0
mov dword [ebp - 4], 0
call fcn.100c6b40
mov ecx, eax
test ecx, ecx
je 0x100f471a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1014], eax
push 0x103222f0
lea ecx, [ebp - 0x1014]
mov byte [ebp - 4], 1
call fcn.100c61e0
test al, al
jne 0x100f44cc
push 0
push 0x103222f0
lea ecx, [ebp - 0x1014]
call fcn.100c7180
push 0x800
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x101c], 1
call fcn.102629f0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 0x1018]
push ecx
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
lea eax, [ebp - 0x810]
push eax
push 0
je 0x100f4532
push dword [ebp - 0x1018]
push 0
push 0
call esi
push dword [ebp - 0x1018]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100f453c
push 0
push 0
push 0
call esi
mov ebx, eax
test ebx, ebx
js 0x100f4572
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100f4550
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1014]
call fcn.100c7180
lea eax, [ebp - 0x1014]
mov ecx, edi
push eax
call fcn.100c42b0
mov edx, dword [ebp - 0x1014]
or ebx, 0xffffffff
mov dword [ebp - 0x101c], 0
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100f45b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x100f46fc
push edi
mov ecx, edi
call fcn.100f4240
mov dword [ebp - 4], 2
call fcn.100c6b40
mov ecx, eax
test ecx, ecx
je 0x100f4724
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1014], eax
push 0x103222f0
lea ecx, [ebp - 0x1014]
mov byte [ebp - 4], 3
call fcn.100c61e0
test al, al
jne 0x100f4613
push 0
push 0x103222f0
lea ecx, [ebp - 0x1014]
call fcn.100c7180
push 0x800
lea eax, [ebp - 0x1010]
mov byte [ebp - 4], 2
push 0
push eax
mov dword [ebp - 0x101c], 2
call fcn.102629f0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 0x1018]
push ecx
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
lea eax, [ebp - 0x1010]
push eax
push 0
je 0x100f4673
push dword [ebp - 0x1018]
push 0x17
push 0
call esi
push dword [ebp - 0x1018]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100f467d
push 0
push 0x17
push 0
call esi
mov esi, eax
test esi, esi
js 0x100f46b2
lea ecx, [ebp - 0x1010]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100f4690
sub ecx, edx
lea eax, [ebp - 0x1010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1014]
call fcn.100c7180
lea eax, [ebp - 0x1014]
lea esi, [edi + 4]
push eax
mov ecx, esi
call fcn.100c42b0
mov edx, dword [ebp - 0x1014]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100f46e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x100f46fc
push esi
mov ecx, edi
call fcn.100f4240
mov eax, 1
jmp 0x100f46fe
xor eax, eax
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.102601ec
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100c61c0
push 0x80004005
call fcn.100c61c0
int3