Function at 0x4bf880
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ecb2
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
cmp dword [ebp + 0xc], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
mov ecx, 0x440
mov esi, dword [edi]
mov eax, 0x400
cmovne eax, ecx
mov dword [ebp - 0x4c], 0
mov ecx, edi
mov dword [ebp - 0x40], 0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], eax
call fcn.00494820
test al, al
je 0x4bf905
add esi, 8
mov ecx, dword [ebx]
movzx eax, byte [ebp + 0x10]
xor eax, 1
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], str.open
cmp dword [ecx - 0xc], 0
cmovne eax, ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
jne 0x4bf953
mov edx, edi
lea ecx, [ebp + 0x18]
call fcn.00493aa0
mov dword [ebp - 4], 0
mov ebx, 1
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
mov edi, dword [ebp + 0x10]
jmp 0x4bf972
add ecx, 0xfffffff0
call fcn.0040a1d0
lea ecx, [eax + 0x10]
mov edi, ecx
mov dword [ebp + 0x10], edi
mov dword [ebp - 4], 2
mov ebx, 2
mov dword [ebp - 0x14], ebx
add ecx, 0xfffffff0
call fcn.0040a1d0
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 5
test bl, 2
je 0x4bf9b2
and ebx, 0xfffffffd
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 5
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bf9b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4bf9b5
or edi, 0xffffffff
mov byte [ebp - 4], 7
test bl, 1
je 0x4bf9e2
and ebx, 0xfffffffe
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp + 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4bf9e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x18]
mov ebx, esi
call fcn.00494820
test al, al
je 0x4bf9f3
lea ebx, [esi + 8]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x3c], ebx
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, dword [ebp + 0xc]
test eax, eax
jne 0x4bfa17
test ebx, ebx
je 0x4bfa13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
xor bl, bl
jmp 0x4bfa45
test ebx, ebx
je 0x4bfa35
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4bfa43
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4bfa43
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4bfa61
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret