Function at 0x140058de0
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0xe8]
sub rsp, 0x1d0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1403ad830]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rdi, rdx
mov r14, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
cmp qword [rcx], rsi
je 0x140058e2f
xor eax, eax
jmp 0x140059084
mov ebx, 1
cmp qword [0x1403b1c80], rsi
jne 0x140058eb6
cmp byte [0x1403b1c88], sil
jne 0x140058ea1
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp - 0x5c]
call fcn.140285450
mov dword [rbp - 0x60], 0x11c
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x140058e81
mov dword [rbp - 0x60], 0x114
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140058e9b
cmp dword [rbp - 0x5c], 6
jb 0x140058e9b
movzx eax, byte [0x1403b1c89]
cmp dword [rbp - 0x58], 2
cmovae eax, ebx
mov byte [0x1403b1c89], al
mov byte [0x1403b1c88], bl
cmp byte [0x1403b1c89], sil
je 0x140058eb6
lea rcx, [0x1403b1c80]
call fcn.1400584e0
mov edx, ebx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
xor r9d, r9d
mov r8, qword [0x1403b1c80]
mov edx, ebx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [rsp + 0x38], reloc.ODBC32.dll_SQLAllocHandle
mov dword [rsp + 0x48], esi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rsi, [rdi + 0x10]
mov rdx, qword [rsi]
test rdx, rdx
jne 0x140058f12
xor r8d, r8d
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [r14], rax
jmp 0x140059078
movdqa xmm0, xmmword [0x1402d0510]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
mov dword [rsp + 0x30], ebx
add rdx, 7
lea rcx, [rbp - 0x80]
call fcn.140029490
mov rcx, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x68]
mov rax, rdx
sub rax, rcx
cmp rax, 7
jb 0x140058f7b
lea rax, [rcx + 7]
mov qword [rbp - 0x70], rax
lea rbx, [rbp - 0x80]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x80]
add rbx, rcx
mov r8d, 7
lea rdx, [0x1402d5500]
mov rcx, rbx
call fcn.140284ff0
mov byte [rbx + 7], 0
jmp 0x140058f9b
mov qword [rsp + 0x20], 7
lea r9, [0x1402d5500]
xor r8d, r8d
lea edx, [r8 + 7]
lea rcx, [rbp - 0x80]
call fcn.14001b7c0
cmp qword [rdi + 0x18], 0x10
jb 0x140058fa5
mov rdi, qword [rdi]
mov rsi, qword [rsi]
mov rcx, qword [rbp - 0x70]
mov rdx, qword [rbp - 0x68]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x140058fe7
lea rax, [rcx + rsi]
mov qword [rbp - 0x70], rax
lea rbx, [rbp - 0x80]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x80]
add rbx, rcx
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call fcn.140284ff0
mov byte [rbx + rsi], 0
jmp 0x140058ffe
mov qword [rsp + 0x20], rsi
mov r9, rdi
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.14001b7c0
lea r8, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae r8, qword [rbp - 0x80]
xor edx, edx
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [r14], rax
lea rcx, [r14 + 0x10]
lea rax, [rbp - 0x80]
cmp rcx, rax
je 0x140059041
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rdx, qword [rbp - 0x80]
mov r8, qword [rbp - 0x70]
call fcn.140004c40
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140059078
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140059073
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400590ab
call fcn.140283144
mov rax, qword [r14]
neg rax
sbb eax, eax
neg eax
dec eax
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140283120
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140287d84
int3