Function at 0x14007c1e0
Capabilities:
Check os version

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1401222f0]
xor rax, rsp
mov qword [rbp - 0x20], rax
xor sil, sil
mov qword [rsp + 0x50], r9
mov r13, r8
mov r12, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14007c23f
cmp dword [0x140121a88], 0xffffffff
je 0x14007c238
mov rcx, qword [0x14013ed60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x140121a88], 0xffffffff
xor al, al
jmp 0x14007c4ad
mov ecx, dword [0x140121a88]
cmp rcx, qword [rbx + 8]
je 0x14007c28b
cmp ecx, 0xffffffff
je 0x14007c267
mov rcx, qword [0x14013ed60]
mov dword [0x140121a88], 0xffffffff
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rbx + 8]
xor edx, edx
lea ecx, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x14013ed60], rax
test rax, rax
je 0x14007c238
mov eax, dword [rbx + 8]
mov dword [0x140121a88], eax
mov qword [rsp + 0x108], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [0x14013ed60]
xor edi, edi
lea r9, [rsp + 0x48]
mov dword [rsp + 0x30], edi
mov r8, rax
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14007c4a5
mov ecx, 0x408
mov qword [rsp + 0xf8], r15
call fcn.1400a82f0
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [0x140120a98]
mov dword [rsp + 0x78], eax
mov rax, qword [rbx]
mov qword [rsp + 0x38], rdi
mov qword [rbp - 0x80], rax
mov rax, qword [rsp + 0x48]
lea r8, [rsp + 0x78]
mov qword [rbp - 0x70], rax
lea rax, [rsp + 0x40]
mov r9d, 0x20
mov qword [rsp + 0x30], rax
mov edx, 0x83350048
mov dword [rsp + 0x28], 0x408
mov qword [rsp + 0x20], r15
mov byte [rbp - 0x78], dil
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14007c486
lea rdx, str.DeviceTcp
lea rcx, [r15 + 4]
mov qword [rsp + 0x100], r14
call fcn.1400a9bbc
test eax, eax
je 0x14007c370
lea rdx, str.DeviceUdp
lea rcx, [r15 + 4]
call fcn.1400a9bbc
test eax, eax
jne 0x14007c47e
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x14007c3b6
mov rcx, qword [0x140120a98]
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov r9d, 8
mov r8, rbx
mov edx, 0x83350020
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x14007c3cf
mov eax, dword [rsp + 0x44]
dec eax
cmp eax, 1
ja 0x14007c47e
xor eax, eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x48]
lea r8, [rbp - 0x68]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x58]
mov r9d, 0x28
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rdi
mov edx, 0x210012
mov dword [rsp + 0x28], 0x1a
mov dword [rbp - 0x4c], 3
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14007c470
lea rdx, str.DeviceTcp
lea rcx, [r15 + 4]
call fcn.1400a9bbc
mov rcx, qword [rsp + 0x50]
mov sil, 1
test eax, eax
movzx eax, word [rbp - 0x34]
setne dil
mov dword [r12], edi
mov dword [rcx], eax
mov eax, dword [rbp - 0x32]
mov dword [r13], eax
jmp 0x14007c473
xor sil, sil
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x100]
mov rcx, r15
call fcn.1400a82b0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0xf8]
movzx eax, sil
mov rdi, qword [rsp + 0x108]
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.1400ab140
add rsp, 0x110
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret