Function at 0x40b210
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496dbf
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
cmp dword [ebp + 8], 0
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0
mov ecx, 0x440
mov esi, dword [edi]
mov eax, 0x400
cmovne eax, ecx
mov dword [ebp - 0x50], 0
mov ecx, edi
mov dword [ebp - 0x44], 0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x54], eax
call fcn.0040d0f0
test al, al
je 0x40b295
add esi, 8
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x4c], str.open
cmp dword [ecx - 0xc], 0
cmovne eax, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x40b2d8
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.0040cc30
mov dword [ebp - 4], 0
mov ebx, 1
jmp 0x40b2ed
push ecx
lea ecx, [ebp + 0x18]
call fcn.00402250
mov dword [ebp - 4], 1
mov ebx, 2
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call fcn.00402250
mov dword [ebp - 4], 3
or edi, 0xffffffff
test bl, 2
je 0x40b32c
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp + 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b32c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
test bl, 1
je 0x40b359
and ebx, 0xfffffffe
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40b359
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
call fcn.0040d0f0
test al, al
je 0x40b36b
add esi, 8
lea eax, [ebp - 0x58]
mov dword [ebp - 0x40], esi
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40b383
xor bl, bl
jmp 0x40b41f
cmp dword [ebp + 8], 0
je 0x40b40f
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40b41d
push 0x4bb9f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x1c], 0x4bb744
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 7
test esi, esi
jne 0x40b3c6
mov byte [ebp - 4], 5
xor ebx, ebx
mov dword [ebp - 0x1c], 0x4bb744
jmp 0x40b40a
push str.GetProcessId
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40b3ec
mov byte [ebp - 4], 5
push esi
mov dword [ebp - 0x1c], 0x4bb744
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
jmp 0x40b403
push ebx
call eax
mov ebx, eax
mov byte [ebp - 4], 5
push esi
mov dword [ebp - 0x1c], 0x4bb744
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x40b41d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x40b43e
mov ecx, dword [eax]
push eax
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