Function at 0x140059b68
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 [0x1400922d0]
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 0x140059bb7
cmp dword [rsp + 0x48], 1
jae 0x140059bbd
cmp dword [rsp + 0x44], 6
jbe 0x140059f53
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
xor edi, edi
test rax, rax
sete dil
test rax, rax
jne 0x140059bf1
call fcn.14005e770
mov eax, edi
or eax, 0x80070000
test edi, edi
cmove eax, edi
jmp 0x14005a312
lea rdx, [0x14006d8b8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x140092fd8], rax
lea rdx, [0x14006d908]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x1400923b0], rax
lea rdx, [0x14006d928]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x140093988], rax
lea rdx, [0x14006d918]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x1400923c0], rax
lea rdx, [0x14006d938]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x1400923a0], rax
lea rdx, [0x14006d960]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x1400923f0], rax
lea rdx, [0x14006d948]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x1400923c8], rax
lea rdx, [0x14006d978]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x1400939a0], rax
lea rdx, [0x14006cbc0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x1400924d0], rax
lea rdx, [0x14006da50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x1400939c0], rax
lea rdx, [0x14006da38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x1400939c8], rax
lea rdx, [0x14006d998]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x1400939d0], rax
lea rdx, [0x14006d988]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x1400939d8], rax
lea rdx, [0x14006d9b8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x1400939b0], rax
lea rdx, [0x14006d9a8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x1400924c8], rax
lea rdx, [0x14006d9d8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x140092fc0], rax
lea rdx, [0x14006d9c8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x1400923e0], rax
lea rdx, [0x14006d9f8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x1400939e0], rax
lea rdx, [0x14006d9e8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x1400923d8], rax
lea rdx, [0x14006da20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edi, edi
test rax, rax
sete dil
test rax, rax
je 0x140059bdb
mov qword [0x1400939f0], rax
lea rdx, [0x14006da08]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
test rax, rax
sete bl
test rax, rax
jne 0x140059f4c
call fcn.14005e770
mov eax, ebx
or eax, 0x80070000
test ebx, ebx
cmove eax, ebx
jmp 0x14005a312
mov qword [0x1400923d0], rax
call fcn.140028bec
mov ecx, eax
test eax, eax
je 0x140059f70
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x14005a312
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapLock]
xor eax, eax
mov qword [rsp + 0x38], rax
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x28], xmm1
and qword [rsp + 0x38], rax
lea rcx, [rsp + 0x28]
call fcn.140059a08
mov edi, eax
test eax, eax
je 0x140059fbc
call fcn.14005e770
movzx ebx, di
or ebx, 0x80070000
test edi, edi
cmovle ebx, edi
jmp 0x14005a2a4
lea rdx, [0x14000d1d0]
lea rcx, [0x140092fd8]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [0x140001980]
lea rcx, [0x1400923b0]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [0x1400022f0]
lea rcx, [0x140093988]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [fcn.140001b80]
lea rcx, [0x1400923c0]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [0x140001860]
lea rcx, [0x1400923a0]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [0x140002450]
lea rcx, [0x1400923f0]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [0x140001e80]
lea rcx, [0x1400923c8]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [0x1400590d0]
lea rcx, [0x140093990]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [fcn.1400591a0]
lea rcx, [0x140093998]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [0x140059290]
lea rcx, [0x1400939a0]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [fcn.140006e10]
lea rcx, [0x1400924d0]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [0x140059380]
lea rcx, [0x1400939c0]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [fcn.1400594e0]
lea rcx, [0x1400939c8]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [0x1400595d0]
lea rcx, [0x1400939d0]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [fcn.1400596a0]
lea rcx, [0x1400939d8]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [0x140059790]
lea rcx, [0x1400939b0]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [0x140004640]
lea rcx, [0x1400924c8]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [0x14000ba80]
lea rcx, [0x140092fc0]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [0x140002840]
lea rcx, [0x1400923e0]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [0x1400597f0]
lea rcx, [0x1400939e0]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [0x140002710]
lea rcx, [0x1400923d8]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [0x1400598d0]
lea rcx, [0x1400939f0]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [0x140002580]
lea rcx, [0x1400923d0]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [0x140002450]
lea rcx, [0x1400923f0]
call fcn.140018d24
test eax, eax
jne 0x14005a247
lea rdx, [0x140001e80]
lea rcx, [0x1400923c8]
call fcn.140018d24
test eax, eax
je 0x14005a25c
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
call fcn.14005e770
jmp 0x14005a283
call fcn.140016f60
test eax, eax
je 0x14005a275
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.140016f70
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
cmp rdi, rsi
je 0x14005a2a9
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rdi, 8
cmp rdi, rsi
jne 0x14005a292
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x14005a301
mov rax, qword [rsp + 0x38]
sub rax, rdi
sar rax, 3
lea rdx, [rax*8]
mov rax, rdi
cmp rdx, 0x1000
jb 0x14005a2ea
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005a2ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.140002ef0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
and qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapUnlock]
mov eax, ebx
mov rcx, qword [rbp + 0x68]
xor rcx, rsp
call fcn.140001020
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