Function at 0x430220
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d582e
mov eax, dword fs:[0]
push eax
mov eax, 0x1128
call fcn.004848f0
mov eax, dword [0x56b06c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
sub esp, 8
lea ecx, [ebp - 0x1134]
call fcn.004298f0
mov edx, 0x542d04
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1124]
call fcn.004241d0
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x430285
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.0042a220
add esp, 4
mov edx, 0x542cfc
mov ecx, eax
call fcn.004241d0
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x4302a8
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.0042a220
add esp, 4
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x111c]
push eax
call fcn.004265c0
mov byte [ebp - 4], 1
mov edx, dword [0x57396c]
test edx, edx
je 0x4302fb
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov eax, dword [edx]
cmovae ecx, dword [ebp - 0x2c]
push ecx
push str.ACTION_StartElevated___s_
push edx
call dword [eax + 4]
mov ecx, dword [0x57396c]
add esp, 0xc
test ecx, ecx
je 0x4302fb
mov eax, dword [ecx]
call dword [eax + 8]
push 0x38
lea eax, [ebp - 0x1078]
mov dword [ebp - 0x107c], 0x3c
push 0
push eax
call fcn.004a9e70
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, dword [ebp - 0x1078]
mov ebx, ecx
and ebx, 1
mov dword [ebp - 0x1070], str.runas
mov edx, 0x40
cmovne eax, edx
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x1078], eax
jb 0x430346
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x106c], esi
jb 0x430354
mov edi, dword [edi]
mov eax, dword [ebp - 0x1060]
test cl, 4
mov ecx, 1
mov dword [ebp - 0x1068], edi
cmovne eax, ecx
mov dword [ebp - 0x1060], eax
lea eax, [ebp - 0x1044]
mov dword [ebp - 0x1080], eax
lea eax, [ebp - 0x107c]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4304a4
mov esi, dword [ebp - 0x1044]
test ebx, ebx
je 0x4303a8
test esi, esi
je 0x4304d0
xor edi, edi
test ebx, ebx
je 0x4303ed
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4303db
lea eax, [ebp - 0x1040]
mov dword [ebp - 0x1040], edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4303e4
mov edi, dword [ebp - 0x1040]
jmp 0x4303e7
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
or edi, 0xffffffff
mov esi, dword [ebp - 0x1044]
mov edx, dword [0x57396c]
test edx, edx
je 0x430418
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_StartElevated_finished___s_:__d_r_n
push edx
call dword [eax + 4]
mov esi, dword [ebp - 0x1044]
add esp, 0x10
test esi, esi
je 0x43042d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1044], 0
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x430467
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x43045d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4304f5
push edx
push ecx
call fcn.004835cc
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1134]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00428940
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048358b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x103c]
push str.ShellExecuteEx_failed_with_error__d
push eax
call fcn.0042fc10
add esp, 0xc
lea eax, [ebp - 0x103c]
push 0x5623a4
push eax
call fcn.004a92fe
lea eax, [ebp - 0x103c]
push str.sei.hProcess_is_NULL__
push eax
call fcn.0042fb70
add esp, 8
lea eax, [ebp - 0x103c]
push 0x562394
push eax
call fcn.004a92fe
call fcn.004b1db8
int3