Function at 0x407d40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4871ca
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x4c0074]
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 - 0x54], 0
mov ecx, edi
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x5c], 0x3c
mov dword [ebp - 0x58], eax
call fcn.0040a330
test al, al
je 0x407dc3
add esi, 8
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x50], str.open
cmp dword [ecx - 0xc], 0
cmovne eax, ecx
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x18]
mov ebx, dword [eax]
cmp dword [ebx - 0xc], 0
jne 0x407e11
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.00409bf0
mov dword [ebp - 4], 0
mov ebx, 1
mov dword [ebp - 0x10], ebx
mov eax, dword [eax]
mov edi, dword [ebp - 0x14]
mov dword [ebp + 0x18], eax
jmp 0x407e74
mov ecx, dword [ebx - 0x10]
lea esi, [ebx - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x407e30
cmp ecx, dword [esi]
jne 0x407e30
lock inc dword [eax]
jmp 0x407e5a
mov eax, dword [ecx]
lea edi, [esi + 4]
push 2
push dword [edi]
call dword [eax]
mov esi, eax
test esi, esi
je 0x408023
mov eax, dword [edi]
lea ecx, [esi + 0x10]
mov dword [esi + 4], eax
mov edx, dword [edi]
inc edx
push edx
push ebx
call fcn.004023d0
add esp, 8
lea eax, [esi + 0x10]
mov edi, eax
mov dword [ebp + 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 2
mov ebx, 2
mov dword [ebp - 0x10], ebx
mov ecx, dword [eax - 0x10]
lea esi, [eax - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x407e93
cmp ecx, dword [esi]
jne 0x407e93
lock inc dword [eax]
jmp 0x407ec5
mov eax, dword [ecx]
lea edx, [esi + 4]
push 2
push dword [edx]
mov dword [ebp - 0x18], edx
call dword [eax]
mov esi, eax
test esi, esi
je 0x408028
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [esi + 4], eax
mov edx, dword [ecx]
lea ecx, [esi + 0x10]
inc edx
push edx
push dword [ebp + 0x18]
call fcn.004023d0
add esp, 8
add esi, 0x10
mov dword [ebp + 0x18], esi
mov dword [ebp - 4], 5
or ecx, 0xffffffff
test bl, 2
je 0x407efe
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 5
add edi, 0xfffffff0
mov eax, ecx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x407efe
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
mov byte [ebp - 4], 7
test bl, 1
je 0x407f2b
and ebx, 0xfffffffe
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 7
mov eax, ecx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407f2b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp + 0x18]
mov edi, esi
call fcn.0040a330
test al, al
je 0x407f3c
lea edi, [esi + 8]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x44], edi
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x407f54
xor bl, bl
jmp 0x407ff0
cmp dword [ebp + 8], 0
je 0x407fe0
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x407fee
push 0x4a4f9c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x20], 0x4a4ec0
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 0xa
test edi, edi
jne 0x407f97
mov byte [ebp - 4], 7
xor ebx, ebx
mov dword [ebp - 0x20], 0x4a4ec0
jmp 0x407fdb
push str.GetProcessId
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x407fbd
mov byte [ebp - 4], 7
push edi
mov dword [ebp - 0x20], 0x4a4ec0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
jmp 0x407fd4
push ebx
call eax
mov ebx, eax
mov byte [ebp - 4], 7
push edi
mov dword [ebp - 0x20], 0x4a4ec0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x407fee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40800f
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
call fcn.004023c0
call fcn.004023c0
int3