Function at 0x40a3c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x60]
push ebx
push ebp
xor ebx, ebx
push esi
cmp eax, 4
push edi
mov byte [esp + 0x13], bl
ja case.default.0x40a3da
jmp dword [eax*4 + 0x40a634]
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov cl, byte [eax]
test cl, cl
je 0x40a40d
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40a3f4
mov cl, byte [eax + 1]
test cl, cl
je 0x40a407
mov byte [eax], 0x20
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x40a3f4
mov esi, dword [0x411ba0]
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
test esi, esi
mov dword [esp + 0x28], 0x44
je 0x40a450
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
and eax, 0x1f
mov edx, dword [edx*4 + 0x411aa0]
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], 0
jne 0x40a450
mov esi, ecx
test esi, esi
jne 0x40a42c
lea eax, [esi + esi*4 + 4]
push 1
mov word [esp + 0x5e], ax
mov ecx, dword [esp + 0x5e]
and ecx, 0xffff
push ecx
call fcn.00406f50
mov dword [esp + 0x64], eax
mov dword [eax], esi
mov edx, dword [esp + 0x64]
add esp, 8
xor ecx, ecx
test esi, esi
lea edi, [edx + 4]
lea ebp, [esi + edx + 4]
jle 0x40a4c4
mov edx, ecx
mov eax, ecx
sar edx, 5
and eax, 0x1f
mov edx, dword [edx*4 + 0x411aa0]
lea eax, [eax + eax*8]
lea eax, [edx + eax*4]
mov dl, byte [eax + 4]
test dl, 0x10
jne 0x40a4ad
mov byte [edi], dl
mov eax, dword [eax]
mov dword [ebp], eax
jmp 0x40a4b7
mov byte [edi], 0
mov dword [ebp], 0xffffffff
inc ecx
inc edi
add ebp, 4
cmp ecx, esi
jl 0x40a485
mov edx, dword [esp + 0x5c]
mov al, byte [esp + 0x13]
test al, al
je 0x40a4fa
xor edi, edi
lea eax, [edx + 4]
lea ecx, [esi + edx + 4]
cmp esi, 3
mov edx, esi
jl 0x40a4e1
mov edx, 3
cmp edi, edx
jge 0x40a4f5
mov byte [eax], 0
inc edi
mov dword [ecx], 0xffffffff
inc eax
add ecx, 4
jmp 0x40a4d5
mov ebx, 8
call fcn.00404510
mov dword [eax], 0
call fcn.00404520
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
mov dword [eax], 0
mov eax, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x7c]
push 0
push eax
push ebx
push 1
push 0
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esp + 0x5c]
push eax
call fcn.00402830
add esp, 4
test esi, esi
jne 0x40a567
push edi
call fcn.00404490
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov eax, dword [esp + 0x70]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 2
jne 0x40a593
push 0
call fcn.00402060
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
call esi
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
test eax, eax
jne 0x40a5ce
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x78]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x18]
push ecx
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call esi
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp eax, 4
jne 0x40a5f5
mov edx, dword [esp + 0x18]
push edx
call esi
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x78], 0
push ecx
call esi
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0x7c], eax
call esi
mov eax, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
call fcn.00404510
mov dword [eax], 0x16
call fcn.00404520
pop edi
pop esi
mov dword [eax], 0
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x5c
ret