Function at 0x10043b910
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x4e0]
sub rsp, 0x5e0
mov rax, qword [0x100499010]
xor rax, rsp
mov qword [rbp + 0x4d0], rax
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x114
xor sil, sil
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor r14d, r14d
test eax, eax
je 0x10043b9d6
movzx ecx, word [rbp - 0x7c]
lea r8, [rbp - 0x7c]
lea rdx, [rbp - 0x7c]
mov sil, 1
mov r9d, r14d
test cx, cx
je 0x10043b9d2
nop dword [rax]
cmp cx, 0x20
jne 0x10043b995
movzx ecx, word [rdx + 2]
add rdx, 2
test cx, cx
jne 0x10043b980
jmp 0x10043b9d2
mov r10, rdx
test cx, cx
je 0x10043b9cd
nop dword [rax]
cmp cx, 0x20
mov word [r8], cx
movzx ecx, word [rdx + 2]
lea rdx, [rdx + 2]
mov rax, r8
cmove rax, r9
add r8, 2
mov r9, rax
test cx, cx
jne 0x10043b9a0
test rax, rax
je 0x10043b9cd
mov word [rax + 2], r14w
test r10, r10
jne 0x10043b9d6
mov word [r8], r14w
cmp dword [0x1004add50], r14d
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x54], 0x400
mov dword [rsp + 0x58], 0x28
mov dword [rsp + 0x5c], 0x14
mov dword [rsp + 0x40], r14d
mov word [0x1004a9700], r14w
jne 0x10043ba3b
cmp dword [0x1004adcdc], r14d
jne 0x10043ba3b
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x10043ba53
lea r8, [rsp + 0x48]
mov rcx, 0xffffffff80000002
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
call fcn.100454a30
lea rbx, [0x1004a9700]
mov edi, 0x100
test eax, eax
jne 0x10043bc07
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp + 0xd0]
xor r8d, r8d
lea rdx, [0x10047a0d0]
mov qword [rsp + 0x20], rax
call fcn.100454d90
test eax, eax
jne 0x10043bbfd
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp + 0xa8]
xor r8d, r8d
lea rdx, str.CurrentVersion
mov qword [rsp + 0x20], rax
call fcn.100454d90
test eax, eax
jne 0x10043bbfd
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp + 0x90]
xor r8d, r8d
lea rdx, str.CurrentBuildNumber
mov qword [rsp + 0x20], rax
call fcn.100454d90
test eax, eax
jne 0x10043bbfd
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x64]
mov dword [rsp + 0x50], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.CurrentMajorVersionNumber
call fcn.100454d90
test eax, eax
jne 0x10043bb9b
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.CurrentMinorVersionNumber
mov qword [rsp + 0x20], rax
call fcn.100454d90
test eax, eax
jne 0x10043bb9b
lea rax, [rbp + 0x90]
mov qword [rsp + 0x30], rax
lea r8, str._s__u._u___s_
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x20], eax
jmp 0x10043bbeb
test sil, sil
je 0x10043bbc3
cmp dword [rsp + 0x74], 6
ja 0x10043bbc0
jne 0x10043bbb0
cmp dword [rsp + 0x78], 2
je 0x10043bbc0
cmp word [rbp - 0x7c], r14w
je 0x10043bbc3
lea r8, str._s__s___s___s
jmp 0x10043bbca
xor sil, sil
lea r8, str._s__s___s_
lea rax, [rbp - 0x7c]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xa8]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xd0]
mov rdx, rdi
mov rcx, rbx
call fcn.10040b460
mov rcx, qword [rsp + 0x48]
call fcn.100454920
cmp word [0x1004a9700], r14w
jne 0x10043bca1
test sil, sil
je 0x10043bc65
cmp dword [rbp - 0x80], 2
lea rax, [0x10047a1f8]
lea r9, [0x10047a200]
mov rdx, rdi
cmove r9, rax
lea r8, str.Windows__s__ld._ld___ld___s
lea rax, [rbp - 0x7c]
mov rcx, rbx
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x20], eax
call fcn.10040b460
jmp 0x10043bca1
lea rcx, str.Windows
sub rcx, rbx
nop
lea rax, [rdi + 0x7ffffefe]
test rax, rax
je 0x10043bc92
movzx eax, word [rcx + rbx]
test ax, ax
je 0x10043bc92
mov word [rbx], ax
add rbx, 2
sub rdi, 1
jne 0x10043bc70
test rdi, rdi
lea rax, [rbx - 2]
cmovne rax, rbx
mov word [rax], r14w
mov rcx, qword [rbp + 0x4d0]
xor rcx, rsp
call fcn.100469360
lea r11, [rsp + 0x5e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret