Function at 0x419d9a
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov byte [ebp - 1], bl
je 0x419dc5
cmp eax, 1
je 0x419dc5
jle 0x419dcd
cmp eax, 3
jle 0x419dc5
cmp eax, 4
jne 0x419dcd
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x419e0a
call fcn.00416031
mov dword [eax], ebx
call fcn.00416019
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.00417183
add esp, 0x14
or eax, 0xffffffff
jmp 0x419fac
inc eax
inc eax
cmp word [eax], bx
jne 0x419df4
lea ecx, [eax + 2]
cmp word [ecx], bx
je 0x419e0a
mov word [eax], 0x20
mov eax, ecx
cmp word [eax], bx
jne 0x419df4
push esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.0041ae20
mov dword [ebp - 0x68], esi
mov esi, dword [0x42d4e4]
add esp, 0xc
cmp esi, ebx
je 0x419e59
lea eax, [esi - 1]
mov edx, eax
and edx, 0x1f
imul edx, edx, 0x24
mov ecx, eax
sar ecx, 5
mov ecx, dword [ecx*4 + 0x42d500]
cmp byte [ecx + edx + 4], bl
jne 0x419e51
dec esi
dec eax
cmp esi, ebx
jne 0x419e31
cmp esi, ebx
jl 0x419f9d
cmp esi, 0x3332
jae 0x419f9d
mov eax, esi
imul eax, eax, 5
add eax, 4
mov word [ebp - 0x36], ax
movzx eax, ax
push 1
push eax
call fcn.00419183
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
je 0x419f9d
cmp esi, ebx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
lea ecx, [eax + 4]
lea edi, [eax + esi + 4]
mov dword [ebp - 8], ebx
jle 0x419ed5
mov eax, dword [ebp - 8]
mov edx, eax
and eax, 0x1f
imul eax, eax, 0x24
sar edx, 5
add eax, dword [edx*4 + 0x42d500]
mov dl, byte [eax + 4]
test dl, 0x10
jne 0x419ec1
mov byte [ecx], dl
mov eax, dword [eax]
mov dword [edi], eax
jmp 0x419ec6
mov byte [ecx], bl
or dword [edi], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edi, 4
cmp dword [ebp - 8], esi
jl 0x419e9c
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x419f04
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x419eec
mov edi, esi
jmp 0x419eef
push 3
pop edi
cmp edx, edi
jge 0x419eff
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x419ee3
push 8
pop esi
jmp 0x419f06
mov esi, ebx
call fcn.00416031
mov dword [eax], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
or esi, 0x400
push esi
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.0041440b
cmp esi, ebx
pop ecx
jne 0x419f50
push edi
call fcn.00416049
pop ecx
jmp 0x419fa8
cmp dword [ebp + 8], 2
jne 0x419f5c
push ebx
call fcn.00414a26
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x419f84
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
jmp 0x419f8a
cmp dword [ebp + 8], 4
jne 0x419f91
push dword [ebp - 0x24]
call esi
jmp 0x419f94
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
jmp 0x419fab
call fcn.00416019
mov dword [eax], 0xc
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret