Function at 0x6d4535c3
Capabilities:
Create process on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0x68
push ebx
mov dword [ebp - 0x10], eax
push esi
mov ebx, dword [ebp + 8]
push edi
mov byte [ebp - 1], al
cmp ebx, eax
je 0x6d453615
cmp ebx, 1
je 0x6d453615
cmp ebx, 2
jl 0x6d4535ef
cmp ebx, 3
jle 0x6d453615
cmp ebx, 4
je 0x6d453611
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x16
call sym.MSVCRT20.dll___doserrno
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebp - 1], 1
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov al, byte [ecx]
test al, al
je 0x6d453636
inc ecx
cmp byte [ecx], 0
jne 0x6d453621
lea eax, [ecx + 1]
cmp byte [eax], 0
je 0x6d45361b
mov byte [ecx], 0x20
mov ecx, eax
jmp 0x6d45361b
lea edi, [ebp - 0x68]
xor eax, eax
mov ecx, 0x11
rep stosd dword es:[edi], eax
mov dword [ebp - 0x68], 0x44
mov eax, dword [0x6d462fd8]
mov dword [ebp - 8], eax
test eax, eax
je 0x6d453667
xor ecx, ecx
mov eax, dword [ebp - 8]
cmp byte [eax + 0x6d462fdf], cl
jne 0x6d453667
dec dword [ebp - 8]
jne 0x6d453657
mov eax, dword [ebp - 8]
push 1
imul ax, ax, 5
add ax, 4
lea esi, [ebp - 8]
movzx ecx, ax
mov word [ebp - 0x36], ax
push ecx
call sym.MSVCRT20.dll_calloc
add esp, 8
mov edi, eax
mov dword [ebp - 0x34], eax
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 8]
mov esi, 0x6d462fe0
mov edi, dword [ebp - 0x34]
mov ecx, eax
shr ecx, 2
add edi, 4
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 8]
mov esi, 0x6d4630e0
shl ecx, 2
mov eax, dword [ebp - 8]
shr ecx, 2
mov edx, dword [ebp - 0x34]
lea edi, [eax + edx + 4]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp byte [ebp - 1], cl
je 0x6d4536fe
xor edx, edx
mov eax, dword [ebp - 0x34]
inc ecx
cmp ecx, 2
mov byte [eax + ecx + 3], dl
jle 0x6d4536cc
xor eax, eax
mov ecx, 0xffffffff
lea edx, [eax*4]
mov esi, dword [ebp - 0x34]
add edx, dword [ebp - 8]
inc eax
cmp eax, 2
mov dword [edx + esi + 4], ecx
jle 0x6d4536e0
mov dword [ebp - 0x10], 8
call sym.MSVCRT20.dll___doserrno
mov esi, eax
call sym.MSVCRT20.dll__errno
lea ecx, [ebp - 0x68]
mov dword [eax], 0
lea eax, [ebp - 0x24]
mov dword [esi], 0
push eax
push ecx
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x10]
push 1
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call sym.MSVCRT20.dll_free
add esp, 4
test esi, esi
jne 0x6d453764
push edi
call fcn.6d440737
add esp, 4
mov eax, 0xffffffff
jmp 0x6d45360a
cmp ebx, 2
jne 0x6d453784
push 0
call sym.MSVCRT20.dll__exit
add esp, 4
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
jmp 0x6d45360a
test ebx, ebx
jne 0x6d4537ab
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x6d453773
cmp ebx, 4
jne 0x6d4537c2
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xc], 0
jmp 0x6d453773
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
jmp 0x6d453773