Function at 0x140002b94
Capabilities:
Access pe header
Access peb ldr_data
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140346ac0]
xor rax, rsp
mov qword [rbp - 8], rax
xor r13d, r13d
lea rcx, [0x1401359e8]
mov ebx, r13d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r14, [0x1401359fc]
mov rsi, rax
test rax, rax
je 0x140002dba
mov rcx, rax
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
xorps xmm0, xmm0
mov qword [rbp - 0x40], r13
mov r12, rax
mov qword [rbp - 0x38], r13
xor eax, eax
lea ecx, [r13 + 0x18]
mov qword [rbp - 0x48], rcx
lea rdi, [rbp - 0x30]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x10]
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
lea rdx, [rbp - 0x14]
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x18], rax
rep stosb byte [rdi], al
lea ecx, [rax + 0xc]
mov dword [rbp - 0x10], eax
lea rdi, [rbp - 0x18]
rep stosb byte [rdi], al
lea rcx, [rbp - 0x18]
call qword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
cmp dword [rbp - 0x18], 6
jne 0x140002c59
cmp dword [rbp - 0x14], 2
jne 0x140002c59
mov rbx, rsi
mov rcx, r12
jmp 0x140002d26
mov edx, 3
call fcn.1400028d4
test eax, eax
je 0x140002c79
mov rbx, rsi
lea r14, str..mrdata
mov rcx, r12
jmp 0x140002d26
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rdi, qword [rcx + 0x18]
add rdi, 0x10
mov r14, qword [rdi]
cmp r14, rdi
je 0x140002dba
lea r13, [r14]
mov r14, qword [r14]
mov r15, qword [r13 + 0x30]
test r15, r15
je 0x140002cee
mov rcx, r15
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x140002cee
movsxd rdx, dword [r15 + 0x3c]
movzx ecx, word [rdx + r15 + 6]
lea eax, [rcx + rcx*4]
lea ecx, [rdx + rax*8]
movabs rax, 0xaabbcc11ffee00
movsxd rcx, ecx
add rcx, 0x108
add rcx, r15
cmp qword [rcx], rax
jne 0x140002cee
cmp qword [rcx + 0x10], r15
jne 0x140002cee
test rcx, rcx
jne 0x140002d02
test rbx, rbx
je 0x140002cfe
cmp qword [r13 + 0x30], rbx
cmovb rbx, qword [r13 + 0x30]
jmp 0x140002d02
mov rbx, qword [r13 + 0x30]
cmp r14, rdi
jne 0x140002c9a
xor r13d, r13d
test rbx, rbx
je 0x140002dba
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rcx, rax
lea r14, [0x1401359fc]
test rcx, rcx
je 0x140002dba
test r12, r12
je 0x140002dba
cmp dword [rcx + 0xa4], r13d
je 0x140002d50
mov eax, dword [rcx + 0xa0]
add rax, rbx
mov qword [rbp - 0x30], rax
jmp 0x140002d54
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], rbx
lea r8, [rbp - 0x50]
mov eax, dword [rcx + 0x50]
mov rdx, r14
mov dword [rbp - 0x20], eax
mov eax, dword [rcx + 0xa4]
mov rcx, rsi
mov dword [rbp - 0x1c], eax
call fcn.140002954
test eax, eax
js 0x140002dba
mov ebx, 0x200
mov rdi, qword [rbp - 0x40]
mov edx, 2
call fcn.1400028d4
test eax, eax
je 0x140002d9c
cmp dword [rdi - 0xc], ebx
jne 0x140002da7
cmp dword [rdi - 4], r13d
je 0x140002de6
cmp dword [rdi - 0xc], ebx
jne 0x140002da7
cmp dword [rdi - 8], r13d
je 0x140002de6
lea r8, [rbp - 0x50]
mov rdx, r14
mov rcx, rsi
call fcn.140002954
test eax, eax
jns 0x140002d7f
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140066f10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rax, [rdi - 0x10]
jmp 0x140002dbc