Function at 0x412dc0
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 [0x52fe80]
xor eax, esp
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x40]
push esi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
call fcn.0041c790
mov dl, byte [edi + 8]
xor esi, esi
mov ecx, dword [edi + 4]
mov byte [esp + 0x13], dl
test ecx, ecx
je 0x412e1e
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
jne 0x412f4c
mov byte [esp + 0x13], 0
cmp byte [edi + 0x10], 0
mov eax, 0x50f8e0
mov dword [esp + 0x74], 1
cmove eax, dword [esp + 0x50]
xor ecx, ecx
cmp byte [edi + 1], cl
mov dword [esp + 0x50], eax
mov eax, 5
cmovne eax, ecx
mov word [esp + 0x78], ax
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x412e5b
cmp dword [edi + 0x1c], ecx
jne 0x412e5b
cmp dword [edi + 0x20], ecx
je 0x412e7e
mov dword [esp + 0x80], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x84], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x74], 0x101
mov dword [esp + 0x88], eax
cmp dword [edi + 0x14], ecx
je 0x412e89
or esi, 0x1000004
cmp byte [edi + 0x24], cl
je 0x412e94
or esi, 0x1000000
xor eax, eax
mov dword [esp + 0xa4], ecx
push 0xffffffffffffffff
push eax
push dword [esp + 0x1c]
xorps xmm0, xmm0
mov dword [esp + 0xb4], 7
lea ecx, [esp + 0xa0]
movdqa xmmword [esp + 0x3c], xmm0
mov word [esp + 0xa0], ax
call fcn.004072a0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x412fe3
push 0
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
or esi, 0x400
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x413020
cmp dword [esp + 0xa8], 8
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x4c]
push eax
movzx eax, byte [esp + 0x1b]
lea ecx, [esp + 0x9c]
cmovae ecx, dword [esp + 0x9c]
push 0
push dword [esp + 0x20]
push esi
push eax
push 0
push 0
push ecx
push 0
push dword [edi + 0xc]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test esi, esi
jmp 0x41301e
call fcn.004024f0
cmp eax, 3
jl 0x412fd2
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
cmp ecx, 0x3fffffff
ja 0x412fd2
push ecx
lea ecx, [esp + 0x4c]
call fcn.0041c860
test al, al
je 0x412fd2
mov eax, dword [edi + 4]
mov edx, dword [eax + 4]
sub edx, dword [eax]
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, esi
sar edx, 2
sar eax, 2
test eax, eax
je 0x4131c7
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x412fd9
push 0
push 0
lea eax, [edx*4]
push eax
push esi
push 0x20002
push 0
push ecx
call dword [0x55dc44]
test eax, eax
setne al
test al, al
je 0x412fd2
mov byte [esp + 0x13], 1
mov esi, 0x80000
jmp 0x412e1e
mov ecx, dword [esp + 0x8c]
mov byte [esp + 0x13], 0
jmp 0x413195
cmp dword [esp + 0xa8], 8
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x4c]
push eax
movzx eax, byte [esp + 0x1b]
lea ecx, [esp + 0x9c]
cmovae ecx, dword [esp + 0x9c]
push 0
push 0
push esi
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41302a
mov byte [esp + 0x13], 0
jmp 0x413155
lea eax, [esp + 0x30]
mov dword [esp + 0x18], 0
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
call fcn.0041c6d0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4130a4
push dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x41309a
mov esi, dword [esp + 0x18]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
test al, al
je 0x413090
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [esp + 0x13], 0
jmp 0x413121
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [edi], 0
je 0x4130b5
push 0xffffffffffffffff
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esp + 0x28]
test edi, edi
je 0x41311c
mov esi, dword [esp + 0x18]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
test esi, esi
je 0x4130f2
cmp esi, 0xffffffff
je 0x4130f2
call fcn.00414c50
push eax
mov eax, dword [ebp + 4]
push eax
lea eax, [esp + 0x20]
push eax
push esi
call fcn.00415c20
add esp, 0x10
cmp dword [edi], esi
je 0x41311c
mov ecx, edi
call fcn.0040b010
test esi, esi
je 0x41311c
cmp esi, 0xffffffff
je 0x41311c
mov dword [edi], esi
call fcn.00414c50
push eax
mov eax, dword [ebp + 4]
push eax
push edi
push esi
call fcn.00415b60
add esp, 0x10
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x18]
call fcn.0040b010
lea ecx, [esp + 0x1c]
call fcn.0040b010
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.0040b010
lea ecx, [esp + 0x18]
call fcn.0040b010
cmp dword [esp + 0xa8], 8
jb 0x41316e
push dword [esp + 0x94]
call fcn.0048185e
add esp, 4
mov ecx, dword [esp + 0x8c]
xor eax, eax
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], 0
mov word [esp + 0x94], ax
test ecx, ecx
je 0x4131af
push ecx
call dword [0x55dc4c]
push dword [esp + 0x8c]
call fcn.004bbca6
add esp, 4
mov ecx, dword [esp + 0xac]
mov al, byte [esp + 0x13]
pop edi
pop esi
xor ecx, esp
call fcn.004bc1bd
mov esp, ebp
pop ebp
ret
push str.invalid_vector_T__subscript
call fcn.004bafd8
int3