Function at 0x140021dac
Capabilities:
Check os version
Link many functions at runtime

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x78]
sub rsp, 0x170
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rbp + 0x68], rax
mov dword [rsp + 0x40], 0x114
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x44], 6
jne 0x140021dfb
cmp dword [rsp + 0x48], 1
jae 0x140021e01
cmp dword [rsp + 0x44], 6
jbe 0x1400221ca
lea rcx, str.kernelbase.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
xor edi, edi
test rax, rax
sete dil
test rax, rax
jne 0x140021e35
call fcn.140045d28
mov eax, edi
or eax, 0x80070000
test edi, edi
cmove eax, edi
jmp 0x14002255a
lea rdx, [0x14005cad0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140021e68
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140021e1f
lea rdx, [0x14005cad0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140021e1f
mov qword [0x14006a208], rax
lea rdx, [0x14005cae0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140021e1f
mov qword [0x14006a260], rax
lea rdx, [0x14005caf0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140021e1f
mov qword [0x14006a268], rax
lea rdx, [0x14005cb00]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140021e1f
mov qword [0x14006a270], rax
lea rdx, [0x14005cb10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140021e1f
mov qword [0x14006a278], rax
lea rdx, [0x14005cb20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140021e1f
mov qword [0x14006a280], rax
lea rdx, [0x14005cb38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140021e1f
mov qword [0x14006a288], rax
lea rdx, [0x14005cb50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140021e1f
mov qword [0x14006a2a0], rax
lea rdx, [0x14005cca0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140021e1f
mov qword [0x14006a2a8], rax
lea rdx, [0x14005cb60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14006a2c0]
test rax, rax
cmovne rcx, rax
mov qword [0x14006a2c0], rcx
lea rdx, [0x14005cb78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14006a2c8]
test rax, rax
cmovne rcx, rax
mov qword [0x14006a2c8], rcx
lea rdx, [0x14005cb90]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140021e1f
mov qword [0x14006a2d0], rax
lea rdx, [0x14005cba0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140021e1f
mov qword [0x14006a2d8], rax
lea rdx, [0x14005cbb0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140021e1f
mov qword [0x14006a2b0], rax
lea rdx, [0x14005cbc0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140021e1f
mov qword [0x14006a2b8], rax
lea rdx, [0x14005cbd0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140021e1f
mov qword [0x14006a2e0], rax
lea rdx, [0x14005cbe0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140021e1f
mov qword [0x14006a2e8], rax
lea rdx, [0x14005cbf0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140021e1f
mov qword [0x14006a2f0], rax
lea rdx, [0x14005cc00]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140021e1f
mov qword [0x14006a2f8], rax
lea rdx, [0x14005cc10]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140021e1f
mov qword [0x14006a300], rax
lea rdx, [0x14005cc28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
test rax, rax
sete bl
test rax, rax
jne 0x1400221c3
call fcn.140045d28
mov eax, ebx
or eax, 0x80070000
test ebx, ebx
cmove eax, ebx
jmp 0x14002255a
mov qword [0x14006a308], rax
call fcn.140045e24
mov ecx, eax
test eax, eax
je 0x1400221e7
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x14002255a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapLock]
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x20]
call fcn.140021c48
mov edi, eax
test eax, eax
je 0x140022233
call fcn.140045d28
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
mov rdi, qword [rsp + 0x20]
jmp 0x140022520
lea rdx, [0x1400203fc]
lea rcx, [0x14006a208]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [0x140020640]
lea rcx, [0x14006a260]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [0x140020884]
lea rcx, [0x14006a268]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [fcn.14002096c]
lea rcx, [0x14006a270]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [0x140020c78]
lea rcx, [0x14006a278]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [0x140020d48]
lea rcx, [0x14006a280]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [0x140020de4]
lea rcx, [0x14006a288]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [0x140020e80]
lea rcx, [0x14006a290]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [fcn.140020f44]
lea rcx, [0x14006a298]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [0x140021024]
lea rcx, [0x14006a2a0]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [fcn.140021104]
lea rcx, [0x14006a2a8]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [0x1400211e8]
lea rcx, [0x14006a2c0]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [fcn.140021344]
lea rcx, [0x14006a2c8]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [0x140021424]
lea rcx, [0x14006a2d0]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [fcn.1400214e8]
lea rcx, [0x14006a2d8]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [0x1400215c8]
lea rcx, [0x14006a2b0]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [0x140021620]
lea rcx, [0x14006a2b8]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [0x140021678]
lea rcx, [0x14006a2e0]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [0x140021750]
lea rcx, [0x14006a2e8]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [0x140021828]
lea rcx, [0x14006a2f0]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [0x140021900]
lea rcx, [0x14006a2f8]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [0x1400219d8]
lea rcx, [0x14006a300]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [0x140021b10]
lea rcx, [0x14006a308]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [0x140020d48]
lea rcx, [0x14006a280]
call fcn.1400457e8
test eax, eax
jne 0x1400224be
lea rdx, [0x140020de4]
lea rcx, [0x14006a288]
call fcn.1400457e8
test eax, eax
je 0x1400224d3
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
call fcn.140045d28
jmp 0x1400224fa
call fcn.140045eb4
test eax, eax
je 0x1400224ec
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x38]
call fcn.140045ebc
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x20]
cmp rdi, rsi
je 0x140022520
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 8
cmp rdi, rsi
jne 0x140022509
mov rdi, qword [rsp + 0x20]
test rdi, rdi
je 0x140022548
mov rdx, qword [rsp + 0x30]
sub rdx, rdi
and rdx, 0xfffffffffffffff8
mov rcx, rdi
call fcn.14000dfbc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
and qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapUnlock]
nop
mov eax, ebx
mov rcx, qword [rbp + 0x68]
xor rcx, rsp
call fcn.140024670
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret