Function at 0x406660
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c240
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push esi
push edi
mov eax, dword [0x5cefd4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x14]
mov dword [esi + 0xf0], 0
mov dword [ebp - 0x20], eax
call fcn.0040879e
mov ecx, eax
test ecx, ecx
je 0x4068c9
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x5adda4
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.00403830
test al, al
jne 0x4066df
push 0x19
push 0x5adda4
lea ecx, [ebp - 0x14]
call fcn.00403c90
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0xd4]
test ecx, ecx
je 0x4066f8
push dword [ebp - 0x14]
call fcn.00413166
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40671c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.wic_x86_chs.exe__passive__norestart
add esi, 0x10c
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00403b90
add esp, 0xc
mov dword [ebp - 4], 2
mov eax, dword [esi]
mov esi, dword [ebp - 0x1c]
add esi, 0xfffffff0
mov dword [ebp - 0x20], eax
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x406763
cmp ecx, dword [esi]
jne 0x406763
lock inc dword [eax]
jmp 0x40679a
mov eax, dword [ecx]
push 2
push dword [esi + 4]
mov eax, dword [eax]
call eax
mov edx, eax
mov dword [ebp - 0x14], edx
test edx, edx
je 0x4068d3
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
lea eax, [esi + 0x10]
mov ecx, dword [esi + 4]
inc ecx
push ecx
push eax
push ecx
lea eax, [edx + 0x10]
push eax
call fcn.00403f00
mov esi, dword [ebp - 0x14]
add esp, 0x10
add esi, 0x10
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
xorps xmm0, xmm0
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x78], 0x44
movups xmmword [ebp - 0x34], xmm0
cmp dword [esi - 4], 1
jle 0x4067ee
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00403f90
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x20]
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40683b
push 0xffffffffffffffff
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x34]
call edi
or edi, 0xffffffff
cmp dword [ebp - 0x24], 0
mov eax, edi
mov byte [ebp - 4], 2
sete byte [ebp - 0xd]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40685e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
jne 0x406881
mov ecx, dword [ebp - 0x18]
push 0
push 0
push 0x5ade20
mov dword [ecx + 0xf0], 0x14
call fcn.0040e313
jmp 0x406899
call fcn.00404730
mov ecx, dword [ebp - 0x18]
movzx eax, al
neg eax
sbb eax, eax
add eax, 8
mov dword [ecx + 0xf0], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4068b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404240
call fcn.00404010
int3