Function at 0x405e10
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 0x405edc
lea ebx, [esi + 2]
push 0x22
push ebx
call fcn.0040ffaa
xor ecx, ecx
add esp, 8
cmp eax, ecx
je 0x405eba
cmp word [eax + 2], 0x20
jne 0x405e86
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.00403fc0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x405f4d
lea edx, [ebp - 0x24]
cmp eax, edx
jmp 0x405f42
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.00403fc0
mov eax, dword [ebp - 0x30]
test eax, eax
jmp 0x405f3b
lea edx, [esi + 2]
push 0x20
push edx
call fcn.0040ffaa
add esp, 8
cmp eax, ebx
je 0x405f1c
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.00403fc0
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x405f4d
lea edx, [ebp - 0x24]
cmp eax, edx
jmp 0x405f42
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.00403fc0
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x405f4d
lea ecx, [ebp - 0x24]
cmp eax, ecx
je 0x405f4d
push eax
call fcn.0041021f
add esp, 4
push 0x38
lea edx, [ebp - 0xa0]
push 0
push edx
mov dword [ebp - 0xa4], 0x3c
call fcn.004104c0
mov eax, dword [ebp - 0x5c]
add esp, 0xc
mov dword [ebp - 0xa0], 0x40
mov dword [ebp - 0x94], eax
test eax, eax
jne 0x405f8b
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 0x405fe0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x405fd0
jle 0x405fd5
and eax, 0xffff
or eax, 0x80070000
jmp 0x405fd5
mov eax, 0x8007054f
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x405ff9
mov dword [ecx], eax
jmp 0x405ff9
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x405fea
or eax, 0xffffffff
mov dword [edi], eax
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x405ff9
mov dword [eax], 0
mov eax, dword [ebp - 0x5c]
pop edi
pop esi
pop ebx
test eax, eax
je 0x406013
lea ecx, [ebp - 0x50]
cmp eax, ecx
je 0x406013
push eax
call fcn.0041021f
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004104b1
mov esp, ebp
pop ebp
ret 0x10