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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x37c
mov eax, dword [0x509354]
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 - 0x2f0], esi
mov dword [ebp - 0x2ec], ecx
call fcn.004913b3
push ebx
mov dword [edi + 0x28], eax
call fcn.004913b3
add esp, 8
mov ebx, eax
test esi, esi
je 0x41f82f
push esi
call fcn.004913b3
add esp, 4
mov dword [ebp - 0x2d8], eax
jmp 0x41f839
mov dword [ebp - 0x2d8], 0
mov eax, dword [0x50bcf8]
test eax, eax
je 0x41f84f
cmp byte [eax + 0x30], 0
mov byte [ebp - 0x2d1], 1
jne 0x41f856
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.0048e760
add esp, 0xc
cmp dword [ebp - 0x2f0], 0
je 0x41f89f
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.0048e760
add esp, 0xc
lea edx, [ebp - 0x37c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x350], 1
je 0x41f8ef
mov ax, word [ebp - 0x34c]
or dword [ebp - 0x30c], 1
mov word [ebp - 0x308], ax
xor ecx, ecx
cmp byte [0x50ad14], cl
je 0x41f90a
mov eax, dword [0x50ad18]
test eax, eax
je 0x41f90a
or esi, 0x400
mov ecx, eax
xor eax, eax
lea edx, [ebp - 0x2e8]
push edx
mov dword [ebp - 0x2e4], eax
mov dword [ebp - 0x2e0], eax
mov dword [ebp - 0x2dc], 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 - 0x2e8], 0
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x41f990
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.0049042c
push ebx
call fcn.0049042c
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048e25d
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp - 0x2d1], 0
jne 0x41f9e2
mov eax, dword [ebp - 0x2e8]
mov ecx, dword [edi + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x41f9e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x2e4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov esi, eax
call edi
mov eax, dword [ebp - 0x2e8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x2e8]
push ecx
call edi
jmp 0x41f95e
mov eax, dword [edi + 0x10]
push eax
lea ecx, [ebp - 0x2e4]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x41f9ae
mov ecx, dword [ebp - 0x2e4]
lea eax, [ebp - 0x2d0]
push eax
push ecx
mov dword [ebp - 0x2d0], 0x1003f
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x41fa44
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x2e8]
push edx
mov esi, eax
call fcn.0041f450
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov eax, dword [ebp - 0x2d8]
push eax
jmp 0x41f96d
mov ecx, dword [ebp - 0x2e8]
mov edx, dword [ebp - 0x2e4]
mov eax, dword [ebp - 0x2e0]
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.0041f4c0
mov edx, dword [ebp - 0x2e8]
mov ecx, dword [ebp - 0x2e4]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x2ec]
mov dword [eax], edx
mov edx, dword [ebp - 0x2e0]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x2dc]
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.0049042c
push ebx
call fcn.0049042c
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0048e25d
mov esp, ebp
pop ebp
ret 0x10