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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
mov eax, dword [0x7aca10]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x40]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], 0
call fcn.00419290
mov al, byte [esi + 8]
xor ecx, ecx
mov edx, dword [esi + 4]
mov byte [esp + 0xb], al
test edx, edx
je 0x410b58
mov eax, dword [edx]
cmp eax, dword [edx + 4]
jne 0x410aa2
mov byte [esp + 0xb], cl
jmp 0x410b58
call fcn.00419240
cmp eax, 3
jge 0x410aba
push 0
mov ecx, edi
call fcn.004107c0
jmp 0x410edc
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
cmp ecx, 0x3fffffff
jbe 0x410adb
push 0
mov ecx, edi
call fcn.004107c0
jmp 0x410edc
push ecx
lea ecx, [esp + 0x4c]
call fcn.00419360
test al, al
jne 0x410af7
push 0
mov ecx, edi
call fcn.004107c0
jmp 0x410edc
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
sar ecx, 2
sar eax, 2
mov dword [esp + 0x10], edx
test eax, eax
je 0x410f13
mov edx, dword [esp + 0x8c]
test edx, edx
je 0x410aac
push 0
push 0
lea eax, [ecx*4]
push eax
push dword [esp + 0x1c]
push 0x20002
push 0
push edx
call dword [0x7c4024]
test eax, eax
setne al
test al, al
je 0x410aac
mov byte [esp + 0xb], 1
mov ecx, 0x80000
cmp byte [esi + 0x10], 0
mov eax, 0x4fc378
mov dword [esp + 0x74], 1
cmove eax, dword [esp + 0x50]
xor edx, edx
cmp byte [esi + 1], dl
mov dword [esp + 0x50], eax
mov eax, 5
cmovne eax, edx
mov word [esp + 0x78], ax
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x410b95
cmp dword [esi + 0x1c], edx
jne 0x410b95
cmp dword [esi + 0x20], edx
je 0x410bb8
mov dword [esp + 0x80], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x84], eax
mov eax, dword [esi + 0x20]
mov dword [esp + 0x74], 0x101
mov dword [esp + 0x88], eax
cmp dword [esi + 0x14], edx
je 0x410c14
or ecx, 4
mov dword [esp + 0xc], ecx
cmp dword [0x7c4380], edx
jne 0x410c04
push 0x4c
call fcn.004a7835
add esp, 4
mov ecx, eax
call fcn.00418f90
mov edx, eax
mov esi, 0x7c4380
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
mov esi, dword [esp + 0x2c]
test eax, eax
je 0x410c00
test edx, edx
je 0x410c00
push ecx
mov ecx, edx
call fcn.00418f40
mov ecx, dword [esp + 0xc]
mov eax, dword [0x7c4380]
cmp dword [eax], 5
jge 0x410c14
or ecx, 0x1000000
mov eax, ecx
mov dword [esp + 0xa8], 7
or eax, 0x1000000
mov dword [esp + 0xa4], 0
cmp byte [esi + 0x24], 0
xorps xmm0, xmm0
push 0xffffffffffffffff
cmove eax, ecx
movaps xmmword [esp + 0x34], xmm0
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x98]
xor eax, eax
push eax
push dword [esp + 0x2c]
mov word [esp + 0xa0], ax
call fcn.00405600
mov eax, dword [esi + 0xc]
test eax, eax
je 0x410d05
or dword [esp + 0xc], 0x400
push 0
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x410c9b
push eax
mov ecx, edi
call fcn.004107c0
jmp 0x410e9f
cmp dword [esp + 0xa8], 8
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x4c]
push eax
movzx eax, byte [esp + 0x13]
lea ecx, [esp + 0x9c]
cmovae ecx, dword [esp + 0x9c]
push 0
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push eax
push 0
push 0
push ecx
push 0
push dword [esi + 0xc]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [esp + 0x10]
mov esi, eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test esi, esi
jne 0x410d52
push esi
mov ecx, edi
call fcn.004107c0
lea ecx, [esp + 0x94]
call fcn.00403c60
jmp 0x410edc
cmp dword [esp + 0xa8], 8
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x4c]
push eax
movzx eax, byte [esp + 0x13]
lea ecx, [esp + 0x9c]
cmovae ecx, dword [esp + 0x9c]
push 0
push 0
push dword [esp + 0x1c]
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x410d56
push eax
mov ecx, edi
call fcn.004107c0
jmp 0x410e9f
mov esi, dword [esp + 0x2c]
push dword [esp + 0x30]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.0040e630
push dword [esp + 0x34]
lea ecx, [esp + 0x1c]
call fcn.0040e630
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x410e49
push dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x410e3f
lea ecx, [esp + 0x14]
call fcn.00419420
push eax
lea ecx, [esp + 0x28]
call fcn.004107c0
cmp byte [esp + 0x24], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
je 0x410de2
call esi
jmp 0x410de6
mov eax, dword [esp + 0x28]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
test al, al
je 0x410e13
cmp byte [esp + 0x24], 0
je 0x410e03
call esi
jmp 0x410e07
mov eax, dword [esp + 0x28]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
mov ecx, edi
call fcn.004107c0
lea ecx, [esp + 0x28]
call fcn.0040e5c0
lea ecx, [esp + 0x14]
call fcn.004193e0
lea ecx, [esp + 0x94]
call fcn.00403c60
jmp 0x410edc
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [esi], 0
je 0x410e5a
push 0xffffffffffffffff
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x14]
call fcn.00419420
push eax
mov ecx, edi
call fcn.004107c0
lea ecx, [esp + 0x14]
call fcn.0040e5c0
lea ecx, [esp + 0x18]
call fcn.0040e5c0
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.0040e5c0
lea ecx, [esp + 0x14]
call fcn.0040e5c0
mov eax, dword [esp + 0xa8]
cmp eax, 8
jb 0x410ec0
inc eax
lea ecx, [esp + 0x94]
push eax
push dword [esp + 0x98]
call fcn.00406d90
xor eax, eax
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], eax
mov word [esp + 0x94], ax
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x410efd
push eax
call dword [0x7c402c]
push dword [esp + 0x8c]
call fcn.004a7ad0
add esp, 4
mov ecx, dword [esp + 0xac]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004a7ad5
mov esp, ebp
pop ebp
ret
push str.invalid_vector_T__subscript
call fcn.004a4eb0
int3