Function at 0x566680
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x636bfd
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x6ec7c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x48]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp + 0x20]
push str.CProcess::StartProcess
mov dword [ebp - 0x170], eax
call fcn.00562ae0
cmp byte [ebp + 0x24], 0
mov dword [ebp - 4], 0
jne 0x566856
push 0x118
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.0060ddfb
add esp, 0xc
mov dword [ebp - 0x164], 0x114
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx eax, byte [ebp + 0x2c]
xorps xmm0, xmm0
shl eax, 0xa
or eax, 0x40
movlpd qword [ebp - 0x188], xmm0
cmp byte [ebp + 0x1c], 0
movlpd qword [ebp - 0x180], xmm0
movlpd qword [ebp - 0x178], xmm0
mov dword [ebp - 0x1ac], 0x3c
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1a4], 0
je 0x566768
cmp dword [ebp - 0x160], 6
mov dword [ebp - 0x1a0], str.runas
jae 0x566772
mov dword [ebp - 0x1a0], 0
mov eax, dword [ebp - 0x16c]
cmp dword [eax + 0x14], 7
jbe 0x566780
mov eax, dword [eax]
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x19c], eax
jbe 0x56678e
mov edi, dword [edi]
cmp dword [esi + 0x10], 0
mov dword [ebp - 0x198], edi
jne 0x5667a6
mov dword [ebp - 0x194], 0
jmp 0x5667b4
cmp dword [esi + 0x14], 7
jbe 0x5667ae
mov esi, dword [esi]
mov dword [ebp - 0x194], esi
xor eax, eax
mov dword [ebp - 0x18c], 0
cmp byte [ebp + 0x28], al
sete al
mov dword [ebp - 0x190], eax
lea eax, [ebp - 0x1ac]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x5667f6
push str.ShellExecuteEx___failed._Return.
lea ecx, [ebp - 0x48]
call fcn.00563760
mov byte [ebp - 0x165], 0
jmp 0x566958
cmp byte [ebp + 0x14], 0
je 0x56684a
push str.Waiting_for_process_finish.
lea ecx, [ebp - 0x48]
call fcn.00563760
push dword [ebp + 0x18]
push dword [ebp - 0x174]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov eax, dword [ebp - 0x170]
sete byte [ebp - 0x165]
test eax, eax
je 0x566838
push eax
push dword [ebp - 0x174]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push str.Process_finished.
lea ecx, [ebp - 0x48]
call fcn.00563760
jmp 0x566958
mov byte [ebp - 0x165], 1
jmp 0x566958
push str.Escape_from_job.
lea ecx, [ebp - 0x48]
call fcn.00563760
cmp dword [esi + 0x10], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x1b0], xmm0
movlpd qword [ebp - 0x1a8], xmm0
movlpd qword [ebp - 0x1a0], xmm0
movlpd qword [ebp - 0x198], xmm0
movlpd qword [ebp - 0x190], xmm0
movlpd qword [ebp - 0x188], xmm0
movlpd qword [ebp - 0x180], xmm0
movlpd qword [ebp - 0x178], xmm0
mov dword [ebp - 0x1b4], 0x44
movups xmmword [ebp - 0x1c4], xmm0
jne 0x5668c1
xor esi, esi
jmp 0x5668c9
cmp dword [esi + 0x14], 7
jbe 0x5668c9
mov esi, dword [esi]
cmp dword [edi + 0x14], 7
jbe 0x5668d1
mov edi, dword [edi]
mov ecx, dword [ebp - 0x16c]
cmp dword [ecx + 0x14], 7
jbe 0x5668df
mov ecx, dword [ecx]
lea eax, [ebp - 0x1c4]
push eax
lea eax, [ebp - 0x1b4]
push eax
movzx eax, byte [ebp + 0x28]
push esi
push 0
shl eax, 0x1b
or eax, 0x1000000
push eax
push 0
push 0
push 0
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x566925
push str.CreateProcess___failed.
lea ecx, [ebp - 0x48]
call fcn.00563760
mov byte [ebp - 0x165], 0
jmp 0x566958
cmp byte [ebp + 0x14], 0
mov byte [ebp - 0x165], 1
je 0x566941
push dword [ebp + 0x18]
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x170]
test eax, eax
je 0x566958
push eax
push dword [ebp - 0x1c4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea ecx, [ebp - 0x48]
call fcn.005630c0
mov al, byte [ebp - 0x165]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00604ed9
mov esp, ebp
pop ebp
ret