Function at 0x41fd00
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x37c
mov eax, dword [0x50b384]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x14]
push eax
mov dword [ebp - 0x2f4], eax
mov dword [ebp - 0x2dc], esi
mov dword [ebp - 0x2f0], ecx
call fcn.00491d23
push ebx
mov dword [edi + 0x28], eax
call fcn.00491d23
add esp, 8
mov ebx, eax
test esi, esi
je 0x41fd5f
push esi
call fcn.00491d23
add esp, 4
mov dword [ebp - 0x2d8], eax
jmp 0x41fd69
mov dword [ebp - 0x2d8], 0
mov eax, dword [0x50dd18]
test eax, eax
je 0x41fd7f
cmp byte [eax + 0x30], 0
mov byte [ebp - 0x2d1], 1
jne 0x41fd86
mov byte [ebp - 0x2d1], 0
movzx esi, byte [ebp - 0x2d1]
neg esi
sbb esi, esi
push 0x40
lea edx, [ebp - 0x334]
push 0
and esi, 0xff000000
push edx
add esi, 0x100040c
mov dword [ebp - 0x338], 0x44
call fcn.0048f0d0
add esp, 0xc
cmp dword [ebp - 0x2dc], 0
je 0x41fdcf
mov eax, dword [ebp - 0x2d8]
mov dword [ebp - 0x330], eax
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x40
lea ecx, [ebp - 0x378]
push 0
push ecx
mov dword [ebp - 0x37c], 0x44
call fcn.0048f0d0
add esp, 0xc
lea edx, [ebp - 0x37c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x350], 1
je 0x41fe1f
mov ax, word [ebp - 0x34c]
or dword [ebp - 0x30c], 1
mov word [ebp - 0x308], ax
xor ecx, ecx
cmp byte [0x50cd34], cl
je 0x41fe3a
mov eax, dword [0x50cd38]
test eax, eax
je 0x41fe3a
or esi, 0x400
mov ecx, eax
xor eax, eax
lea edx, [ebp - 0x2ec]
push edx
mov dword [ebp - 0x2e8], eax
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e0], eax
lea eax, [ebp - 0x338]
push eax
push 0
push ecx
mov ecx, dword [edi + 0xc]
push esi
mov esi, dword [ebp - 0x2f4]
push 0
push 0
push 0
push ebx
push esi
push ecx
mov dword [ebp - 0x2ec], 0
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x41fec0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edx, dword [ebp - 0x2d8]
push edx
call fcn.00490d9c
push ebx
call fcn.00490d9c
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x2dc]
push eax
push 1
push 0
push str.3222684
mov dword [ebp - 0x2dc], 0
call fcn.0041b490
add esp, 0x10
cmp word [ebp - 0x2dc], 0
movzx eax, ax
je 0x41ff0a
lea ecx, [ebp - 0x2dc]
push ecx
push 0
push 0
push str.3222684
call fcn.0041b490
add esp, 0x10
movzx eax, ax
test ax, ax
je 0x41ff1e
mov edx, dword [ebp - 0x2ec]
push edx
call fcn.0041fbe0
add esp, 4
cmp byte [ebp - 0x2d1], 0
jne 0x41ff70
mov eax, dword [ebp - 0x2ec]
mov ecx, dword [edi + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x41ff70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x2e8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov esi, eax
call edi
mov eax, dword [ebp - 0x2ec]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x2ec]
push ecx
call edi
jmp 0x41fe8e
mov eax, dword [edi + 0x10]
push eax
lea ecx, [ebp - 0x2e8]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x41ff3c
mov ecx, dword [ebp - 0x2e8]
lea eax, [ebp - 0x2d0]
push eax
push ecx
mov dword [ebp - 0x2d0], 0x1003f
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x41ffd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x2ec]
push edx
mov esi, eax
call fcn.0041f8e0
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x2d8]
push eax
jmp 0x41fe9d
mov ecx, dword [ebp - 0x2ec]
mov edx, dword [ebp - 0x2e8]
mov eax, dword [ebp - 0x2e4]
mov dword [edi], ecx
mov ecx, dword [ebp - 0x220]
push ecx
push esi
mov dword [edi + 4], edx
mov dword [edi + 8], eax
call fcn.0041f950
mov edx, dword [ebp - 0x2ec]
mov ecx, dword [ebp - 0x2e8]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x2f0]
mov dword [eax], edx
mov edx, dword [ebp - 0x2e4]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x2e0]
add esp, 8
mov dword [eax + 8], edx
push 0
mov dword [eax + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edx, dword [ebp - 0x2d8]
push edx
call fcn.00490d9c
push ebx
call fcn.00490d9c
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret 0x10