Function at 0x40c000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48969a
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x4c4074]
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.0040e110
test al, al
je 0x40c083
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 0x40c0d1
mov edx, edi
lea ecx, [ebp - 0x1c]
call fcn.0040dc90
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 0x40c134
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 0x40c0f0
cmp ecx, dword [esi]
jne 0x40c0f0
lock inc dword [eax]
jmp 0x40c11a
mov eax, dword [ecx]
lea edi, [esi + 4]
push 2
push dword [edi]
call dword [eax]
mov esi, eax
test esi, esi
je 0x40c2e3
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.004024f0
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 0x40c153
cmp ecx, dword [esi]
jne 0x40c153
lock inc dword [eax]
jmp 0x40c185
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 0x40c2e8
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.004024f0
add esp, 8
add esi, 0x10
mov dword [ebp + 0x18], esi
mov dword [ebp - 4], 5
or ecx, 0xffffffff
test bl, 2
je 0x40c1be
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 0x40c1be
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 0x40c1eb
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 0x40c1eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp + 0x18]
mov edi, esi
call fcn.0040e110
test al, al
je 0x40c1fc
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 0x40c214
xor bl, bl
jmp 0x40c2b0
cmp dword [ebp + 8], 0
je 0x40c2a0
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40c2ae
push 0x4a8d0c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x20], 0x4a8ad0
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 0xa
test edi, edi
jne 0x40c257
mov byte [ebp - 4], 7
xor ebx, ebx
mov dword [ebp - 0x20], 0x4a8ad0
jmp 0x40c29b
push str.GetProcessId
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40c27d
mov byte [ebp - 4], 7
push edi
mov dword [ebp - 0x20], 0x4a8ad0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
jmp 0x40c294
push ebx
call eax
mov ebx, eax
mov byte [ebp - 4], 7
push edi
mov dword [ebp - 0x20], 0x4a8ad0
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 0x40c2ae
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 0x40c2cf
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.004024e0
call fcn.004024e0
int3