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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rbx, rdx
test rdx, rdx
je 0x1401937ad
lea rdx, str._ALL_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1401937a6
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, 0x98
call fcn.140249b10
xor eax, eax
mov dword [rsp + 0x70], 0x9c
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1401937ad
lea rcx, [0x14028b028]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.GetNativeSystemInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x40]
test rax, rax
je 0x1401934ba
call rax
jmp 0x1401934c0
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140193597
lea rcx, [rbp + 0x10]
mov dword [rbp + 0x10], 0x11c
call rax
mov eax, dword [rbp + 0x20]
lea rcx, [rbp + 0x24]
mov dword [rbp - 0x80], eax
mov eax, dword [rbp + 0x1c]
mov dword [rsp + 0x7c], eax
mov eax, dword [rbp + 0x14]
mov dword [rsp + 0x74], eax
mov eax, dword [rbp + 0x18]
mov dword [rsp + 0x78], eax
movzx eax, byte [rbp + 0x12a]
mov byte [rbp + 0xa], al
movzx eax, byte [rbp + 0x12b]
mov byte [rbp + 0xb], al
movzx eax, word [rbp + 0x124]
mov word [rbp + 4], ax
movzx eax, word [rbp + 0x126]
mov word [rbp + 6], ax
movzx eax, word [rbp + 0x128]
mov word [rbp + 8], ax
mov rax, 0xffffffffffffffff
nop
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140193550
lea rcx, [rbp + 0x158]
xor edx, edx
mov qword [rsp + 0x38], rcx
lea r9d, [rax + 1]
lea rcx, [0x1402860c8]
mov qword [rsp + 0x30], rcx
lea r8, [rbp + 0x24]
lea rcx, [rbp - 0x7c]
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp word [rsp + 0x40], 9
mov rcx, rbx
jne 0x1401935c0
lea rdx, str._WIN64_
mov edi, 1
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
je 0x1401935d8
mov eax, edi
jmp 0x1401937af
lea rdx, str._WIN32_
xor edi, edi
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1401937a6
mov eax, dword [rsp + 0x74]
cmp eax, 6
jne 0x1401935ec
mov eax, dword [rsp + 0x78]
cmp eax, 4
je 0x1401935fc
jmp 0x14019364c
cmp eax, 0xa
jne 0x14019363f
cmp dword [rsp + 0x78], 0
jne 0x1401937ad
lea rdx, str._WIN10_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1401937a6
lea rax, str._WIN1064_
test edi, edi
lea rdx, str._WIN1032_
mov rcx, rbx
cmovne rdx, rax
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1401937a6
mov eax, dword [rsp + 0x74]
cmp eax, 6
jne 0x140193751
mov eax, dword [rsp + 0x78]
lea r14, str._WIN864_
lea rsi, str._WIN832_
cmp eax, 3
jne 0x1401936a4
lea rdx, str._WIN8_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1401937a6
test edi, edi
mov rdx, rsi
mov rcx, rbx
cmovne rdx, r14
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1401937a6
mov eax, dword [rsp + 0x74]
cmp eax, 6
jne 0x140193751
mov eax, dword [rsp + 0x78]
cmp eax, 2
jne 0x1401936ea
lea rdx, str._WIN8_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1401937a6
test edi, edi
mov rcx, rbx
cmovne rsi, r14
mov rdx, rsi
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1401937a6
mov eax, dword [rsp + 0x74]
cmp eax, 6
jne 0x140193751
mov eax, dword [rsp + 0x78]
cmp eax, 1
jne 0x14019371e
lea rdx, str._WIN7_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1401937a6
test edi, edi
lea rax, str._WIN764_
lea rdx, str._WIN732_
cmovne rdx, rax
jmp 0x140193798
test eax, eax
jne 0x1401937ad
lea rdx, str._VISTA_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1401937a6
test edi, edi
lea rax, str._VISTA64_
lea rdx, str._VISTA32_
cmovne rdx, rax
jmp 0x140193798
cmp eax, 5
jne 0x1401937ad
mov ecx, dword [rsp + 0x78]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x14019378d
lea rdx, str._WINXP_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x1401937a6
test edi, edi
lea rax, str._WINXP64_
lea rdx, str._WINXP32_
cmovne rdx, rax
jmp 0x140193798
test ecx, ecx
jne 0x1401937ad
lea rdx, str._WIN2K_
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
je 0x1401937ad
mov eax, 1
jmp 0x1401937af
xor eax, eax
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret