Function at 0x40b980
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4baa93
mov eax, dword fs:[0]
push eax
mov eax, 0x20f8
call fcn.004a2de0
mov eax, dword [0x4e27e0]
xor eax, esp
mov dword [esp + 0x20f0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e27e0]
xor eax, esp
push eax
lea eax, [esp + 0x210c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x211c]
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], ebx
cmp edi, ebx
je 0x40be49
mov eax, edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40b9e0
sub eax, edx
sar eax, 1
je 0x40be49
xor ecx, ecx
mov ebp, 7
push 0x26
mov eax, str.CSystemCommands::RunProgram___filename
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
call fcn.004033f0
mov dword [esp + 0x2114], 1
xor edx, edx
mov eax, edi
mov word [esp + 0x3c], dx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
lea edx, [eax + 2]
jmp 0x40ba40
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ba40
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [esp + 0x3c]
call fcn.004033f0
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov byte [esp + 0x2118], 2
call fcn.00402ec0
mov esi, 8
add esp, 4
cmp dword [esp + 0x50], esi
jb 0x40ba8a
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0047cc0e
add esp, 4
xor edx, edx
mov dword [esp + 0x2114], 0xffffffff
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], dx
cmp dword [esp + 0x30], esi
jb 0x40bab7
mov eax, dword [esp + 0x1c]
push eax
call fcn.0047cc0e
add esp, 4
mov ebp, dword [esp + 0x34]
cmp ebp, ebx
jne 0x40bac4
mov ebp, 0x4c7eec
xor ecx, ecx
push 0x28
mov eax, str.CSystemCommands::RunProgram___parameters
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
call fcn.004033f0
mov dword [esp + 0x2114], 3
xor edx, edx
mov eax, ebp
mov word [esp + 0x3c], dx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40bb10
sub eax, edx
sar eax, 1
push eax
mov eax, ebp
lea esi, [esp + 0x3c]
call fcn.004033f0
lea eax, [esp + 0x18]
push eax
mov ecx, esi
mov byte [esp + 0x2118], 4
call fcn.00402ec0
mov esi, 8
add esp, 4
cmp dword [esp + 0x50], esi
jb 0x40bb5a
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0047cc0e
add esp, 4
xor edx, edx
mov ebp, 7
mov dword [esp + 0x2114], 0xffffffff
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], dx
cmp dword [esp + 0x30], esi
jb 0x40bb8c
mov eax, dword [esp + 0x1c]
push eax
call fcn.0047cc0e
add esp, 4
xor eax, eax
push 0x44
lea ecx, [esp + 0x88]
push ebx
push ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
call fcn.004a2540
mov eax, dword [esp + 0x2130]
add esp, 0xc
mov dword [esp + 0x84], 0x44
mov dword [esp + 0xb0], 1
cmp eax, 0xffffffff
jne 0x40bbdf
xor edx, edx
mov word [esp + 0xb4], dx
jmp 0x40bbe7
mov word [esp + 0xb4], ax
xor eax, eax
mov word [esp + 0xec], ax
push 1
mov eax, 0x4c8678
lea esi, [esp + 0xec]
mov dword [esp + 0x104], ebp
mov dword [esp + 0x100], ebx
call fcn.004033f0
mov eax, edi
mov dword [esp + 0x2114], 5
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40bc22
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0xec]
call fcn.00402d20
push 1
mov eax, 0x4c8678
lea ecx, [esp + 0xec]
call fcn.00402d20
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0xd4], cx
push ebx
lea eax, [esp + 0xf0]
lea ecx, [esp + 0xd4]
mov dword [esp + 0xec], ebp
mov dword [esp + 0xe8], ebx
call fcn.004030c0
mov esi, dword [esp + 0x34]
mov byte [esp + 0x2114], 6
cmp esi, ebx
je 0x40bcce
push 1
mov eax, 0x4c868c
lea ecx, [esp + 0xd0]
call fcn.00402d20
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40bcb0
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea ecx, [esp + 0xd0]
call fcn.00402d20
mov ecx, dword [esp + 0xd0]
xor edx, edx
cmp dword [esp + 0xe4], 8
mov word [esp + 0x104], dx
jae 0x40bcf0
lea ecx, [esp + 0xd0]
lea edx, [esp + 0x104]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x40bcf7
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x88]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea edx, [esp + 0x124]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
xor eax, eax
mov word [esp + 0x1c], ax
push 0x36
mov eax, str.CSystemCommands::RunProgram___CreateProcess_last_error
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
call fcn.004033f0
mov ecx, edi
mov byte [esp + 0x2114], 7
call fcn.00402c10
mov edi, 8
mov byte [esp + 0x2114], 6
cmp dword [esp + 0x30], edi
jb 0x40bd8e
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0047cc0e
add esp, 4
cmp ebp, 1
sete al
cmp al, bl
je 0x40bdae
cmp byte [esp + 0x2120], bl
je 0x40bdf3
mov edx, dword [esp + 0x54]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esp + 0x2120], bl
je 0x40bdf3
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40bdf3
mov eax, str.CSystemCommands::RunProgram___exit_code
lea ecx, [esp + 0x68]
call fcn.004034a0
mov byte [esp + 0x2114], 8
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x68]
call fcn.00402c10
call fcn.004092a0
mov esi, dword [esp + 0x14]
cmp dword [esp + 0xe4], edi
jb 0x40be10
mov edx, dword [esp + 0xd0]
push edx
call fcn.0047cc0e
add esp, 4
xor eax, eax
mov dword [esp + 0xe4], 7
mov dword [esp + 0xe0], ebx
mov word [esp + 0xd0], ax
cmp dword [esp + 0x100], edi
jb 0x40be45
mov ecx, dword [esp + 0xec]
push ecx
call fcn.0047cc0e
add esp, 4
mov eax, esi
jmp 0x40be97
xor edx, edx
push 0x30
mov eax, str.CSystemCommands::RunProgram_szFileName_is_empty.
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], dx
call fcn.004033f0
mov eax, esi
push eax
mov dword [esp + 0x2118], ebx
call fcn.00403580
add esp, 4
cmp dword [esp + 0x30], 8
jb 0x40be92
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0047cc0e
add esp, 4
mov eax, 2
mov ecx, dword [esp + 0x210c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20f0]
xor ecx, esp
call fcn.0049bee5
add esp, 0x2104
ret