Function at 0x1400292e0
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x280
mov qword [rbp + 0xa0], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140045008]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r12, rdx
mov rsi, rcx
mov ecx, 8
mov rax, qword gs:[0x58]
mov r8, qword [rax]
lea rax, [0x14003d428]
mov qword [rcx + r8], rax
lea rcx, [rsp + 0x48]
call fcn.140008d4c
nop
xor r14d, r14d
mov byte [rsp + 0x40], r14b
mov byte [rsp + 0x41], r14b
mov r13d, r14d
mov qword [rbp - 0x70], r14
mov qword [rsp + 0x58], r14
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x80], r14
mov byte [rbp - 0x20], r14b
mov word [rbp], r14w
mov byte [rbp + 2], r14b
mov qword [rbp + 8], r14
mov byte [rbp + 0x10], r14b
mov byte [rbp + 0xb0], r14b
mov word [rbp + 0xd0], r14w
mov byte [rbp + 0xd2], r14b
mov qword [rbp + 0xd8], r14
mov byte [rbp + 0xe0], r14b
mov byte [rbp + 0x40], r14b
mov word [rbp + 0x60], r14w
mov byte [rbp + 0x62], r14b
mov qword [rbp + 0x68], r14
mov byte [rbp + 0x70], r14b
mov byte [rbp - 0x60], r14b
mov word [rbp - 0x40], r14w
mov byte [rbp - 0x3e], r14b
mov qword [rbp - 0x38], r14
mov byte [rbp - 0x30], r14b
mov qword [rsi + 0x210], r14
mov qword [rsi + 0x218], r14
mov qword [rsi + 0x108], r14
mov qword [rsi + 0x110], r14
mov qword [rsi + 0xc0], r14
mov qword [rsi + 0xc8], r14
mov qword [rsp + 0x70], r14
mov byte [rsp + 0x6c], r14b
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetSystemTimeAsFileTime]
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x7c], eax
mov r9d, dword [rsi + 0xb8]
lea ebx, [r14 + 1]
movabs r15, 0x200000000000
cmp r9d, 3
je 0x140029495
mov r8d, 0x80830006
mov edi, r8d
mov dword [rsp + 0x50], r8d
lea r14, [0x140045158]
mov rcx, qword [0x140045158]
mov r12d, ebx
cmp rcx, r14
je 0x140029fa6
test byte [rcx + 0x1c], r12b
je 0x140029fa6
cmp byte [rcx + 0x19], 2
jb 0x140029fa6
lea rax, [rsi + 0x90]
lea edx, [rbx + 9]
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.140027f7c
jmp 0x140029fa6
cmp dword [0x140045020], 5
jbe 0x140029540
test qword [0x140045030], r15
je 0x140029540
mov rax, qword [0x140045038]
and rax, r15
cmp rax, qword [0x140045038]
jne 0x140029540
movzx eax, word [rsi + 0xb8]
mov word [rsp + 0x42], ax
lea rax, [rsp + 0x42]
mov qword [rbp + 0x140], rax
mov qword [rbp + 0x148], 2
lea rax, [rbp + 0x168]
mov qword [rbp + 0x150], rax
mov qword [rbp + 0x158], 2
movzx ecx, word [rsi + 0x2a0]
mov rax, qword [rsi + 0x2a8]
mov qword [rbp + 0x160], rax
mov dword [rbp + 0x168], ecx
mov dword [rbp + 0x16c], r14d
lea rax, [rbp + 0x120]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
lea rdx, [0x14003f29e]
call fcn.1400010dc
call qword [sym.imp.ntdll.dll_RtlGetThreadErrorMode]
or eax, 0x10
lea rdx, [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlSetThreadErrorMode]
movzx ecx, byte [rsp + 0x6c]
test eax, eax
cmovns ecx, ebx
mov byte [rsp + 0x6c], cl
lea rbx, [rsi + 0x18]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_AcquireSRWLockShared]
cmp byte [rsi + 0x2b9], r14b
jne 0x1400295df
mov edi, 0x80830002
mov dword [rsp + 0x50], edi
lea r14, [0x140045158]
mov rcx, qword [0x140045158]
mov r12d, 1
cmp rcx, r14
je 0x1400295c8
test byte [rcx + 0x1c], r12b
je 0x1400295c8
cmp byte [rcx + 0x19], 2
jb 0x1400295c8
lea edx, [r12 + 0xa]
mov dword [rsp + 0x20], edi
mov r9d, dword [rsi + 0x80]
lea r8, [0x14003d4e0]
mov rcx, qword [rcx + 0x10]
call fcn.1400016d8
test rbx, rbx
je 0x140029fa6
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseSRWLockShared]
jmp 0x140029fa6
mov dword [rbp + 0x120], 0x30
mov qword [rbp + 0x128], r14
lea rax, [rsi + 0x90]
mov qword [rbp + 0x130], rax
mov dword [rbp + 0x138], 0xc0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x140], xmm0
mov dword [rsp + 0x28], 0x21
mov dword [rsp + 0x20], 7
lea r9, [rbp + 0x110]
lea r8, [rbp + 0x120]
mov edx, 0x100080
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtOpenFile]
mov r15d, eax
test rbx, rbx
je 0x140029652
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseSRWLockShared]
test r15d, r15d
jns 0x1400296b9
mov edi, r15d
bts edi, 0x1c
mov dword [rsp + 0x50], edi
lea r14, [0x140045158]
mov rcx, qword [0x140045158]
mov r12d, 1
cmp rcx, r14
je 0x140029f9c
test byte [rcx + 0x1c], r12b
je 0x140029f9c
cmp byte [rcx + 0x19], 2
jb 0x140029f9c
lea edx, [r12 + 0xb]
mov dword [rsp + 0x20], r15d
lea r9, [rsi + 0x90]
lea r8, [0x14003d4e0]
mov rcx, qword [rcx + 0x10]
call fcn.140009248
jmp 0x140029f9c
lea r15, [rsi + 0x458]
mov rdx, r15
lea rcx, [rbp - 0x20]
call fcn.14001625c
mov edi, eax
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x140029719
lea r14, [0x140045158]
mov rcx, qword [0x140045158]
mov r12d, 1
cmp rcx, r14
je 0x140029f9c
test byte [rcx + 0x1c], r12b
je 0x140029f9c
cmp byte [rcx + 0x19], 2
jb 0x140029f9c
lea edx, [r12 + 0xc]
lea r9, [rsi + 0x288]
mov dword [rsp + 0x20], eax
jmp 0x1400296a4
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.1400162f8
mov edi, eax
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x140029784
lea r14, [0x140045158]
mov rcx, qword [0x140045158]
mov r12d, 1
cmp rcx, r14
je 0x140029773
test byte [rcx + 0x1c], r12b
je 0x140029773
cmp byte [rcx + 0x19], 2
jb 0x140029773
lea r9, [rsi + 0x288]
lea edx, [r12 + 0xd]
mov dword [rsp + 0x20], eax
lea r8, [0x14003d4e0]
mov rcx, qword [rcx + 0x10]
call fcn.140009248
mov dl, r12b
lea rcx, [rbp - 0x20]
call fcn.140017988
jmp 0x140029f9c
cmp qword [rsi + 0x60], r14
je 0x140029f52
cmp qword [rsi + 0x118], r14
je 0x140029f52
cmp qword [rsi + 0x120], r14
je 0x140029f52
cmp byte [rsi + 0xa3], r14b
jne 0x14002993a
lea r14, [0x140045158]
mov rcx, qword [0x140045158]
cmp rcx, r14
je 0x1400297f0
test byte [rcx + 0x1c], 1
je 0x1400297f0
cmp byte [rcx + 0x19], 4
jb 0x1400297f0
lea r9, [rsi + 0x288]
mov edx, 0x10
lea r8, [0x14003d4e0]
mov rcx, qword [rcx + 0x10]
call fcn.14000a67c
xor edx, edx
mov rcx, rsi
call fcn.140012384
mov edi, eax
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x14002984f
mov rcx, qword [0x140045158]
mov r12d, 1
cmp rcx, r14
je 0x140029f9c
test byte [rcx + 0x1c], r12b
je 0x140029f9c
cmp byte [rcx + 0x19], 4
jb 0x140029f9c
lea r9, [rsi + 0x288]
lea edx, [r12 + 0x10]
lea r8, [0x14003d4e0]
mov rcx, qword [rcx + 0x10]
call fcn.14000a67c
jmp 0x140029f9c
lea r9, [rsp + 0x41]
mov r8, r12
lea rdx, [rbp - 0x20]
mov rcx, qword [rbp + 8]
call fcn.1400310a0
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x14002988b
mov rcx, qword [0x140045158]
cmp rcx, r14
je 0x1400298c3
test byte [rcx + 0x1c], 1
je 0x1400298c3
cmp byte [rcx + 0x19], 2
jb 0x1400298c3
mov edx, 0x12
jmp 0x1400298a8
mov rcx, qword [0x140045158]
cmp rcx, r14
je 0x1400298c3
test byte [rcx + 0x1c], 1
je 0x1400298c3
cmp byte [rcx + 0x19], 2
jb 0x1400298c3
mov edx, 0x13
mov dword [rsp + 0x20], eax
mov r9d, dword [rsi + 0x80]
lea r8, [0x14003d4e0]
mov rcx, qword [rcx + 0x10]
call fcn.1400016d8
cmp byte [r12], 0
jne 0x140029932
mov dl, 1
mov rcx, rsi
call fcn.14000c684
mov edi, eax
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x14002992d
mov rcx, qword [0x140045158]
mov r12d, 1
cmp rcx, r14
je 0x140029773
test byte [rcx + 0x1c], r12b
je 0x140029773
cmp byte [rcx + 0x19], 2
jb 0x140029773
lea edx, [r12 + 0x13]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsi + 0x80]
lea r8, [0x14003d4e0]
mov rcx, qword [rcx + 0x10]
call fcn.1400016d8
jmp 0x140029773
mov byte [r12], 1
mov r12d, 1
jmp 0x14002997b
lea r14, [0x140045158]
mov rcx, qword [0x140045158]
mov r12d, 1
cmp rcx, r14
je 0x140029982
test byte [rcx + 0x1c], r12b
je 0x140029982
cmp byte [rcx + 0x19], 4
jb 0x140029982
lea r9, [rsi + 0x288]
lea edx, [r12 + 0x14]
lea r8, [0x14003d4e0]
mov rcx, qword [rcx + 0x10]
call fcn.14000a67c
cmp byte [rsp + 0x41], 0
jne 0x14002998e
mov dl, r12b
lea rcx, [rbp - 0x20]
call fcn.140017988
mov rdx, r15
lea rcx, [rbp + 0x40]
call fcn.14001625c
mov edi, eax
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x1400299d2
mov rcx, qword [0x140045158]
cmp rcx, r14
je 0x140029f9c
test byte [rcx + 0x1c], r12b
je 0x140029f9c
cmp byte [rcx + 0x19], 2
jb 0x140029f9c
mov edx, 0x16
jmp 0x14002970c
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.1400162f8
mov edi, eax
mov dword [rsp + 0x50], eax
xor eax, eax
test edi, edi
jns 0x140029a20
mov rcx, qword [0x140045158]
cmp rcx, r14
je 0x140029f9c
test byte [rcx + 0x1c], r12b
je 0x140029f9c
cmp byte [rcx + 0x19], 2
jb 0x140029f9c
lea r9, [rsi + 0x288]
lea edx, [rax + 0x17]
mov dword [rsp + 0x20], edi
jmp 0x1400296a4
mov dword [rsi + 0x138], eax
cmp qword [rsi + 0x118], rax
ja 0x140029a6d
cmp qword [rsi + 0x120], rax
ja 0x140029a6d
mov rcx, qword [0x140045158]
cmp rcx, r14
je 0x140029f93
test byte [rcx + 0x1c], r12b
je 0x140029f93
cmp byte [rcx + 0x19], 3
jb 0x140029f93
lea r9, [rsi + 0x288]
mov edx, 0x18
jmp 0x140029f83
lea rdx, [rsi + 0x4f8]
lea rcx, [rbp - 0x60]
call fcn.14001625c
mov edi, eax
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x140029ab5
mov rcx, qword [0x140045158]
cmp rcx, r14
je 0x140029f9c
test byte [rcx + 0x1c], r12b
je 0x140029f9c
cmp byte [rcx + 0x19], 2
jb 0x140029f9c
mov edx, 0x19
jmp 0x14002970c
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.1400162f8
mov edi, eax
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x140029af8
mov rcx, qword [0x140045158]
cmp rcx, r14
je 0x140029f9c
test byte [rcx + 0x1c], r12b
je 0x140029f9c
cmp byte [rcx + 0x19], 2
jb 0x140029f9c
mov edx, 0x1a
jmp 0x14002970c
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x78]
mov edx, r12d
mov rcx, rsi
call fcn.14002fd74
mov edi, eax
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x140029b43
mov rcx, qword [0x140045158]
cmp rcx, r14
je 0x140029f9c
test byte [rcx + 0x1c], r12b
je 0x140029f9c
cmp byte [rcx + 0x19], 2
jb 0x140029f9c
mov edx, 0x1b
jmp 0x14002970c
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_AcquireSRWLockShared]
mov rcx, qword [rsi + 0x50]
jmp 0x140029b71
xor eax, eax
test rcx, rcx
setne al
test eax, eax
je 0x140029b78
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx]
cmp byte [rdx + 0x24], 0
je 0x140029b71
mov eax, dword [rdx + 0x20]
add r13, rax
test rcx, rcx
jne 0x140029b52
jmp 0x140029b83
mov ecx, 0x80004005
call fcn.140003e74
int3
test rbx, rbx
je 0x140029b91
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseSRWLockShared]
mov rcx, qword [0x140045158]
cmp rcx, r14
je 0x140029bc6
test byte [rcx + 0x1c], r12b
je 0x140029bc6
cmp byte [rcx + 0x19], 5
jb 0x140029bc6
lea rax, [rsi + 0x288]
mov edx, 0x1c
mov qword [rsp + 0x20], rax
mov r9, r13
mov rcx, qword [rcx + 0x10]
call fcn.1400285fc
lea rax, [rbp - 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
lea r8, [rbp - 0x60]
mov rdx, qword [rsp + 0x70]
mov rcx, rsi
call fcn.14002a1b8
mov ebx, eax
test eax, eax
jns 0x140029c37
mov rcx, qword [0x140045158]
cmp rcx, r14
je 0x140029c2c
test byte [rcx + 0x1c], r12b
je 0x140029c2c
cmp byte [rcx + 0x19], 2
jb 0x140029c2c
lea r9, [rsi + 0x288]
mov edx, 0x1d
mov dword [rsp + 0x20], eax
lea r8, [0x14003d4e0]
mov rcx, qword [rcx + 0x10]
call fcn.140009248
mov byte [rsp + 0x40], r12b
mov dword [rsi + 0x220], ebx
mov r9d, dword [rsi + 0xb8]
cmp r9d, 3
je 0x140029c9a
mov r8d, 0x80830006
mov edi, r8d
mov dword [rsp + 0x50], r8d
mov rcx, qword [0x140045158]
cmp rcx, r14
je 0x140029f9c
test byte [rcx + 0x1c], r12b
je 0x140029f9c
cmp byte [rcx + 0x19], 2
jb 0x140029f9c
mov edx, 0x1e
mov dword [rsp + 0x28], r8d
lea rax, [rsi + 0x90]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.140027f7c
jmp 0x140029f9c
mov rdx, r15
lea rcx, [rbp + 0xb0]
call fcn.14001625c
mov edi, eax
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x140029ce1
mov rcx, qword [0x140045158]
cmp rcx, r14
je 0x140029f9c
test byte [rcx + 0x1c], r12b
je 0x140029f9c
cmp byte [rcx + 0x19], 2
jb 0x140029f9c
mov edx, 0x1f
jmp 0x14002970c
mov dl, r12b
lea rcx, [rbp + 0xb0]
call fcn.1400162f8
mov edi, eax
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x140029d28
mov rcx, qword [0x140045158]
cmp rcx, r14
je 0x140029f9c
test byte [rcx + 0x1c], r12b
je 0x140029f9c
cmp byte [rcx + 0x19], 2
jb 0x140029f9c
mov edx, 0x20
jmp 0x14002970c
mov rcx, qword [0x140045158]
cmp rcx, r14
je 0x140029d5c
test byte [rcx + 0x1c], r12b
je 0x140029d5c
cmp byte [rcx + 0x19], 4
jb 0x140029d5c
lea r9, [rsi + 0x288]
mov edx, 0x21
lea r8, [0x14003d4e0]
mov rcx, qword [rcx + 0x10]
call fcn.14000a67c
mov dword [rsi + 0xb8], 4
lea r8, [rbp + 0x40]
mov rdx, qword [rsp + 0x70]
mov rcx, rsi
call fcn.14002b244
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x140029dc2
mov byte [rsp + 0x40], r12b
mov dword [rsi + 0x220], eax
mov rcx, qword [0x140045158]
cmp rcx, r14
je 0x140029dc9
test byte [rcx + 0x1c], r12b
je 0x140029dc9
cmp byte [rcx + 0x19], 2
jb 0x140029dc9
lea r9, [rsi + 0x288]
mov edx, 0x22
mov dword [rsp + 0x20], eax
lea r8, [0x14003d4e0]
mov rcx, qword [rcx + 0x10]
call fcn.140009248
mov rcx, qword [0x140045158]
mov r9d, dword [rsi + 0xb8]
cmp r9d, 4
je 0x140029e0b
mov r8d, 0x80830006
mov edi, r8d
mov dword [rsp + 0x50], r8d
cmp rcx, r14
je 0x140029f9c
test byte [rcx + 0x1c], r12b
je 0x140029f9c
cmp byte [rcx + 0x19], 2
jb 0x140029f9c
mov edx, 0x23
jmp 0x140029c7b
cmp rcx, r14
je 0x140029e38
test byte [rcx + 0x1c], r12b
je 0x140029e38
cmp byte [rcx + 0x19], 4
jb 0x140029e38
lea r9, [rsi + 0x288]
mov edx, 0x24
lea r8, [0x14003d4e0]
mov rcx, qword [rcx + 0x10]
call fcn.14000a67c
mov dword [rsi + 0xb8], 5
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9, r13
lea r8, [rbp + 0xb0]
mov rcx, rsi
call fcn.14002c1d0
mov edi, eax
mov dword [rsp + 0x50], eax
test eax, eax
jns 0x140029ec6
mov byte [rsp + 0x40], r12b
mov dword [rsi + 0x220], eax
mov rcx, qword [0x140045158]
cmp rcx, r14
je 0x140029ecd
test byte [rcx + 0x1c], r12b
je 0x140029ecd
cmp byte [rcx + 0x19], 2
jb 0x140029ecd
lea r9, [rsi + 0x288]
mov edx, 0x25
mov dword [rsp + 0x20], eax
lea r8, [0x14003d4e0]
mov rcx, qword [rcx + 0x10]
call fcn.140009248
mov rcx, qword [0x140045158]
mov r9d, dword [rsi + 0xb8]
cmp r9d, 5
je 0x140029f0f
mov r8d, 0x80830006
mov edi, r8d
mov dword [rsp + 0x50], r8d
cmp rcx, r14
je 0x140029f9c
test byte [rcx + 0x1c], r12b
je 0x140029f9c
cmp byte [rcx + 0x19], 2
jb 0x140029f9c
mov edx, 0x26
jmp 0x140029c7b
cmp byte [rsi + 0xa3], 0
je 0x140029f9c
cmp rcx, r14
je 0x140029f49
test byte [rcx + 0x1c], r12b
je 0x140029f49
cmp byte [rcx + 0x19], 4
jb 0x140029f49
lea r9, [rsi + 0x288]
mov edx, 0x27
lea r8, [0x14003d4e0]
mov rcx, qword [rcx + 0x10]
call fcn.14000a67c
mov byte [rsi + 0xa3], 0
jmp 0x140029f9c
lea r14, [0x140045158]
mov rcx, qword [0x140045158]
mov r12d, 1
cmp rcx, r14
je 0x140029f93
test byte [rcx + 0x1c], r12b
je 0x140029f93
cmp byte [rcx + 0x19], 3
jb 0x140029f93
lea edx, [r12 + 0xe]
lea r9, [rsi + 0x90]
lea r8, [0x14003d4e0]
mov rcx, qword [rcx + 0x10]
call fcn.14000a67c
mov edi, 0x80040206
mov dword [rsp + 0x50], edi
movabs r15, 0x200000000000
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetSystemTimeAsFileTime]
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x5c], eax
mov rcx, qword [rsp + 0x58]
sub rcx, qword [rsp + 0x78]
movabs rax, 0xe5109ec205d7bea7
mul rcx
shr rdx, 0x1d
mov dword [rsi + 0x224], edx
cmp byte [rsp + 0x40], 0
jne 0x140029fef
mov dword [rsi + 0x220], edi
mov dl, r12b
lea rcx, [rbp - 0x60]
call fcn.140017988
mov dl, r12b
lea rcx, [rbp + 0xb0]
call fcn.140017988
mov dl, r12b
lea rcx, [rbp + 0x40]
call fcn.140017988
lea rbx, [rsi + 0x18]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_AcquireSRWLockExclusive]
mov eax, dword [rsi + 0xb8]
sub eax, 3
cmp eax, 2
ja 0x14002a06f
mov rcx, qword [0x140045158]
cmp rcx, r14
je 0x14002a065
test byte [rcx + 0x1c], r12b
je 0x14002a065
cmp byte [rcx + 0x19], 4
jb 0x14002a065
lea r9, [rsi + 0x288]
mov edx, 0x28
lea r8, [0x14003d4e0]
mov rcx, qword [rcx + 0x10]
call fcn.14000a67c
mov dword [rsi + 0xb8], 2
cmp dword [0x140045020], 5
jbe 0x14002a11b
test qword [0x140045030], r15
je 0x14002a11b
mov rax, qword [0x140045038]
and rax, r15
cmp rax, qword [0x140045038]
jne 0x14002a11b
movzx eax, word [rsi + 0xb8]
mov word [rsp + 0x42], ax
lea rax, [rsp + 0x42]
mov qword [rbp + 0x140], rax
mov qword [rbp + 0x148], 2
xor edx, edx
lea rax, [rbp + 0x168]
mov qword [rbp + 0x150], rax
mov qword [rbp + 0x158], 2
movzx ecx, word [rsi + 0x2a0]
mov rax, qword [rsi + 0x2a8]
mov qword [rbp + 0x160], rax
mov dword [rbp + 0x168], ecx
mov dword [rbp + 0x16c], edx
lea rax, [rbp + 0x120]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 5
lea rdx, [0x14003f24a]
call fcn.1400010dc
test rbx, rbx
je 0x14002a12a
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ReleaseSRWLockExclusive]
nop
cmp byte [rsp + 0x6c], 0
je 0x14002a13e
xor edx, edx
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_RtlSetThreadErrorMode]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14002a14f
call qword [sym.imp.ntdll.dll_NtClose]
nop
lea rcx, [rbp - 0x60]
call fcn.14001f51c
nop
lea rcx, [rbp + 0x40]
call fcn.14001f51c
nop
lea rcx, [rbp + 0xb0]
call fcn.14001f51c
nop
lea rcx, [rbp - 0x20]
call fcn.14001f51c
nop
lea rcx, [rsp + 0x48]
call fcn.140008b88
mov eax, edi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140039130
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x280
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret