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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x898
mov rax, qword [0x010657f0]
xor rax, rsp
mov qword [rsp + 0x880], rax
mov dword [rsp + 0x70], 0x20a
cmp dword [rsp + 0x70], 0x104
jbe 0x10560f8
lea rcx, [rsp + 0x730]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10560f8
cmp dword [rsp + 0x734], 5
jne 0x10560f8
cmp dword [rsp + 0x738], 0
jne 0x10560f8
mov dword [rsp + 0x70], 0x104
mov rcx, qword [rsp + 0x8a0]
call fcn.01056070
mov qword [rsp + 0x858], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x860], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rsp + 0x70]
lea rdx, [0x01067e30]
mov qword [rsp + 0x60], rdx
lea rdx, str.MSSQLSERVER
mov qword [rsp + 0x58], rdx
mov rdx, qword [rsp + 0x8a8]
mov rdx, qword [rdx + 8]
mov qword [rsp + 0x50], rdx
mov rdx, qword [rsp + 0x8a8]
mov rdx, qword [rdx]
mov qword [rsp + 0x48], rdx
mov rdx, qword [rsp + 0x858]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov edx, dword [rsp + 0x8b0]
mov dword [rsp + 0x30], edx
mov edx, dword [rsp + 0x860]
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], eax
lea r9, [0x0100e838]
lea r8, [0x0100e8c0]
mov rdx, rcx
lea rcx, [rsp + 0x310]
call fcn.01015ef0
mov dword [rsp + 0xf0], eax
cmp dword [rsp + 0xf0], 0x8007007a
jne 0x1056265
mov rcx, qword [rsp + 0x8a0]
call fcn.01056070
mov qword [rsp + 0x868], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x870], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x8a8]
mov rdx, qword [rdx + 8]
mov qword [rsp + 0x50], rdx
mov rdx, qword [rsp + 0x8a8]
mov rdx, qword [rdx]
mov qword [rsp + 0x48], rdx
mov rdx, qword [rsp + 0x868]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov edx, dword [rsp + 0x8b0]
mov dword [rsp + 0x30], edx
mov edx, dword [rsp + 0x870]
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], eax
lea r9, [0x0100e838]
lea r8, [0x0100e880]
mov rdx, rcx
lea rcx, [rsp + 0x310]
call fcn.01015ef0
mov dword [rsp + 0xf0], eax
mov eax, dword [rsp + 0x70]
sub eax, 1
mov eax, eax
mov word [rsp + rax*2 + 0x310], 0
mov dword [rsp + 0x70], 0x105
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x100]
xor edx, edx
lea rcx, str.MSSQLSERVER
call sub.instapi10.dll_GetSvcBinPathByInstName
test eax, eax
jne 0x10562a9
mov eax, 0x80004005
jmp 0x1056409
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x98], 0
mov rax, qword [rsp + 0x8a0]
add rax, 0x10
mov r8d, 0x18
xor edx, edx
mov rcx, rax
call sub.MSVCR80.dll_memset
mov rax, qword [rsp + 0x8a0]
add rax, 0x10
mov qword [rsp + 0x878], rax
mov rcx, qword [rsp + 0x8a0]
call fcn.01056430
mov rcx, qword [rsp + 0x878]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x100]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000010
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x310]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x105637e
mov edx, 0x4e20
mov rcx, qword [rsp + 0x8a0]
call fcn.01056450
jmp 0x1056407
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x850], eax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20a
lea rax, [rsp + 0x310]
mov qword [rsp + 0x20], rax
mov r9d, 0x400
mov r8d, dword [rsp + 0x850]
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x10563ee
mov word [rsp + 0x722], 0
lea r9, [rsp + 0x310]
mov r8d, 0x19e
xor edx, edx
mov ecx, 1
call fcn.01033fa0
jmp 0x1056407
lea r9, [0x01002ec8]
mov r8d, 0x19e
xor edx, edx
mov ecx, 1
call fcn.01033fa0
xor eax, eax
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.010588f0
add rsp, 0x898
ret