Function at 0x48d830
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 0x48d887
mov esi, edx
add esi, 4
mov edi, esp
mov ecx, edi
push eax
call fcn.00424050
mov ecx, edi
push 0x584e84
call fcn.00424050
mov eax, dword [esi]
add esi, 4
test eax, eax
jne 0x48d860
movzx ecx, byte [esp]
mov eax, dword [esp + 4]
jmp 0x48d88b
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.004237d0
test byte [esp], 1
je 0x48d8d7
mov eax, dword [esp + 8]
mov byte [eax], 0
mov dword [esp + 4], 0
test byte [esp], 1
je 0x48d8d7
push dword [esp + 8]
call fcn.004203b0
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 0x48daca
mov dword [esp + 0x34], ebp
mov ebp, dword [esi]
test ebp, ebp
je 0x48dadc
add esi, 4
jmp 0x48d95d
mov ebp, dword [esi]
add esi, 4
test ebp, ebp
je 0x48dabb
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 0x48dc32
mov ebx, eax
cmp eax, 0xb
jae 0x48d9a0
mov eax, ebx
add al, bl
mov byte [esp + 0x18], al
lea edi, [esp + 0x19]
test ebx, ebx
jne 0x48d9ca
jmp 0x48d9d5
mov dword [esp + 0x44], esi
mov esi, ebx
or esi, 0xf
lea eax, [esi + 1]
push eax
call fcn.00420210
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.00423e00
movsd xmm0, qword [eax]
movsd qword [esp + 0xc], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
movzx eax, byte [esp + 0xc]
test al, 1
je 0x48da50
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
jmp 0x48da56
shr eax, 1
lea edx, [esp + 0xd]
lea ecx, [esp + 0x28]
push eax
push edx
call fcn.00423e00
test byte [esp + 0xc], 1
jne 0x48da80
test byte [esp + 0x38], 1
jne 0x48da93
test byte [esp + 0x18], 1
je 0x48d950
jmp 0x48daaa
push dword [esp + 0x14]
call fcn.004203b0
add esp, 4
test byte [esp + 0x38], 1
je 0x48da6f
push dword [esp + 0x40]
call fcn.004203b0
add esp, 4
test byte [esp + 0x18], 1
je 0x48d950
push dword [esp + 0x20]
call fcn.004203b0
add esp, 4
jmp 0x48d950
movzx edx, byte [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
jmp 0x48dae2
xor eax, eax
xor ecx, ecx
xor edx, edx
test byte [esp], 1
jne 0x48daec
lea esi, [esp + 1]
jmp 0x48daf0
xor eax, eax
xor ecx, ecx
xor edx, edx
mov ebp, dword [esp + 0x34]
test byte [esp], 1
je 0x48dad6
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 0x48db9c
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 0x48dbca
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 0x48dc40
add esp, 0x10
jmp 0x48dbfb
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.004c5a80
add esp, 8
test byte [esp + 0xc], 1
je 0x48dbd5
mov eax, dword [esp + 0x14]
jmp 0x48dbd9
xor esi, esi
test byte [esp + 0x28], 1
jne 0x48dc07
jmp 0x48dc13
lea eax, [esp + 0xd]
push eax
push str.CreateProcess_failed:__s_n
push esi
call 0x48dc40
add esp, 0xc
test byte [esp + 0xc], 1
je 0x48dbfb
push dword [esp + 0x14]
call fcn.004203b0
add esp, 4
mov esi, 0xffffffff
test byte [esp + 0x28], 1
je 0x48dc13
push dword [esp + 0x30]
call fcn.004203b0
add esp, 4
test byte [esp], 1
je 0x48dc25
push dword [esp + 8]
call fcn.004203b0
add esp, 4
mov eax, esi
add esp, 0x9c
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x18]
call fcn.00423320
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.00428d90
add esp, 0xc
pop eax
ret