Function at 0x1800033e0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov rbx, rdx
xor edi, edi
mov dword [rsp + 0x20], edi
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x64]
call fcn.18004b570
mov dword [rsp + 0x60], 0x11c
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 7
mov word [rbx], di
lea r8d, [rdi + 0x18]
lea rdx, str.unknown_OperatingSystem.
mov rcx, rbx
call fcn.180027e40
mov dword [rsp + 0x20], 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1800036a4
mov eax, dword [rsp + 0x64]
sub eax, 4
je 0x18000364d
sub eax, 1
je 0x1800035b5
sub eax, 1
je 0x1800034e5
cmp eax, 4
jne 0x1800036a4
cmp dword [rsp + 0x68], edi
jne 0x1800036a4
mov rcx, rbx
cmp byte [rbp + 0x7a], 1
jne 0x1800034d3
lea rdx, str.Microsoft_Windows_10
jmp 0x180003699
mov r8d, gethostbyname
lea rdx, str.Microsoft_Windows_Server_2016_Technical_Preview
jmp 0x18000369f
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x180003588
sub eax, 1
je 0x18000355b
sub eax, 1
je 0x18000352e
cmp eax, 1
jne 0x1800036a4
mov rcx, rbx
cmp byte [rbp + 0x7a], al
jne 0x18000351c
lea r8d, [rax + 0x14]
lea rdx, str.Microsoft_Windows_8.1
jmp 0x18000369f
mov r8d, 0x20
lea rdx, str.Microsoft_Windows_Server_2012_R2
jmp 0x18000369f
mov rcx, rbx
cmp byte [rbp + 0x7a], 1
jne 0x180003549
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Microsoft_Windows_8
jmp 0x18000369f
mov r8d, 0x1d
lea rdx, str.Microsoft_Windows_Server_2012
jmp 0x18000369f
mov rcx, rbx
cmp byte [rbp + 0x7a], 1
jne 0x180003576
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Microsoft_Windows_7
jmp 0x18000369f
mov r8d, 0x20
lea rdx, str.Microsoft_Windows_Server_2008_R2
jmp 0x18000369f
mov rcx, rbx
cmp byte [rbp + 0x7a], 1
jne 0x1800035a3
mov r8d, reloc.WS2_32.dll_socket
lea rdx, str.Microsoft_Windows_Vista
jmp 0x18000369f
mov r8d, 0x1d
lea rdx, str.Microsoft_Windows_Server_2008
jmp 0x18000369f
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x18000363b
sub eax, 1
je 0x180003632
cmp eax, 1
jne 0x1800036a4
cmp byte [rbp + 0x7a], al
jne 0x1800035eb
cmp word [rsp + 0x28], 9
jne 0x1800035eb
lea r8d, [rax + 0x2c]
lea rdx, str.Microsoft_Windows_XP_Professional_x64_Edition
mov rcx, rbx
jmp 0x18000369f
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x18000360d
lea r8d, [rax + 0x1d]
lea rdx, str.Microsoft_Windows_Server_2003
mov rcx, rbx
jmp 0x18000369f
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1800036a4
mov r8d, 0x20
lea rdx, str.Microsoft_Windows_Server_2003_R2
mov rcx, rbx
jmp 0x18000369f
lea rdx, str.Microsoft_Windows_XP
jmp 0x180003696
mov r8d, reloc.WS2_32.dll_shutdown
lea rdx, str.Microsoft_Windows_2000
mov rcx, rbx
jmp 0x18000369f
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x180003671
cmp eax, 0xa
je 0x180003668
cmp eax, 0x5a
jne 0x1800036a4
lea rdx, str.Microsoft_Windows_Me
jmp 0x180003696
lea rdx, str.Microsoft_Windows_98
jmp 0x180003696
mov eax, dword [rsp + 0x70]
cmp eax, 2
jne 0x18000368a
lea r8d, [rax + 0x16]
lea rdx, str.Microsoft_Windows_NT_4.0
mov rcx, rbx
jmp 0x18000369f
cmp eax, 1
jne 0x1800036a4
lea rdx, str.Microsoft_Windows_95
mov rcx, rbx
mov r8d, reloc.WS2_32.dll_sendto
call fcn.180027e40
mov rax, rbx
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret