Function at 0x456843
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x498cc1
call fcn.0046a2a4
sub esp, 0x94
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x14]
xor edi, edi
test eax, eax
je 0x456864
mov dword [eax], edi
push dword [ebp + 8]
call fcn.004319c9
pop ecx
test al, al
je 0x45687b
call fcn.00457a21
jmp 0x456ada
mov dword [ebp - 4], edi
push edi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.00429b97
add esp, 0xc
mov dword [ebp - 0x94], esi
mov ebx, dword [ebp + 0xc]
test bl, 0x20
je 0x4568a9
push 3
or dword [ebp - 0x68], 1
pop eax
jmp 0x4568bd
test bl, 0x40
je 0x4568b2
push 6
jmp 0x4568a2
test bl, 0x10
je 0x4568c1
or dword [ebp - 0x68], 1
xor eax, eax
mov word [ebp - 0x64], ax
mov dword [ebp - 0x18], edi
test bl, 8
je 0x4568d0
mov esi, 0x80
jmp 0x4568dc
test bl, 4
push 0x20
pop esi
push 0x40
pop eax
cmovne esi, eax
mov dword [ebp - 0x18], esi
test bl, 2
je 0x4568ea
or esi, 0x10
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x28]
call fcn.004282a8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
test ebx, 0x800
je 0x456961
push eax
call fcn.004319de
pop ecx
test al, al
je 0x45695e
push dword [ebp + 8]
lea eax, [ebp - 0x50]
push eax
call fcn.004447ad
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00424f5b
lea ecx, [ebp - 0x50]
call fcn.00425c1b
push 0x22
lea ecx, [ebp - 0x28]
call fcn.00426582
mov eax, 0x49ab64
cmp dword [ebp - 0x28], 0
cmovne eax, dword [ebp - 0x28]
push eax
call fcn.00441721
pop ecx
test al, al
je 0x45695e
mov eax, 0x49ab64
cmp dword [ebp - 0x28], 0
cmovne eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
jmp 0x456961
mov eax, dword [ebp + 0x10]
push eax
call fcn.004319de
pop ecx
xor ecx, ecx
test al, al
mov eax, dword [ebp - 0x14]
cmovne eax, ecx
mov dword [ebp - 0x14], eax
call fcn.00457a0a
push dword [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.00408375
push 0x200
lea ecx, [ebp - 0x34]
call fcn.0042366c
mov ecx, 0x49ab64
cmp dword [ebp - 0x34], 0
cmovne ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0x14]
push edi
push esi
mov eax, ebx
shr eax, 9
and eax, 1
push eax
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x456a3c
test bl, bl
jns 0x456a27
lea eax, [ebp - 0xa0]
push eax
call fcn.00457917
mov ebx, 0x49ab64
mov ecx, ebx
cmp dword [eax], 0
cmovne ecx, dword [eax]
push edi
push ecx
push dword [0x4ce3a8]
push dword [ebp + 8]
push str.Unable_to_create_process:_r_n
lea eax, [ebp - 0x50]
push eax
call fcn.0042faa0
add esp, 0x1c
cmp dword [eax], 0
cmovne ebx, dword [eax]
push 0x10
push str.Error
push ebx
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x50]
call fcn.00425c1b
lea ecx, [ebp - 0xa0]
call fcn.00425c1b
lea ecx, [ebp - 0x34]
call fcn.00425c1b
lea ecx, [ebp - 0x28]
call fcn.00425c1b
jmp 0x456ada
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x456a48
mov eax, dword [ebp - 0x3c]
mov dword [ecx], eax
mov esi, closesocket
mov dword [ebp - 0x1c], esi
test bl, 1
je 0x456a93
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x456a96
test ebx, 0x100
jne 0x456a6f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x456a7f
push 0x4b
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x456abb
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x456a93
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x44]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x40]
call esi
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.00425c1b
lea ecx, [ebp - 0x28]
call fcn.00425c1b
mov eax, esi
jmp 0x456adf
call fcn.0046336e
mov eax, dword [ebp - 0x44]
jmp 0x456a6f
mov eax, closesocket
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret