Function at 0x21029510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x21048f2a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
mov dword [ebp - 0x238], ecx
mov eax, dword [ebp - 0x238]
mov dword [eax], 0
mov ecx, dword [ebp - 0x238]
mov dword [ecx + 4], 0xffffffff
mov edx, dword [ebp - 0x238]
mov dword [edx + 8], 0
mov eax, dword [ebp - 0x238]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 0x238]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 0x238]
mov dword [edx + 0x14], 0
mov dword [ebp - 0x18], str.wtsapi32.dll
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x210295d0
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x224]
push eax
call fcn.2100ac73
push 0
lea ecx, [ebp - 0x224]
push ecx
call fcn.2100a9d3
test eax, eax
je 0x210295d0
lea edx, [ebp - 0x224]
mov dword [ebp - 0x18], edx
lea ecx, [ebp - 0x120]
call fcn.210149e1
mov dword [ebp - 4], 0
push 0x14
call fcn.2103d925
add esp, 4
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x22c], 0
je 0x21029618
push 1
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x22c]
call fcn.21005dc0
mov dword [ebp - 0x23c], eax
jmp 0x21029622
mov dword [ebp - 0x23c], 0
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x228], ecx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x228]
mov dword [edx], eax
cmp dword [ebp - 0x228], 0
je 0x21029662
mov ecx, dword [ebp - 0x238]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x238]
mov eax, dword [edx]
mov edx, dword [eax]
call dword [edx + 4]
test eax, eax
jne 0x21029667
jmp 0x21029765
push str.WTSEnumerateProcessesA
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax]
call fcn.2100d170
mov ecx, dword [ebp - 0x238]
mov dword [ecx + 8], eax
push str.WTSFreeMemory
mov edx, dword [ebp - 0x238]
mov ecx, dword [edx]
call fcn.2100d170
mov ecx, dword [ebp - 0x238]
mov dword [ecx + 0xc], eax
push str.WTSQuerySessionInformationA
mov edx, dword [ebp - 0x238]
mov ecx, dword [edx]
call fcn.2100d170
mov ecx, dword [ebp - 0x238]
mov dword [ecx + 0x10], eax
push str.WTSQueryUserToken
mov edx, dword [ebp - 0x238]
mov ecx, dword [edx]
call fcn.2100d170
mov ecx, dword [ebp - 0x238]
mov dword [ecx + 0x14], eax
call fcn.21029817
test eax, eax
jne 0x210296f3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.21013390
jmp 0x210297ca
mov edx, dword [ebp - 0x238]
cmp dword [edx + 8], 0
je 0x21029717
mov eax, dword [ebp - 0x238]
cmp dword [eax + 0xc], 0
je 0x21029717
mov ecx, dword [ebp - 0x238]
cmp dword [ecx + 0x10], 0
jne 0x21029719
jmp 0x21029765
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
push 4
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x238]
call dword [ecx + 0x10]
test eax, eax
jne 0x21029736
jmp 0x21029765
mov edx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x238]
call dword [eax + 0xc]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.21013390
jmp 0x210297ca
mov ecx, dword [ebp - 0x238]
mov edx, dword [ecx]
mov dword [ebp - 0x234], edx
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
je 0x210297a2
push 1
mov ecx, dword [ebp - 0x230]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x230]
call dword [edx]
mov dword [ebp - 0x240], eax
jmp 0x210297ac
mov dword [ebp - 0x240], 0
mov eax, dword [ebp - 0x238]
mov dword [eax], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x120]
call fcn.21013390
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret