Function at 0x40b800
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x476a71
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x491300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x270], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
cmp edx, 0x10
jb 0x40b843
mov esi, dword [ecx]
jmp 0x40b845
mov esi, ecx
mov eax, dword [ecx + 0x10]
add eax, esi
cmp edx, 0x10
jb 0x40b851
mov ecx, dword [ecx]
xor edx, edx
mov word [ebp - 0x26c], dx
mov edx, dword [ebp - 0x270]
push edx
push eax
push ecx
mov edi, 7
xor ebx, ebx
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x25c], ebx
call fcn.0040b720
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 4], ebx
cmp edx, 0x10
jb 0x40b893
mov esi, dword [ecx]
jmp 0x40b895
mov esi, ecx
mov eax, dword [ecx + 0x10]
add eax, esi
cmp edx, 0x10
jb 0x40b8a1
mov ecx, dword [ecx]
xor edx, edx
mov word [ebp - 0x250], dx
mov edx, dword [ebp - 0x270]
push edx
push eax
push ecx
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], ebx
call fcn.0040b720
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x14]
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40b8dd
mov esi, dword [eax]
jmp 0x40b8df
mov esi, eax
mov edx, dword [eax + 0x10]
add edx, esi
cmp ecx, 0x10
jb 0x40b8eb
mov eax, dword [eax]
xor ecx, ecx
mov word [ebp - 0x234], cx
mov ecx, dword [ebp - 0x270]
push ecx
push edx
push eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x224], ebx
call fcn.0040b720
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push ebx
push eax
mov byte [ebp - 4], 2
mov word [ebp - 0x218], dx
call fcn.0045ef40
mov ecx, dword [ebp - 0x250]
mov edi, 8
add esp, 0xc
cmp dword [ebp - 0x23c], edi
jae 0x40b94f
lea ecx, [ebp - 0x250]
mov eax, dword [ebp - 0x26c]
cmp dword [ebp - 0x258], edi
jae 0x40b963
lea eax, [ebp - 0x26c]
push ecx
push eax
lea ecx, [ebp - 0x218]
push str._s__s
push ecx
mov edx, 0x104
call fcn.0040b660
add esp, 0x10
cmp dword [ebp - 0x224], ebx
jne 0x40b98a
xor esi, esi
jmp 0x40b99e
mov esi, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x40b99e
lea esi, [ebp - 0x234]
push 0x40
lea edx, [ebp - 0x2b4]
push ebx
push edx
call fcn.0045ef40
mov eax, dword [ebp - 0x270]
add esp, 0xc
push eax
lea ecx, [ebp - 0x2b8]
push ecx
push esi
push ebx
push 0x8000020
push ebx
push ebx
push ebx
lea edx, [ebp - 0x218]
push edx
push ebx
mov dword [ebp - 0x2b8], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, 1
jne 0x40ba60
cmp dword [ebp - 0x220], edi
jb 0x40b9fc
mov eax, dword [ebp - 0x234]
push eax
call fcn.0045e38a
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
cmp dword [ebp - 0x23c], edi
jb 0x40ba2d
mov edx, dword [ebp - 0x250]
push edx
call fcn.0045e38a
add esp, 4
xor eax, eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], ax
cmp dword [ebp - 0x258], edi
jb 0x40ba59
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.0045e38a
add esp, 4
mov al, 1
jmp 0x40bb26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
lea edx, [ebp - 0x274]
push edx
push 0x400
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [ebp - 0x274]
push eax
lea ecx, [ebp - 0x218]
push ecx
push str.Failed_to_CreateProcess___nCommand_s_nMessage_s
push ebx
call fcn.00406c80
push eax
call fcn.0040aad0
mov edx, dword [ebp - 0x274]
add esp, 0x14
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x220], edi
jb 0x40bac7
mov eax, dword [ebp - 0x234]
push eax
call fcn.0045e38a
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
cmp dword [ebp - 0x23c], edi
jb 0x40baf8
mov edx, dword [ebp - 0x250]
push edx
call fcn.0045e38a
add esp, 4
xor eax, eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], ax
cmp dword [ebp - 0x258], edi
jb 0x40bb24
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.0045e38a
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045ea71
mov esp, ebp
pop ebp
ret 0xc