Function at 0x41f650
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, 0x78
push esi
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0xc], 0
call fcn.004296f0
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dl, byte [edi + 8]
mov ecx, dword [edi + 4]
mov byte [esp + 0xb], dl
test ecx, ecx
je 0x41f724
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
jne 0x41f691
xor dl, dl
jmp 0x41f720
call fcn.00421c30
cmp eax, 3
jl 0x41f82e
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
sar ecx, 2
cmp ecx, 0x3fffffff
ja 0x41f82e
push ecx
lea ecx, [esp + 0x3c]
call fcn.004297c0
test al, al
je 0x41f82e
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 0x41f90e
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x41f832
push 0
push 0
lea eax, [edx*4]
push eax
push esi
push 0x20002
push 0
push ecx
call dword [0x483844]
test eax, eax
setne al
test al, al
je 0x41f82e
mov dl, 1
mov esi, 0x80000
mov byte [esp + 0xb], dl
cmp byte [edi + 0x10], 0
mov eax, 0x40dd58
mov dword [esp + 0x64], 1
cmove eax, dword [esp + 0x40]
xor ecx, ecx
cmp byte [edi + 1], cl
mov dword [esp + 0x40], eax
mov eax, 5
cmovne eax, ecx
mov word [esp + 0x68], ax
mov eax, dword [edi + 0x18]
test eax, eax
jne 0x41f761
cmp dword [edi + 0x1c], ecx
jne 0x41f761
cmp dword [edi + 0x20], ecx
je 0x41f77b
mov dword [esp + 0x70], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x74], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x64], 0x101
mov dword [esp + 0x78], eax
cmp dword [edi + 0x14], ecx
je 0x41f786
or esi, 0x1000004
cmp byte [edi + 0x24], cl
je 0x41f791
or esi, 0x1000000
mov eax, dword [edi + 0xc]
xorps xmm0, xmm0
movdqa xmmword [esp + 0x20], xmm0
test eax, eax
je 0x41f7ff
push 0
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
or esi, 0x400
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x41f82e
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x41f7c8
mov ecx, dword [ecx]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
movzx eax, byte [esp + 0x13]
push 0
push dword [esp + 0x18]
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 + 0xc]
mov esi, eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test esi, esi
jmp 0x41f82c
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
jb 0x41f80a
mov ecx, dword [ecx]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push esi
movzx eax, dl
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41f83c
mov ecx, dword [esp + 0x7c]
mov byte [esp + 0xb], 0
jmp 0x41f8ed
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 0
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00429630
mov eax, dword [edi + 0x14]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x41f8b0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x41f8a6
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne al
test al, al
je 0x41f89f
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [esp + 0xb], 0
jmp 0x41f8e0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [edi], 0
je 0x41f8be
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41f8db
push esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
call fcn.0041e920
mov byte [esp + 0xb], 1
lea ecx, [esp + 0x10]
call fcn.00429550
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x41f904
push ecx
call dword [0x48384c]
push dword [esp + 0x7c]
call fcn.0045bef0
add esp, 4
mov al, byte [esp + 0xb]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x40dd68
call fcn.00477d9d
int3