Function at 0x48d350
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x9c
mov ebp, ecx
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
mov eax, dword [edx]
test eax, eax
je 0x48d3a7
mov esi, edx
add esi, 4
mov edi, esp
mov ecx, edi
push eax
call fcn.00424b40
mov ecx, edi
push 0x58cd3c
call fcn.00424b40
mov eax, dword [esi]
add esi, 4
test eax, eax
jne 0x48d380
movzx ecx, byte [esp]
mov eax, dword [esp + 4]
jmp 0x48d3ab
xor eax, eax
xor ecx, ecx
mov esi, dword [esp + 0xb0]
mov edx, ecx
shr dl, 1
test cl, 1
movzx edx, dl
cmovne edx, eax
dec edx
mov eax, esp
lea ecx, [esp + 0x58]
push eax
push edx
push 0
push eax
call fcn.004242a0
test byte [esp], 1
je 0x48d3f7
mov eax, dword [esp + 8]
mov byte [eax], 0
mov dword [esp + 4], 0
test byte [esp], 1
je 0x48d3f7
push dword [esp + 8]
call fcn.00420e70
add esp, 4
mov eax, dword [esp + 0x60]
mov dword [esp + 8], eax
movsd xmm0, qword [esp + 0x58]
movsd qword [esp], xmm0
mov dword [esp + 0x24], 0
xorps xmm0, xmm0
movups xmmword [esp + 0x5c], xmm0
movups xmmword [esp + 0x6c], xmm0
movups xmmword [esp + 0x7c], xmm0
movups xmmword [esp + 0x8c], xmm0
mov dword [esp + 0x58], 0x44
movups xmmword [esp + 0x48], xmm0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
test esi, esi
je 0x48d5ea
mov dword [esp + 0x34], ebp
mov ebp, dword [esi]
test ebp, ebp
je 0x48d5fc
add esi, 4
jmp 0x48d47d
mov ebp, dword [esi]
add esi, 4
test ebp, ebp
je 0x48d5db
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x48d752
mov ebx, eax
cmp eax, 0xb
jae 0x48d4c0
mov eax, ebx
add al, bl
mov byte [esp + 0x18], al
lea edi, [esp + 0x19]
test ebx, ebx
jne 0x48d4ea
jmp 0x48d4f5
mov dword [esp + 0x44], esi
mov esi, ebx
or esi, 0xf
lea eax, [esi + 1]
push eax
call fcn.00420cd0
add esp, 4
mov edi, eax
mov dword [esp + 0x20], eax
add esi, 2
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x1c], ebx
push ebx
push ebp
push edi
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [edi + ebx], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov byte [esp + 0x38], 2
mov byte [esp + 0x3a], 0
lea ecx, [esp + 0x18]
push 1
lea eax, [esp + 0x3d]
push eax
call fcn.004248f0
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0xc], xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
movzx eax, byte [esp + 0xc]
test al, 1
je 0x48d570
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
jmp 0x48d576
shr eax, 1
lea edx, [esp + 0xd]
lea ecx, [esp + 0x28]
push eax
push edx
call fcn.004248f0
test byte [esp + 0xc], 1
jne 0x48d5a0
test byte [esp + 0x38], 1
jne 0x48d5b3
test byte [esp + 0x18], 1
je 0x48d470
jmp 0x48d5ca
push dword [esp + 0x14]
call fcn.00420e70
add esp, 4
test byte [esp + 0x38], 1
je 0x48d58f
push dword [esp + 0x40]
call fcn.00420e70
add esp, 4
test byte [esp + 0x18], 1
je 0x48d470
push dword [esp + 0x20]
call fcn.00420e70
add esp, 4
jmp 0x48d470
movzx edx, byte [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
jmp 0x48d602
xor eax, eax
xor ecx, ecx
xor edx, edx
test byte [esp], 1
jne 0x48d60c
lea esi, [esp + 1]
jmp 0x48d610
xor eax, eax
xor ecx, ecx
xor edx, edx
mov ebp, dword [esp + 0x34]
test byte [esp], 1
je 0x48d5f6
mov esi, dword [esp + 8]
mov ebx, edx
shr bl, 1
test dl, 1
movzx edx, bl
cmove ecx, edx
lea edx, [esp + 0x29]
cmove eax, edx
test ecx, ecx
cmove eax, ecx
sub esp, 0x28
lea ecx, [esp + 0x70]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0x20], ecx
xorps xmm0, xmm0
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x48d6bc
push 0xffffffffffffffff
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x48]
call esi
push dword [esp + 0x4c]
call esi
cmp dword [esp + 0x24], 0
je 0x48d6ea
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push dword [esp + 0x24]
push ebp
push str._s_failed:__lu_n
push eax
call 0x48d760
add esp, 0x10
jmp 0x48d71b
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xc]
push eax
push ecx
call fcn.004cf120
add esp, 8
test byte [esp + 0xc], 1
je 0x48d6f5
mov eax, dword [esp + 0x14]
jmp 0x48d6f9
xor esi, esi
test byte [esp + 0x28], 1
jne 0x48d727
jmp 0x48d733
lea eax, [esp + 0xd]
push eax
push str.CreateProcess_failed:__s_n
push esi
call 0x48d760
add esp, 0xc
test byte [esp + 0xc], 1
je 0x48d71b
push dword [esp + 0x14]
call fcn.00420e70
add esp, 4
mov esi, 0xffffffff
test byte [esp + 0x28], 1
je 0x48d733
push dword [esp + 0x30]
call fcn.00420e70
add esp, 4
test byte [esp], 1
je 0x48d745
push dword [esp + 8]
call fcn.00420e70
add esp, 4
mov eax, esi
add esp, 0x9c
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x18]
call fcn.00423df0
nop dword [eax + eax]
push eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
mov dword [esp], edx
push edx
push ecx
push eax
call fcn.004298c0
add esp, 0xc
pop eax
ret