Function at 0x10014f70
Capabilities:
Create process on windows
Get common file path
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x228
push 0xffffffffffffffff
push 0x10037792
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x1004f100]
xor eax, ebp
mov dword [ebp + 0x224], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
push ebx
push str.Explorers_policy_check__SessionId:_d
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 8
mov esi, 0x1003c2a8
call fcn.100154f0
mov esi, eax
xor edi, edi
mov dword [ebp - 0x20], esi
cmp esi, edi
jne 0x10014ff7
push str.Explorers_policy_check__explorer_not_started
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 4
lea eax, [edi + 2]
jmp 0x1001531c
lea eax, [ebp - 0x68]
push eax
call fcn.100191b0
lea ecx, [ebp - 0x68]
push ecx
mov dword [ebp - 4], edi
call fcn.10014850
add esp, 4
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x10015056
cmp dword [ebp - 0x4c], edi
jbe 0x10015056
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x68]
call fcn.10018e00
test eax, eax
jbe 0x10015056
push esi
push str.Explorers_policy_check__explorer_has_Policy.not_need_resstart_procid:_d
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 8
lea edx, [ebp - 0x68]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.10014ed0
xor eax, eax
jmp 0x1001531c
push esi
push ebx
push str.Explorers_policy_check__SessionId:_d__src_Proc:_d__restarting_....
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], edi
mov word [ebp + 4], ax
push esi
push edi
push 0x1fffff
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, edi
jne 0x100150d4
push 0x17
push str.open_src_process_failed
lea ecx, [ebp]
call fcn.10001a60
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10049464
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x48], eax
call fcn.10028c35
lea edx, [ebp - 0x18]
push edx
push 0xf01ff
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, edi
jne 0x10015111
push 0x1f
push str.open_src_processs_token_failed
lea ecx, [ebp]
call fcn.10001a60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], eax
push 0x10049464
lea eax, [ebp - 0x38]
push eax
call fcn.10028c35
mov ecx, dword [ebp - 0x18]
push edi
push ecx
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
cmp eax, edi
jne 0x1001514b
push str.open_src_processs_Evn_failed
lea ecx, [ebp]
call fcn.10001a20
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x44], eax
push 0x10049464
lea eax, [ebp - 0x44]
push eax
call fcn.10028c35
call fcn.10017960
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, edi
jne 0x10015183
push str.teminate_src_process_failed
lea ecx, [ebp]
call fcn.10001a20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10049464
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], eax
call fcn.10028c35
push 0x206
lea eax, [ebp + 0x1e]
xor edx, edx
push edi
push eax
mov word [ebp + 0x1c], dx
call fcn.100285e0
add esp, 0xc
push 0x104
lea ecx, [ebp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov eax, 0x104
lea ecx, [ebp + 0x1c]
xor esi, esi
mov edx, eax
cmp eax, edi
je 0x100151c9
cmp word [ecx], di
je 0x10015266
add ecx, 2
dec eax
jmp 0x100151b6
mov esi, 0x80070057
xor eax, eax
cmp esi, edi
jl 0x100151ee
mov ecx, 0x104
sub ecx, eax
lea edx, [ebp + eax*2 + 0x1c]
push str.explorer.exe
mov eax, 0x7fffffff
call fcn.10014100
push 0x44
lea edx, [ebp - 0xac]
push edi
push edx
call fcn.100285e0
mov edx, dword [ebp - 0x1c]
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xac]
push ecx
mov ecx, dword [ebp - 0x18]
push edi
push edx
push 0x430
push edi
push edi
push edi
lea eax, [ebp + 0x1c]
push eax
push edi
push ecx
mov dword [ebp - 0xac], 0x44
mov dword [ebp - 0xa4], str.winsta0default
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
lea ecx, [ebp]
cmp eax, edi
jne 0x10015277
push str.start_dst_process_failed
call fcn.10001a20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x10049464
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x3c], eax
call fcn.10028c35
cmp esi, edi
jl 0x100151ce
sub edx, eax
mov eax, edx
jmp 0x100151d0
push str.success
call fcn.10001a20
mov dword [ebp - 4], 1
jmp 0x1001529c
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
je 0x100152a9
push ebx
call esi
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x100152b3
push eax
call esi
mov eax, dword [ebp - 0x34]
cmp eax, edi
je 0x100152bd
push eax
call esi
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x100152c7
push eax
call esi
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x100152d5
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x100152e1
lea eax, [ebp + 4]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x2c]
push esi
push eax
push ecx
push str.Explorers_policy_check__restart_explorer_from:_d_to:_d__rlt:_08x_Info:_s
call fcn.1001af90
mov ecx, eax
call fcn.1001b3f0
add esp, 0x14
lea ecx, [ebp]
call fcn.100019f0
lea edx, [ebp - 0x68]
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.10014ed0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.100269c5
add ebp, 0x228
mov esp, ebp
pop ebp
ret