Function at 0x46e6a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53aeb0
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
push ebx
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
call fcn.0047db23
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x46e702
push 0x80004005
call fcn.00422c50
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
or ebx, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
jne 0x46e7a4
push dword [ebp - 0x14]
call fcn.0044bbb0
add esp, 4
test al, al
jne 0x46e7a4
push dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
call fcn.00422310
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0046e590
add esp, 8
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00422800
mov edx, dword [ebp - 0x3c]
mov ecx, ebx
mov esi, dword [ebp - 0x28]
add edx, 0xfffffff0
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46e784
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46e7a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x118
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x1a8], 0x11c
push 0
push eax
call fcn.004a0810
add esp, 0xc
lea eax, [ebp - 0x1a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x1a4]
movzx ecx, word [ebp - 0x1a0]
shl eax, 0x10
or ecx, eax
mov eax, dword [ebp + 0x20]
cmp ecx, 0x60000
jae 0x46e7f6
test al, 2
je 0x46e89f
test al, 1
jne 0x46e89f
push 0x38
lea eax, [ebp - 0x80]
mov dword [ebp - 0x84], 0x3c
push 0
push eax
call fcn.004a0810
add esp, 0xc
mov dword [ebp - 0x80], 0x400
test edi, edi
je 0x46e82a
mov dword [ebp - 0x80], 0x440
test byte [ebp + 0x20], 4
mov dword [ebp - 0x78], str.open
je 0x46e83e
mov dword [ebp - 0x78], str.runas
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46e84e
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x7c], eax
test edi, edi
je 0x46e871
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x46e88c
xor bl, bl
or edi, 0xffffffff
jmp 0x46ea63
test edi, edi
je 0x46e895
mov eax, dword [ebp - 0x4c]
mov dword [edi], eax
mov bl, 1
or edi, 0xffffffff
jmp 0x46ea63
push 0x547488
lea ecx, [ebp - 0x40]
call fcn.00422310
push dword [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00422960
push 0x547488
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push eax
call fcn.00422960
add esp, 0x18
mov edx, dword [ebp - 0x20]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46e8f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x40]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46e913
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x1c], 0
je 0x46e98c
push 0x54d388
lea ecx, [ebp - 0x48]
call fcn.00422310
push dword [ebp - 0x1c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00422960
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
push dword [eax - 0xc]
push eax
call fcn.0042b5f0
mov edx, dword [ebp - 0x44]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46e96c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x48]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46e98c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x40
lea eax, [ebp - 0x88]
mov dword [ebp - 0x8c], 0x44
push 0
push eax
call fcn.004a0810
mov eax, dword [ebp + 0x1c]
mov edx, 1
mov word [ebp - 0x5c], ax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], 0
sub edx, dword [eax - 4]
mov ecx, dword [eax - 8]
or ecx, edx
jge 0x46e9e8
push 0
lea ecx, [ebp - 0x10]
call fcn.00423ab0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x8c]
push ecx
push dword [ebp - 0x18]
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x46ea11
xor bl, bl
jmp 0x46ea40
test edi, edi
je 0x46ea2e
mov eax, dword [ebp - 0x38]
mov dword [edi], eax
mov eax, dword [ebp - 0x34]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0xc], eax
jmp 0x46ea3e
push dword [ebp - 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x38]
call edi
mov bl, 1
mov edx, dword [ebp - 0x10]
or edi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46ea63
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x46ea81
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret