Function at 0x40b1bc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe90
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
movsx eax, byte [ebx]
cmp eax, 0x61
jb 0x40b1d6
sub eax, 0x20
cmp eax, 0x41
jb 0x40b1e6
cmp eax, 0x5a
ja 0x40b1e6
cmp byte [ebx + 1], 0x3a
je 0x40b204
push 0x2f
push ebx
call fcn.004096d8
add esp, 8
test eax, eax
jne 0x40b204
push 0x5c
push ebx
call fcn.004096d8
add esp, 8
test eax, eax
je 0x40b209
xor edx, edx
mov dword [ebp + 0x18], edx
xor esi, esi
push 0x2e
push ebx
call fcn.004098d4
add esp, 8
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40b271
mov edx, dword [ebp + 0x18]
lea ecx, [ebp - 0x110]
push edx
push 0x40e68d
push ecx
push ebx
call fcn.0040afb4
add esp, 0x10
mov edi, eax
test eax, eax
je 0x40b2ce
push 0x40e68e
mov edx, dword [ebp - 0xc]
push edx
call fcn.00409780
add esp, 8
test eax, eax
je 0x40b26a
push 0x40e693
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00409780
add esp, 8
test eax, eax
jne 0x40b2ce
mov esi, 1
jmp 0x40b2ce
mov eax, dword [ebp + 0x18]
lea edx, [ebp - 0x110]
push eax
push str..EXE
push edx
push ebx
call fcn.0040afb4
add esp, 0x10
mov edi, eax
test eax, eax
jne 0x40b2ce
mov edx, dword [ebp + 0x18]
lea ecx, [ebp - 0x110]
push edx
push str..BAT
push ecx
push ebx
call fcn.0040afb4
add esp, 0x10
mov edi, eax
mov esi, eax
test eax, eax
jne 0x40b2ce
mov edx, dword [ebp + 0x18]
lea ecx, [ebp - 0x110]
push edx
push str..CMD
push ecx
push ebx
call fcn.0040afb4
add esp, 0x10
mov edi, eax
mov esi, eax
test edi, edi
je 0x40b2e8
test esi, esi
je 0x40b2fa
push 0x40e6a7
call fcn.0040aae0
pop ecx
mov dword [ebp - 8], eax
test eax, eax
jne 0x40b2fa
mov dword [0x40e558], 2
or eax, 0xffffffff
jmp 0x40b527
test esi, esi
je 0x40b317
mov edx, dword [ebp + 0x10]
push edx
push 0x40e6af
mov ecx, dword [ebp - 8]
push ecx
call fcn.0040b06c
add esp, 0xc
mov ebx, eax
jmp 0x40b330
mov eax, dword [ebp + 0x10]
add eax, 4
push eax
push 0
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
push ecx
call fcn.0040b06c
add esp, 0xc
mov ebx, eax
test ebx, ebx
jne 0x40b346
mov dword [0x40e558], 8
or eax, 0xffffffff
jmp 0x40b527
cmp dword [ebp + 0x14], 0
jne 0x40b350
xor edi, edi
jmp 0x40b379
mov eax, dword [ebp + 0x14]
push eax
call fcn.0040b158
pop ecx
mov edi, eax
test eax, eax
jne 0x40b379
mov dword [0x40e558], 8
push ebx
call fcn.00409f80
pop ecx
or eax, 0xffffffff
jmp 0x40b527
call dword [0x40e5d8]
push 0x44
push 0
lea edx, [ebp - 0x160]
push edx
call fcn.0040173c
add esp, 0xc
mov dword [ebp - 0x160], 0x44
mov word [ebp - 0x130], 0xa
cmp dword [0x40d200], 0
je 0x40b3e4
push 0
call dword [0x40dc88]
pop ecx
mov word [ebp - 0x12e], ax
movzx ecx, word [ebp - 0x12e]
push ecx
call fcn.0040a088
pop ecx
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x40b360
mov edx, dword [ebp - 0x12c]
push edx
call dword [0x40dc88]
pop ecx
mov dword [ebp - 0x11c], 0xc
xor ecx, ecx
lea eax, [ebp - 0x170]
mov dword [ebp - 0x118], ecx
lea edx, [ebp - 0x160]
mov dword [ebp - 0x114], 1
push eax
push edx
push 0
push edi
cmp dword [ebp + 8], 4
mov ecx, 8
je 0x40b41f
add ecx, 0xfffffff8
push ecx
push 1
lea eax, [ebp - 0x11c]
push eax
lea edx, [ebp - 0x11c]
push edx
push ebx
test esi, esi
je 0x40b43a
mov ecx, dword [ebp - 8]
jmp 0x40b440
lea ecx, [ebp - 0x110]
push ecx
call sub.KERNEL32.dll_CreateProcessA
dec eax
je 0x40b487
call sub.KERNEL32.dll_GetLastError
and eax, 0xffff
dec eax
je 0x40b467
sub eax, 7
je 0x40b46e
sub eax, 0x51
jne 0x40b475
mov eax, 0x2a
jmp 0x40b47a
mov eax, 0x13
jmp 0x40b47a
mov eax, 8
jmp 0x40b47a
mov eax, 0x15
mov dword [0x40e558], eax
or esi, 0xffffffff
jmp 0x40b517
mov eax, dword [ebp + 8]
sub eax, 1
jb 0x40b49c
je 0x40b4d7
dec eax
je 0x40b4f2
dec eax
sub eax, 2
jb 0x40b4cb
jmp 0x40b508
push 0xffffffffffffffff
mov edx, dword [ebp - 0x170]
push edx
call sub.KERNEL32.dll_WaitForSingleObject
lea ecx, [ebp - 4]
push ecx
mov eax, dword [ebp - 0x170]
push eax
call sub.KERNEL32.dll_GetExitCodeProcess
mov edx, dword [ebp - 0x170]
push edx
call sub.KERNEL32.dll_CloseHandle
mov esi, dword [ebp - 4]
jmp 0x40b50b
mov eax, dword [ebp - 0x170]
push eax
call sub.KERNEL32.dll_CloseHandle
mov edx, dword [ebp - 0x170]
push edx
mov ecx, dword [ebp - 0x168]
push ecx
call dword [0x40e684]
add esp, 8
mov esi, eax
jmp 0x40b50b
push edi
call fcn.00409f80
pop ecx
push ebx
call fcn.00409f80
pop ecx
push 0
call fcn.0040aa90
pop ecx
or esi, 0xffffffff
mov eax, dword [ebp - 0x16c]
push eax
call sub.KERNEL32.dll_CloseHandle
push edi
call fcn.00409f80
pop ecx
push ebx
call fcn.00409f80
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret