Function at 0x1401dcac4
Capabilities:
Check os version

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x540
mov rax, qword [0x140310170]
xor rax, rsp
mov qword [rsp + 0x530], rax
mov dword [rsp + 0x80], 0
lea rax, [rsp + 0x84]
mov rdi, rax
xor eax, eax
mov ecx, 0x98
rep stosb byte [rdi], al
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x40], 0xffffffff
cmp qword [rsp + 0x558], 0
jne 0x1401dcb4d
lea rax, [0x140263014]
mov qword [rsp + 0x558], rax
mov rcx, qword [rsp + 0x558]
call fcn.140212370
inc eax
mov dword [rsp + 0x28], 0xff
lea rcx, [rsp + 0x120]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsp + 0x558]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1401dcbe9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
lea rax, [0x140263020]
mov qword [0x140367f78], rax
mov eax, dword [rsp + 0x58]
mov dword [0x140367f70], eax
mov dword [0x140367f68], 8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, qword [rsp + 0x558]
lea rdx, str.InstallLsp:_MultiByteToWideChar_failed_to_convert__s__Error___d_n
mov ecx, 4
call fcn.1401e8b2c
jmp 0x1401dcfe2
mov rcx, qword [rsp + 0x560]
call fcn.140212370
inc eax
mov dword [rsp + 0x28], 0x104
lea rcx, [rsp + 0x320]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsp + 0x560]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x1401dcc81
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov r9d, dword [rsp + 0x50]
mov r8, qword [rsp + 0x560]
lea rdx, str.InstallLsp:_MultiByteToWidechar_failed_to_convert__s:_Error___d_n
mov ecx, 4
call fcn.1401e8b2c
lea rax, [0x140263088]
mov qword [0x140367f78], rax
mov eax, dword [rsp + 0x50]
mov dword [0x140367f70], eax
mov dword [0x140367f68], 8
jmp 0x1401dcfe2
cmp dword [rsp + 0x568], 0
jne 0x1401dccb0
lea rdx, str.InstallLsp:_Error__Must_specify_at_least_one_provider_to_layer_over__n_n
mov ecx, 4
call fcn.1401e8b2c
mov dword [0x140367f68], 9
jmp 0x1401dcfe2
lea r8, [rsp + 0x120]
lea rdx, str.LSP_name_is__S_n
xor ecx, ecx
call fcn.1401e8b2c
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x560]
call fcn.1401e7d94
cmp eax, 0xffffffff
jne 0x1401dcd02
lea rdx, str.InstallLsp:_Error__RetrieveLspGuid_Failed___n_n
mov ecx, 4
call fcn.1401e8b2c
mov dword [0x140367f68], 0xa
jmp 0x1401dcfe2
mov dword [rsp + 0x80], 0x9c
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov byte [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
test eax, eax
je 0x1401dcda6
cmp dword [rsp + 0x84], 6
jb 0x1401dcda6
mov eax, dword [rsp + 0x580]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x578]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x570]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x568]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x320]
lea rdx, [rsp + 0x120]
mov ecx, dword [rsp + 0x550]
call fcn.1401dd1ec
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0xffffffff
jne 0x1401dcda1
mov dword [0x140367f68], 0xb
jmp 0x1401dcfe2
jmp 0x1401dcfe2
mov dword [rsp + 0x54], 0
lea rax, [rsp + 0x568]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x570]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x120]
mov ecx, dword [rsp + 0x550]
call fcn.1401df918
cmp dword [rsp + 0x54], 0
je 0x1401dcebc
mov eax, 4
imul rax, rax, 0
mov r9d, dword [rsp + 0x578]
lea r8, [rsp + 0x120]
mov rcx, qword [rsp + 0x570]
mov edx, dword [rcx + rax]
mov ecx, dword [rsp + 0x550]
call fcn.1401dd73c
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1401dce53
lea rdx, str.InstallLsp:_CreateDummyEntry_failed__n
mov ecx, 4
call fcn.1401e8b2c
mov dword [0x140367f68], 0xc
jmp 0x1401dcfe2
mov dword [rsp + 0x20], 1
mov r9, qword [rsp + 0x48]
lea r8, [rsp + 0x320]
lea rdx, [rsp + 0x70]
mov ecx, dword [rsp + 0x550]
call fcn.1401dd03c
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x1401dcea9
lea rdx, str.InstallLsp:_Unable_to_install_the_dummy_LSP_entry__n
mov ecx, 4
call fcn.1401e8b2c
mov dword [0x140367f68], 0xd
jmp 0x1401dcfe2
mov rcx, qword [rsp + 0x48]
call fcn.1401ec2e0
mov qword [rsp + 0x48], 0
cmp dword [rsp + 0x568], 0
jbe 0x1401dcfb4
cmp dword [rsp + 0x578], 0
jne 0x1401dcf75
cmp dword [rsp + 0x588], 0
je 0x1401dcf36
mov rax, qword [rsp + 0x590]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov eax, dword [rsp + 0x568]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x570]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x320]
lea r8, [rsp + 0x120]
lea rdx, [rsp + 0x70]
mov ecx, dword [rsp + 0x550]
call fcn.1401dec18
mov dword [rsp + 0x40], eax
jmp 0x1401dcf73
mov eax, dword [rsp + 0x568]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x570]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x320]
lea r8, [rsp + 0x120]
lea rdx, [rsp + 0x70]
mov ecx, dword [rsp + 0x550]
call fcn.1401de6f0
mov dword [rsp + 0x40], eax
jmp 0x1401dcfb2
mov eax, dword [rsp + 0x568]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x570]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x320]
lea r8, [rsp + 0x120]
lea rdx, [rsp + 0x70]
mov ecx, dword [rsp + 0x550]
call fcn.1401dd94c
mov dword [rsp + 0x40], eax
jmp 0x1401dcfc0
mov dword [rsp + 0x40], 0
jmp 0x1401dcfe2
cmp dword [rsp + 0x40], 0xffffffff
jne 0x1401dcfe2
mov dword [0x140367f68], 0xe
lea rdx, [rsp + 0x70]
mov ecx, dword [rsp + 0x550]
call fcn.1401e3ea4
cmp qword [rsp + 0x60], 0
je 0x1401dcff4
mov rcx, qword [rsp + 0x60]
call fcn.1401ec258
cmp qword [rsp + 0x48], 0
je 0x1401dd006
mov rcx, qword [rsp + 0x48]
call fcn.1401ec2e0
cmp qword [rsp + 0x68], 0
je 0x1401dd018
mov rcx, qword [rsp + 0x68]
call fcn.1401ec2e0
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1401ef4e0
add rsp, 0x540
pop rdi
ret