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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
xor ebx, ebx
mov edx, 0xeb
lea rcx, [rbp - 0x21]
call fcn.1400111e0
mov rdi, rax
mov rsi, qword [rax + 0x10]
mov rcx, rax
call fcn.140042b10
test al, al
je 0x1400203c3
xor ecx, ecx
jmp 0x1400203d5
mov rax, qword [rdi + 8]
lea rcx, [0x14025ad40]
test rax, rax
cmovne rcx, rax
mov qword [rbp - 0x69], rsi
mov qword [rbp - 0x61], rcx
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x39]
call fcn.14008d7e0
nop
mov esi, 0xffffffff
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14002040e
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14002040e
mov rcx, qword [rbp - 0x21]
call fcn.1402275a0
nop
lea rcx, [rbp - 0x39]
call fcn.140094620
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r12, rax
mov rdx, qword [rbp - 0x39]
test rdx, rdx
je 0x140020440
mov ecx, esi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x140020440
mov rcx, qword [rbp - 0x39]
call fcn.1402275a0
mov rcx, r12
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov r14, rax
mov qword [rbp + 0x67], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rbp - 0x79], rax
mov edx, 0x207
lea rcx, [rbp - 9]
call fcn.1400111e0
mov rdi, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x14002047e
mov ecx, dword [rcx]
cmp ecx, 1
jle 0x140020490
mov r8d, 1
mov rdx, qword [rax + 0x10]
mov rcx, rdi
call fcn.14003f690
mov r13, qword [rdi + 8]
mov qword [rbp + 0x6f], r13
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x1400204b5
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400204b5
mov rcx, qword [rbp - 9]
call fcn.1402275a0
lea rax, [rsp + 0x20]
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], 0x18
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov rax, qword [0x140398f48]
mov ecx, dword [rax + 8]
cmp ecx, 6
jne 0x1400204fc
cmp dword [rax + 0xc], 2
jne 0x1400204ed
mov rbx, r12
mov rdi, r14
jmp 0x140020612
mov ecx, dword [rax + 0xc]
cmp ecx, 3
je 0x140020508
xor eax, eax
cmp ecx, 3
jmp 0x140020501
xor eax, eax
cmp ecx, 6
seta al
test eax, eax
je 0x14002056c
mov rbx, r12
mov rdi, r14
mov edx, 0x208
lea rcx, [rbp + 0xf]
call fcn.1400111e0
mov r14, rax
mov rcx, qword [rax]
test rcx, rcx
je 0x14002052e
mov ecx, dword [rcx]
cmp ecx, 1
jle 0x140020540
mov r8d, 1
mov rdx, qword [rax + 0x10]
mov rcx, r14
call fcn.14003f690
mov r13, qword [r14 + 8]
mov rax, qword [rbp + 0xf]
test rax, rax
je 0x14002060e
lock xadd dword [rax], esi
cmp esi, 1
jne 0x14002060e
mov rcx, qword [rbp + 0xf]
call fcn.1402275a0
jmp 0x14002060e
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r15, qword [rcx + 0x18]
add r15, 0x10
mov r14, qword [r15]
cmp r14, r15
je 0x140020602
movabs r13, 0xaabbcc11ffee00
nop dword [rax]
nop word [rax + rax]
lea rsi, [r14]
mov r14, qword [r14]
mov rdi, qword [rsi + 0x30]
test rdi, rdi
je 0x1400205e2
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x1400205e2
movsxd rdx, dword [rdi + 0x3c]
movzx ecx, word [rdx + rdi + 6]
lea eax, [rcx + rcx*4]
lea eax, [rdx + rax*8]
cdqe
cmp qword [rax + rdi + 0x108], r13
jne 0x1400205e2
cmp qword [rax + rdi + 0x118], rdi
je 0x1400205f9
test rbx, rbx
je 0x1400205f5
mov rax, qword [rsi + 0x30]
cmp rbx, rax
jb 0x1400205f9
mov rbx, rax
jmp 0x1400205f9
mov rbx, qword [rsi + 0x30]
cmp r14, r15
jne 0x1400205a0
mov r13, qword [rbp + 0x6f]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rdi, rax
mov r14, qword [rbp + 0x67]
test rbx, rbx
je 0x1400206e6
test rdi, rdi
je 0x1400206e6
test r12, r12
je 0x1400206e6
test r14, r14
je 0x1400206e6
mov edx, dword [rdi + 0xa4]
test edx, edx
je 0x14002064b
mov ecx, dword [rdi + 0xa0]
add rcx, rbx
jmp 0x14002064d
xor ecx, ecx
mov eax, dword [rdi + 0x50]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rbx
mov dword [rbp - 0x79], eax
mov dword [rbp - 0x75], edx
lea r8, [rbp - 0x59]
mov rdx, r13
mov rcx, r12
call fcn.140023d20
test eax, eax
js 0x1400206e6
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbp - 0x49]
add rax, 0xfffffffffffffff0
mov rdx, qword [0x140398f48]
mov r8d, dword [rdx + 8]
cmp r8d, 6
jne 0x1400206a8
mov edx, dword [rdx + 0xc]
cmp edx, 2
je 0x1400206b5
xor ecx, ecx
cmp edx, 2
jmp 0x1400206ae
xor ecx, ecx
cmp r8d, 6
seta cl
test ecx, ecx
je 0x1400206c4
cmp dword [rax + 4], 0x200
jne 0x1400206d3
cmp dword [rax + 0xc], 0
je 0x1400206e8
cmp dword [rax + 4], 0x200
jne 0x1400206d3
cmp dword [rax + 8], 0
je 0x1400206e8
lea r8, [rbp - 0x59]
mov rdx, r13
mov rcx, r12
call fcn.140023d20
test eax, eax
jns 0x140020680
xor eax, eax
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret