Function at 0x46111d
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov dword [ebp - 0x24], 0
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov byte [ebp - 9], al
mov cl, byte [ebp - 9]
mov byte [ebp - 0x19], cl
mov edx, dword [ebp + 8]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 4
ja case.default.0x4610ff
mov eax, dword [ebp - 0x38]
jmp dword [eax*4 + 0x461498]
mov byte [ebp - 0x19], 1
jmp 0x4611a8
jmp 0x4611a8
mov byte [ebp - 9], 1
jmp 0x4611a8
mov byte [ebp - 1], 1
jmp 0x4611a8
call fcn.004240c0
mov dword [eax], 0
xor ecx, ecx
je 0x46113e
mov dword [ebp - 0x34], 1
jmp 0x461145
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0
jne 0x461174
push str.__invalid_mode___0_
push 0x4980e8
push 0
push 0x56
push 0x4a9098
push 2
call fcn.00422f40
add esp, 0x18
cmp eax, 1
jne 0x461174
int3
cmp dword [ebp - 0x30], 0
jne 0x4611a8
call fcn.00424120
mov dword [eax], 0x16
push 0
push 0x56
push 0x4a9098
push str._dospawn
push str.__invalid_mode___0_
call fcn.00421020
add esp, 0x14
or eax, 0xffffffff
jmp 0x461494
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp + 0x10]
movsx eax, byte [edx]
test eax, eax
je 0x4611f1
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx]
test edx, edx
je 0x4611cd
mov eax, dword [ebp + 0x10]
add eax, 1
mov dword [ebp + 0x10], eax
jmp 0x4611b8
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 0x10]
movsx eax, byte [edx + ecx]
test eax, eax
je 0x4611ef
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 0x20
mov edx, dword [ebp + 0x10]
add edx, 1
mov dword [ebp + 0x10], edx
jmp 0x4611ae
push 0x44
push 0
lea eax, [ebp - 0x9c]
push eax
call fcn.0041c510
add esp, 0xc
mov dword [ebp - 0x9c], 0x44
mov ecx, dword [0x4c6860]
mov dword [ebp - 8], ecx
jmp 0x461222
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x46124f
mov eax, dword [ebp - 8]
sub eax, 1
sar eax, 5
mov ecx, dword [ebp - 8]
sub ecx, 1
and ecx, 0x1f
shl ecx, 6
mov edx, dword [eax*4 + 0x4bdce8]
movsx eax, byte [edx + ecx + 4]
test eax, eax
jne 0x46124f
jmp 0x461219
cmp dword [ebp - 8], 0
jl 0x46125e
cmp dword [ebp - 8], 0x3332
jb 0x461271
call fcn.00424120
mov dword [eax], 0xc
or eax, 0xffffffff
jmp 0x461494
mov ecx, dword [ebp - 8]
imul ecx, ecx, 5
add ecx, 4
mov word [ebp - 0x6a], cx
push 0x7d
push str.f:dd_vctoolscrt_bld_self_x86crt_srcdospawn.c
push 2
push 1
movzx edx, word [ebp - 0x6a]
push edx
call fcn.0042d3b0
add esp, 0x14
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jne 0x4612b2
call fcn.00424120
mov dword [eax], 0xc
or eax, 0xffffffff
jmp 0x461494
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [ebp - 0x68]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x68]
lea edx, [ecx + eax + 4]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], 0
jmp 0x4612f4
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
jge 0x461349
mov ecx, dword [ebp - 0x10]
sar ecx, 5
mov edx, dword [ebp - 0x10]
and edx, 0x1f
shl edx, 6
add edx, dword [ecx*4 + 0x4bdce8]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
movsx ecx, byte [eax + 4]
and ecx, 0x10
jne 0x461338
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov cl, byte [eax + 4]
mov byte [edx], cl
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov dword [edx], ecx
jmp 0x461347
mov edx, dword [ebp - 0x14]
mov byte [edx], 0
mov eax, dword [ebp - 0x18]
mov dword [eax], 0xffffffff
jmp 0x4612d9
movsx ecx, byte [ebp - 1]
test ecx, ecx
je 0x4613c2
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x68]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x68]
lea edx, [ecx + eax + 4]
mov dword [ebp - 0x18], edx
jmp 0x46138b
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
cmp dword [ebp - 8], 3
jge 0x461399
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
jmp 0x4613a0
mov dword [ebp - 0x2c], 3
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x2c]
jge 0x4613b9
mov edx, dword [ebp - 0x14]
mov byte [edx], 0
mov eax, dword [ebp - 0x18]
mov dword [eax], 0xffffffff
jmp 0x461370
mov ecx, dword [ebp - 0x24]
or ecx, 8
mov dword [ebp - 0x24], ecx
call fcn.004240c0
mov dword [eax], 0
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x9c]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 1
push 0
push 0
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x3c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
push 2
mov edx, dword [ebp - 0x68]
push edx
call fcn.0042d5e0
add esp, 8
cmp dword [ebp - 0x3c], 0
jne 0x461427
mov eax, dword [ebp - 0x48]
push eax
call fcn.004240f0
add esp, 4
or eax, 0xffffffff
jmp 0x461494
cmp dword [ebp + 8], 2
jne 0x461436
push 0
call fcn.004200c0
jmp 0x461487
cmp dword [ebp + 8], 0
jne 0x461468
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x461487
cmp dword [ebp + 8], 4
jne 0x461481
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
jmp 0x461487
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret