Function at 0x475710
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68253c
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1230
call fcn.00611f80
mov eax, dword [0x79cac4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x1088], edi
mov esi, ecx
sub esp, 8
lea ecx, [ebp - 0x1240]
call fcn.00472b00
mov edx, 0x769040
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1230]
call fcn.0046dbb0
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x47578e
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00473400
add esp, 4
mov edx, 0x76b528
mov ecx, eax
call fcn.0046dbb0
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x4757b1
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.00473400
add esp, 4
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x1228]
push eax
call fcn.0046fb40
lea edx, [ebp - 0x44]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00464990
mov byte [ebp - 4], 2
mov edx, dword [0x7aa7a8]
test edx, edx
je 0x475813
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov eax, dword [edx]
cmovae ecx, dword [ebp - 0x2c]
push ecx
push str.ACTION_StartUsingPid___s_
push edx
call dword [eax + 4]
mov ecx, dword [0x7aa7a8]
add esp, 0xc
test ecx, ecx
je 0x475813
mov eax, dword [ecx]
call dword [eax + 8]
push 0x40
lea eax, [ebp - 0x118c]
mov dword [ebp - 0x1190], 0x44
push 0
push eax
call fcn.0064cc00
xorps xmm0, xmm0
lea eax, [ebp - 0x1084]
movups xmmword [ebp - 0x1084], xmm0
mov dword [ebp - 0x1090], eax
lea eax, [ebp - 0x1080]
mov dword [ebp - 0x1094], eax
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1148]
call fcn.00472b00
mov al, byte [ebx + 0xc]
lea edx, [ebp - 0x44]
and al, 1
mov byte [ebp - 4], 5
xor edi, edi
mov byte [ebx + 0xc], al
cmp dword [ebp - 0x30], 8
mov ecx, esi
mov byte [ebp - 0x108c], al
cmovae edx, dword [ebp - 0x44]
cmp dword [esi + 0x14], 8
jb 0x47588a
mov ecx, dword [esi]
lea eax, [ebp - 0x1148]
push eax
lea eax, [ebp - 0x1084]
push eax
lea eax, [ebp - 0x1190]
push eax
push dword [ebx + 8]
push ecx
call fcn.00472400
add esp, 0x14
test al, al
je 0x475997
cmp byte [ebx + 0xc], 0
je 0x4758f8
mov esi, dword [ebp - 0x1084]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4758ec
lea eax, [ebp - 0x1074]
mov dword [ebp - 0x1074], edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4758f5
mov edi, dword [ebp - 0x1074]
jmp 0x4758f8
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
or edi, 0xffffffff
mov edx, dword [0x7aa7a8]
test edx, edx
je 0x47591d
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov eax, dword [edx]
cmovae ecx, dword [ebp - 0x2c]
push edi
push ecx
push str.ACTION_StartUsingPid_finished_using_RunAsProcessUser___s_:__d_r_n
push edx
call dword [eax + 4]
add esp, 0x10
lea ecx, [ebp - 0x1148]
call fcn.00471d90
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1080]
test eax, eax
je 0x475945
push eax
call esi
mov dword [ebp - 0x1080], 0
mov eax, dword [ebp - 0x1084]
test eax, eax
je 0x47595c
push eax
call esi
mov dword [ebp - 0x1084], 0
lea ecx, [ebp - 0x2c]
call fcn.00453390
lea ecx, [ebp - 0x44]
call fcn.00453390
lea ecx, [ebp - 0x1240]
call fcn.00471d90
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00611399
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, dword [0x7aa7a8]
mov dword [ebp - 0x1074], eax
test eax, eax
je 0x4759e5
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x1130]
call fcn.0046fb40
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
mov edx, dword [ebp - 0x1074]
cmovae ecx, dword [ebp - 0x5c]
push ecx
push str.RunAsProcessUser_failed_with_error:___s_._Trying_to_use_RunProcessAsExplorerUser
mov eax, dword [edx]
push edx
call dword [eax + 4]
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.00453390
mov eax, dword [ebp - 0x1148]
lea ecx, [ebp - 0x1148]
xor edx, edx
push 0
mov eax, dword [eax + 4]
add ecx, eax
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
push eax
call fcn.00450c50
mov edx, dword [ebp - 0x1088]
mov dword [ebp - 0x1074], 0xffffffff
cmp dword [edx + 0x14], 8
jb 0x475a23
mov edx, dword [edx]
cmp dword [esi + 0x14], 8
jb 0x475a2b
mov esi, dword [esi]
lea eax, [ebp - 0x1074]
push eax
push dword [ebp - 0x108c]
lea eax, [ebp - 0x1148]
push eax
push ecx
mov ecx, esi
call fcn.00472680
add esp, 0x10
test al, al
je 0x475abc
mov edx, dword [0x7aa7a8]
mov esi, dword [ebp - 0x1074]
test edx, edx
je 0x475a79
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov eax, dword [edx]
cmovae ecx, dword [ebp - 0x2c]
push esi
push ecx
push str.ACTION_StartUsingPid_finished_using_RunProcessAsExplorerUser___s_:__d_r_n
push edx
call dword [eax + 4]
add esp, 0x10
cmp byte [ebx + 0xc], 0
je 0x475aa6
cmp esi, 0xffffffff
je 0x475aa6
mov ecx, esi
call fcn.004756d0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
call esi
lea ecx, [ebp - 0x1148]
call fcn.00471d90
jmp 0x47592e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1148]
call fcn.00471d90
jmp 0x47592e
cmp dword [0x7aa7a8], 0
je 0x475b06
mov ecx, 0x7aa7a8
call fcn.004697f0
mov edi, eax
lea ecx, [ebp - 0x1148]
lea eax, [ebp - 0x5c]
push eax
call fcn.00472ae0
mov byte [ebp - 4], 7
mov ecx, eax
mov esi, dword [edi]
call fcn.00458230
push eax
push str.RunAsProcessUser_failed_with_error:___s_._Trying_to_use_RunProcessAsExplorerUser
push edi
call dword [esi + 4]
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.00451500
lea eax, [ebp - 0x1070]
push str.StartUsingPid_failed.
push eax
call fcn.00475600
add esp, 8
lea eax, [ebp - 0x1070]
push 0x790254
push eax
call fcn.0064d863
int3