Function at 0x4ea360
Capabilities:
Create process on windows
Resolve function by parsing pe exports
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x178
mov eax, dword [0x5b46a4]
xor eax, esp
mov dword [esp + 0x174], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x30]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0xc], 0
call fcn.00504140
mov dl, byte [esi + 8]
mov ecx, dword [esi + 4]
mov byte [esp + 0x13], dl
mov dword [esp + 0x14], 0
test ecx, ecx
je 0x4ea3c8
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
jne 0x4ea503
mov byte [esp + 0x13], 0
cmp byte [esi + 0x10], 0
mov eax, 0x5acd70
mov dword [esp + 0x64], 1
cmove eax, dword [esp + 0x40]
xor ecx, ecx
cmp byte [esi + 1], cl
mov dword [esp + 0x40], eax
mov eax, 5
cmovne eax, ecx
mov word [esp + 0x68], ax
cmp dword [esi + 0x18], ecx
jne 0x4ea407
cmp dword [esi + 0x1c], ecx
jne 0x4ea407
cmp dword [esi + 0x20], ecx
je 0x4ea497
mov eax, dword [esp + 0xc]
test al, 0x20
je 0x4ea426
and eax, 0xffffffdf
lea ecx, [esp + 0x90]
mov dword [esp + 0xc], eax
call fcn.004ebe90
mov eax, dword [esp + 0xc]
test al, 0x40
je 0x4ea441
and eax, 0xffffffbf
lea ecx, [esp + 0x90]
mov dword [esp + 0xc], eax
call fcn.004ebe90
mov eax, dword [esp + 0xc]
test al, al
jns 0x4ea45e
and eax, 0xffffff7f
lea ecx, [esp + 0x90]
mov dword [esp + 0xc], eax
call fcn.004ebe90
mov eax, dword [esp + 0xc]
test eax, 0x100
je 0x4ea47a
and eax, 0xfffffeff
lea ecx, [esp + 0x90]
mov dword [esp + 0xc], eax
call fcn.004ebe90
mov eax, dword [esi + 0x18]
or dword [esp + 0x64], 0x100
mov dword [esp + 0x70], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x74], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x78], eax
cmp dword [esi + 0x14], 0
je 0x4ea6d8
or dword [esp + 0x14], 4
cmp dword [0x5c2c30], 0
jne 0x4ea4e3
push 0x4c
call fcn.00539d85
add esp, 4
mov ecx, eax
call fcn.004eb4a0
mov edx, eax
mov edi, 0x5c2c30
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
mov edi, dword [esp + 0x18]
test eax, eax
je 0x4ea4e3
test edx, edx
je 0x4ea4e3
push ecx
mov ecx, edx
call fcn.004eb460
mov eax, dword [0x5c2c30]
cmp dword [eax], 5
mov eax, dword [esp + 0x14]
jge 0x4ea6dc
or eax, 0x1000000
mov dword [esp + 0x14], eax
jmp 0x4ea6dc
cmp dword [0x5c2c30], 0
jne 0x4ea540
push 0x4c
call fcn.00539d85
add esp, 4
mov ecx, eax
call fcn.004eb4a0
mov edx, eax
mov edi, 0x5c2c30
mov ecx, edx
xor eax, eax
lock cmpxchg dword [edi], ecx
mov edi, dword [esp + 0x18]
test eax, eax
je 0x4ea540
test edx, edx
je 0x4ea540
push ecx
mov ecx, edx
call fcn.004eb460
mov eax, dword [0x5c2c30]
cmp dword [eax], 3
jge 0x4ea558
push 0
mov ecx, edi
call fcn.004e9d70
jmp 0x4ea9f1
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 2
cmp eax, 0x3fffffff
jbe 0x4ea578
push 0
mov ecx, edi
call fcn.004e9d70
jmp 0x4ea9f1
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
cmp esi, edi
je 0x4ea5c0
push 1
push 1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x4ea59e
cmp byte [0x5c2bfc], al
jne 0x4eaa22
int3
mov eax, dword [esp + 0xc]
test al, 4
je 0x4ea5b9
and eax, 0xfffffffb
lea ecx, [esp + 0x90]
mov dword [esp + 0xc], eax
call fcn.004ebe90
add esi, 4
cmp esi, edi
jne 0x4ea581
push ecx
lea ecx, [esp + 0x3c]
call fcn.00504210
test al, al
jne 0x4ea61f
test byte [esp + 0xc], 8
je 0x4ea5e1
lea ecx, [esp + 0x90]
call fcn.004ec5c0
mov esi, dword [esp + 0x18]
mov ecx, esi
push 0
call fcn.004e9d70
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4ea609
push eax
call dword [0x5c28f0]
push dword [esp + 0x7c]
call fcn.0053a22b
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x2c]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov edi, dword [eax]
mov eax, dword [eax + 4]
sub eax, edi
sar ecx, 2
sar eax, 2
test eax, eax
je 0x4eaa29
mov edx, dword [esp + 0x7c]
test edx, edx
je 0x4ea683
push 0
push 0
lea eax, [ecx*4]
push eax
push edi
push 0x20002
push 0
push edx
call dword [0x5c28e8]
test eax, eax
setne al
test al, al
je 0x4ea683
mov edi, dword [esp + 0x18]
mov eax, 0x80000
mov byte [esp + 0x13], 1
mov dword [esp + 0x14], eax
jmp 0x4ea3c8
test byte [esp + 0xc], 0x10
je 0x4ea696
lea ecx, [esp + 0x90]
call fcn.004ec5c0
mov esi, dword [esp + 0x18]
mov ecx, esi
push 0
call fcn.004e9d70
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4ea609
push eax
call dword [0x5c28f0]
push dword [esp + 0x7c]
call fcn.0053a22b
add esp, 4
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x174]
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
cmp byte [esi + 0x24], 0
je 0x4ea6eb
or eax, 0x1000000
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x160], 7
push 0xffffffffffffffff
push eax
push dword [esp + 0x38]
xorps xmm0, xmm0
mov dword [esp + 0x168], 0
lea ecx, [esp + 0x158]
movaps xmmword [esp + 0x8c], xmm0
mov word [esp + 0x158], ax
call fcn.004e2010
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4ea818
or dword [esp + 0x14], 0x400
push 0
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x4ea77a
test dword [esp + 0xc], 0x200
je 0x4ea76c
lea ecx, [esp + 0x90]
call fcn.004ec5c0
push 0
mov ecx, edi
call fcn.004e9d70
jmp 0x4ea9b4
cmp dword [esp + 0x160], 8
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x154]
cmovae ecx, dword [esp + 0x154]
push 0
push dword [esp + 0x24]
push eax
movzx eax, byte [esp + 0x27]
push eax
push 0
push 0
push ecx
push 0
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test esi, esi
jne 0x4ea8b6
mov eax, dword [esp + 0xc]
test eax, 0x800
je 0x4ea7f7
and eax, 0xfffff7ff
lea ecx, [esp + 0x90]
mov dword [esp + 0xc], eax
call fcn.004ec5c0
mov eax, dword [esp + 0xc]
test eax, 0x400
je 0x4ea80a
lea ecx, [esp + 0x164]
call fcn.004e0b20
push 0
mov ecx, edi
call fcn.004e9d70
jmp 0x4ea9b4
cmp dword [esp + 0x160], 8
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x154]
cmovae ecx, dword [esp + 0x154]
push 0
push 0
push eax
movzx eax, byte [esp + 0x27]
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4ea8ba
mov eax, dword [esp + 0xc]
test eax, 0x2000
je 0x4ea880
and eax, 0xffffdfff
lea ecx, [esp + 0x90]
mov dword [esp + 0xc], eax
call fcn.004ec5c0
mov eax, dword [esp + 0xc]
test eax, 0x1000
je 0x4ea8a8
mov eax, dword [esp + 0x178]
cmp eax, 0x10
jb 0x4ea8a8
inc eax
lea ecx, [esp + 0x164]
push eax
push dword [esp + 0x168]
call fcn.004e2910
push 0
mov ecx, edi
call fcn.004e9d70
jmp 0x4ea9b4
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x80]
mov dword [esp + 0x1c], 0
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.005042d0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ea95e
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x4ea954
test dword [esp + 0xc], 0x4000
je 0x4ea917
lea ecx, [esp + 0x90]
call fcn.004ebe90
lea ecx, [esp + 0x1c]
call fcn.005043f0
push eax
lea ecx, [esp + 0x34]
call fcn.004e9d70
push 1
push 1
lea ecx, [esp + 0x38]
call fcn.004e9f40
push 0
mov ecx, edi
call fcn.004e9d70
lea ecx, [esp + 0x34]
call fcn.004e7320
lea ecx, [esp + 0x1c]
call fcn.00504290
jmp 0x4ea9b4
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [esi], 0
je 0x4ea96f
push 0xffffffffffffffff
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x1c]
call fcn.005043f0
push eax
mov ecx, edi
call fcn.004e9d70
lea ecx, [esp + 0x1c]
call fcn.004e7320
lea ecx, [esp + 0x20]
call fcn.004e7320
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.004e7320
lea ecx, [esp + 0x1c]
call fcn.004e7320
mov eax, dword [esp + 0x160]
cmp eax, 8
jb 0x4ea9d5
inc eax
lea ecx, [esp + 0x14c]
push eax
push dword [esp + 0x150]
call fcn.004e2c50
xor eax, eax
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], eax
mov word [esp + 0x14c], ax
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4eaa0c
push eax
call dword [0x5c28f0]
push dword [esp + 0x7c]
call fcn.0053a22b
add esp, 4
mov ecx, dword [esp + 0x17c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0053a230
mov esp, ebp
pop ebp
ret
push 1
call fcn.00549dc3
push str.invalid_vector_T__subscript
call fcn.00538c73
int3