Function at 0x140034d80
Capabilities:
Check os version

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x480]
sub rsp, 0x580
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x5d8], rbx
mov rax, qword [0x14004f018]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov r13, r8
cmp qword [rdx + 0x10], 0
jne 0x140034dce
xor al, al
jmp 0x140035280
mov r8, rdx
lea rdx, [rsp + 0x30]
call fcn.1400352c0
nop
xor esi, esi
cmp qword [rsp + 0x40], rsi
jne 0x140034dec
xor bl, bl
jmp 0x140035225
lea rcx, [rsp + 0x20]
call fcn.140005ea0
nop
call fcn.1400358a0
mov ecx, 1
mov r8d, 2
test al, al
cmovne r8d, ecx
lea rcx, [rsp + 0x30]
call fcn.140002a6c
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140035218
mov rbx, qword [rsp + 0x20]
test rbx, rbx
je 0x140034e4c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
cmovne rbx, rsi
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x20], rdi
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov r9d, 0x1ff
lea r8, [rbp + 0x70]
mov edx, 0x2328
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadStringW]
dec eax
cmp eax, 0x1fe
ja 0x140035218
call fcn.1400033a0
mov rdi, qword [rax]
mov dword [rsp + 0x50], 0x114
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x54]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140035070
cmp dword [rsp + 0x54], 5
ja 0x140034ed4
jne 0x140035070
cmp dword [rsp + 0x58], 0
jbe 0x140035070
lea rcx, [rsp + 0x30]
call fcn.140002a6c
mov rcx, rax
xor edx, edx
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x140035218
mov rcx, qword [rdi]
test rcx, rcx
je 0x140034f07
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rdi], rbx
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
je 0x140035207
lea r12, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r12, qword [rsp + 0x30]
mov r15, qword [rsp + 0x40]
mov r14, qword [rdi + 0x18]
cmp r15, r14
ja 0x140034f69
mov rsi, rdi
cmp r14, 8
jb 0x140034f47
mov rsi, qword [rdi]
mov qword [rdi + 0x10], r15
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_memmove]
xor eax, eax
mov word [rbx + rsi], ax
jmp 0x140035205
movabs rbx, 0x7ffffffffffffffe
cmp r15, rbx
ja 0x1400352b0
mov rcx, r15
or rcx, 7
cmp rcx, rbx
ja 0x140034fa7
mov rdx, r14
shr rdx, 1
mov rax, rbx
sub rax, rdx
cmp r14, rax
ja 0x140034fa7
lea rax, [rdx + r14]
mov rbx, rcx
cmp rcx, rax
cmovb rbx, rax
lea rax, [rbx + 1]
lea rdx, [rax + rax]
movabs rcx, 0x7fffffffffffffff
mov r8, 0xffffffffffffffff
cmp rax, rcx
jbe 0x140034fca
mov rdx, r8
jmp 0x140034fd3
cmp rdx, 0x1000
jb 0x140034ffd
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r8
call fcn.140025ae4
test rax, rax
je 0x140034ff6
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x14003500d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rdx, rdx
je 0x14003500d
mov rcx, rdx
call fcn.140025ae4
mov rsi, rax
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], rbx
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
xor eax, eax
mov word [rsi + rbx], ax
cmp r14, 8
jb 0x140035202
mov rcx, qword [rdi]
lea rdx, [r14*2 + 2]
cmp rdx, 0x1000
jb 0x1400351fd
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x1400351fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rcx, [rsp + 0x30]
call fcn.140002a6c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140035218
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003509d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rdi], rbx
add rdi, 8
lea rax, [rsp + 0x30]
cmp rdi, rax
je 0x140035207
lea r12, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae r12, qword [rsp + 0x30]
mov r15, qword [rsp + 0x40]
mov r14, qword [rdi + 0x18]
cmp r15, r14
ja 0x1400350ff
mov rsi, rdi
cmp r14, 8
jb 0x1400350dd
mov rsi, qword [rdi]
mov qword [rdi + 0x10], r15
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_memmove]
xor eax, eax
mov word [rsi + rbx], ax
jmp 0x140035205
movabs rbx, 0x7ffffffffffffffe
cmp r15, rbx
ja 0x1400352aa
mov rcx, r15
or rcx, 7
cmp rcx, rbx
ja 0x14003513d
mov rdx, r14
shr rdx, 1
mov rax, rbx
sub rax, rdx
cmp r14, rax
ja 0x14003513d
lea rax, [r14 + rdx]
mov rbx, rcx
cmp rcx, rax
cmovb rbx, rax
lea rax, [rbx + 1]
lea rdx, [rax + rax]
movabs rcx, 0x7fffffffffffffff
mov r8, 0xffffffffffffffff
cmp rax, rcx
jbe 0x140035160
mov rdx, r8
jmp 0x140035169
cmp rdx, 0x1000
jb 0x140035193
lea rcx, [rdx + 0x27]
cmp rcx, rdx
cmovbe rcx, r8
call fcn.140025ae4
test rax, rax
je 0x14003518c
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400351a3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rdx, rdx
je 0x1400351a3
mov rcx, rdx
call fcn.140025ae4
mov rsi, rax
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], rbx
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
xor eax, eax
mov word [rsi + rbx], ax
cmp r14, 8
jb 0x140035202
mov rcx, qword [rdi]
lea rdx, [r14*2 + 2]
cmp rdx, 0x1000
jb 0x1400351fd
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x1400351fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140025dd4
mov qword [rdi], rsi
xor esi, esi
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.140002afc
mov bl, 1
jmp 0x14003521a
xor bl, bl
lea rcx, [rsp + 0x20]
call fcn.140005eb0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14003526a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140035265
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140035265
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140025dd4
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
movzx eax, bl
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.140025ac0
mov rbx, qword [rsp + 0x5d8]
add rsp, 0x580
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140003280
nop
call fcn.140003280
int3