Function at 0x405d80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x424308]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
xor ebx, ebx
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
cmp word [esi], 0x22
lea edx, [ebp - 0x50]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], 1
mov word [ebp - 0x50], ax
jne 0x405e4c
lea ebx, [esi + 2]
push 0x22
push ebx
call fcn.0040ff4a
xor ecx, ecx
add esp, 8
cmp eax, ecx
je 0x405e2a
cmp word [eax + 2], 0x20
jne 0x405df6
lea ecx, [eax + 4]
sub eax, esi
sar eax, 1
dec eax
push eax
mov dword [ebp - 0x60], ecx
push ebx
lea ecx, [ebp - 0x30]
call fcn.00401300
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403f30
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x405ebd
lea edx, [ebp - 0x24]
cmp eax, edx
jmp 0x405eb2
push 0xffffffffffffffff
mov dword [ebp - 0x60], ecx
push ebx
lea ecx, [ebp - 0x30]
call fcn.00401300
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403f30
mov eax, dword [ebp - 0x30]
test eax, eax
jmp 0x405eab
lea edx, [esi + 2]
push 0x20
push edx
call fcn.0040ff4a
add esp, 8
cmp eax, ebx
je 0x405e8c
lea ecx, [eax + 2]
sub eax, esi
sar eax, 1
push eax
mov dword [ebp - 0x60], ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.00401300
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403f30
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x405ebd
lea edx, [ebp - 0x24]
cmp eax, edx
jmp 0x405eb2
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x60], ebx
call fcn.00401300
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x5c]
call fcn.00403f30
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x405ebd
lea ecx, [ebp - 0x24]
cmp eax, ecx
je 0x405ebd
push eax
call fcn.004101bf
add esp, 4
push 0x38
lea edx, [ebp - 0xa0]
push 0
push edx
mov dword [ebp - 0xa4], 0x3c
call fcn.00410460
mov eax, dword [ebp - 0x5c]
add esp, 0xc
mov dword [ebp - 0xa0], 0x40
mov dword [ebp - 0x94], eax
test eax, eax
jne 0x405efb
mov dword [ebp - 0x94], 0x421594
mov eax, dword [ebp - 0x60]
movzx edx, word [ebp + 0xc]
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x88], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x405f50
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405f40
jle 0x405f45
and eax, 0xffff
or eax, 0x80070000
jmp 0x405f45
mov eax, 0x8007054f
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x405f69
mov dword [ecx], eax
jmp 0x405f69
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x405f5a
or eax, 0xffffffff
mov dword [edi], eax
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x405f69
mov dword [eax], 0
mov eax, dword [ebp - 0x5c]
pop edi
pop esi
pop ebx
test eax, eax
je 0x405f83
lea ecx, [ebp - 0x50]
cmp eax, ecx
je 0x405f83
push eax
call fcn.004101bf
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410451
mov esp, ebp
pop ebp
ret 0x10