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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c
mov dword [ebp - 8], 0
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov byte [ebp - 2], al
mov cl, byte [ebp - 2]
mov byte [ebp - 0x71], cl
mov edx, dword [ebp + 8]
mov dword [ebp - 0x94], edx
cmp dword [ebp - 0x94], 4
ja case.default.0x5188ba
mov eax, dword [ebp - 0x94]
jmp dword [eax*4 + 0x518c8c]
mov byte [ebp - 0x71], 1
jmp 0x518970
jmp 0x518970
mov byte [ebp - 2], 1
jmp 0x518970
mov byte [ebp - 1], 1
jmp 0x518970
call fcn.004edea0
mov dword [eax], 0
xor ecx, ecx
je 0x5188fc
mov dword [ebp - 0x98], 1
jmp 0x518906
mov dword [ebp - 0x98], 0
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x90], edx
cmp dword [ebp - 0x90], 0
jne 0x518939
push str.__invalid_mode___0_
push 0
push 0x56
push str.f:dd_vctoolscrt_bld_self_x86crt_srcdospawn.c
push 2
call fcn.004ddbd0
add esp, 0x14
cmp eax, 1
jne 0x518939
int3
cmp dword [ebp - 0x90], 0
jne 0x518970
call fcn.004ede70
mov dword [eax], 0x16
push 0
push 0x56
push str.f:dd_vctoolscrt_bld_self_x86crt_srcdospawn.c
push str._dospawn
push str.__invalid_mode___0_
call fcn.004de490
add esp, 0x14
or eax, 0xffffffff
jmp 0x518c87
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp + 0x10]
movsx eax, byte [edx]
test eax, eax
je 0x5189b1
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx]
test edx, edx
je 0x518995
mov eax, dword [ebp + 0x10]
add eax, 1
mov dword [ebp + 0x10], eax
jmp 0x518980
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx + 1]
test edx, edx
je 0x5189af
mov eax, dword [ebp + 0x10]
mov byte [eax], 0x20
mov ecx, dword [ebp + 0x10]
add ecx, 1
mov dword [ebp + 0x10], ecx
jmp 0x518976
push 0x44
push 0
lea edx, [ebp - 0x50]
push edx
call fcn.004df590
add esp, 0xc
mov dword [ebp - 0x50], 0x44
mov eax, dword [0x586b10]
mov dword [ebp - 0x7c], eax
jmp 0x5189db
mov ecx, dword [ebp - 0x7c]
sub ecx, 1
mov dword [ebp - 0x7c], ecx
cmp dword [ebp - 0x7c], 0
je 0x518a08
mov edx, dword [ebp - 0x7c]
sub edx, 1
sar edx, 5
mov eax, dword [ebp - 0x7c]
sub eax, 1
and eax, 0x1f
shl eax, 6
mov ecx, dword [edx*4 + 0x586b20]
movsx edx, byte [ecx + eax + 4]
test edx, edx
jne 0x518a08
jmp 0x5189d2
cmp dword [ebp - 0x7c], 0
jl 0x518a17
cmp dword [ebp - 0x7c], 0x3332
jb 0x518a2a
call fcn.004ede70
mov dword [eax], 0xc
or eax, 0xffffffff
jmp 0x518c87
mov eax, dword [ebp - 0x7c]
imul eax, eax, 5
add eax, 4
mov word [ebp - 0x1e], ax
push 0x7d
push 0x560e84
push 2
push 1
movzx ecx, word [ebp - 0x1e]
push ecx
call fcn.004e4670
add esp, 0x14
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x518a6b
call fcn.004ede70
mov dword [eax], 0xc
or eax, 0xffffffff
jmp 0x518c87
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x7c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 4
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + edx + 4]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x54], 0
jmp 0x518ab6
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x80]
add eax, 1
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x8c]
add ecx, 4
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0x54]
cmp edx, dword [ebp - 0x7c]
jge 0x518b20
mov eax, dword [ebp - 0x54]
sar eax, 5
mov ecx, dword [ebp - 0x54]
and ecx, 0x1f
shl ecx, 6
add ecx, dword [eax*4 + 0x586b20]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
movsx eax, byte [edx + 4]
and eax, 0x10
jne 0x518b09
mov ecx, dword [ebp - 0x80]
mov edx, dword [ebp - 0x88]
mov al, byte [edx + 4]
mov byte [ecx], al
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x88]
mov eax, dword [edx]
mov dword [ecx], eax
jmp 0x518b1b
mov ecx, dword [ebp - 0x80]
mov byte [ecx], 0
mov edx, dword [ebp - 0x8c]
mov dword [edx], 0xffffffff
jmp 0x518a95
movsx eax, byte [ebp - 1]
test eax, eax
je 0x518bb2
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0x1c]
add ecx, 4
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + edx + 4]
mov dword [ebp - 0x8c], ecx
jmp 0x518b6f
mov edx, dword [ebp - 0x54]
add edx, 1
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x80]
add eax, 1
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x8c]
add ecx, 4
mov dword [ebp - 0x8c], ecx
cmp dword [ebp - 0x7c], 3
jge 0x518b80
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x9c], edx
jmp 0x518b8a
mov dword [ebp - 0x9c], 3
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x9c]
jge 0x518ba9
mov ecx, dword [ebp - 0x80]
mov byte [ecx], 0
mov edx, dword [ebp - 0x8c]
mov dword [edx], 0xffffffff
jmp 0x518b4e
mov eax, dword [ebp - 8]
or eax, 8
mov dword [ebp - 8], eax
call fcn.004edea0
mov dword [eax], 0
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x50]
push edx
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
push 0
push 0
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x84], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x70], eax
push 2
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004e5000
add esp, 8
cmp dword [ebp - 0x84], 0
jne 0x518c1a
mov edx, dword [ebp - 0x70]
push edx
call fcn.004eddc0
add esp, 4
or eax, 0xffffffff
jmp 0x518c87
cmp dword [ebp + 8], 2
jne 0x518c29
push 0
call fcn.004e39c0
jmp 0x518c7a
cmp dword [ebp + 8], 0
jne 0x518c5b
push 0xffffffffffffffff
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x78]
push ecx
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x518c7a
cmp dword [ebp + 8], 4
jne 0x518c74
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x68], 0
jmp 0x518c7a
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x68]
mov esp, ebp
pop ebp
ret