Function at 0x140031968
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov r12, rdx
mov rsi, rcx
mov ecx, 8
mov rax, qword gs:[0x58]
mov r8, qword [rax]
lea rax, [0x140047038]
mov qword [rcx + r8], rax
lea rcx, [rsp + 0x40]
call fcn.140005448
nop
xor r14d, r14d
mov byte [rbp + 0x180], r14b
mov byte [rbp + 0x190], r14b
mov r13d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x68], 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 + 0xd0], r14b
mov word [rbp + 0xf0], r14w
mov byte [rbp + 0xf2], r14b
mov qword [rbp + 0xf8], r14
mov byte [rbp + 0x100], 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 + 0x58], r14
mov byte [rsp + 0x54], r14b
lea rcx, [rbp - 0x68]
call qword [sym.imp.api_ms_win_core_realtime_l1_1_0.dll_QueryUnbiasedInterruptTime]
nop dword [rax + rax]
mov r9d, dword [rsi + 0xb8]
lea ebx, [r14 + 1]
movabs r15, 0x200000000000
cmp r9d, 3
je 0x140031afb
mov r8d, 0x80830006
mov edi, r8d
mov dword [rsp + 0x48], r8d
lea r14, [0x14004d128]
mov rcx, qword [0x14004d128]
mov r12d, ebx
cmp rcx, r14
je 0x14003266b
test byte [rcx + 0x1c], bl
je 0x14003266b
cmp byte [rcx + 0x19], 2
jb 0x14003266b
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.14003816c
jmp 0x14003266b
cmp dword [0x14004d098], 4
jbe 0x140031b6b
test qword [0x14004d0a8], r15
je 0x140031b6b
mov rax, qword [0x14004d0b0]
and rax, r15
cmp rax, qword [0x14004d0b0]
jne 0x140031b6b
lea rax, [rsi + 0x2b8]
mov qword [rbp - 0x80], rax
movzx eax, word [rsi + 0xb8]
mov word [rbp + 0x198], ax
mov qword [rbp - 0x78], 0x1000000
lea rax, [rbp - 0x80]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x198]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x20], rax
lea rdx, [0x140048448]
call fcn.14000172c
call qword [sym.imp.ntdll.dll_RtlGetThreadErrorMode]
nop dword [rax + rax]
or eax, 0x10
lea rdx, [rsp + 0x50]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlSetThreadErrorMode]
nop dword [rax + rax]
movzx ecx, byte [rsp + 0x54]
test eax, eax
cmovns ecx, ebx
mov byte [rsp + 0x54], cl
lea rbx, [rsi + 0x18]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
nop dword [rax + rax]
cmp byte [rsi + 0x2d1], r14b
jne 0x140031c22
mov edi, 0x80830002
mov dword [rsp + 0x48], edi
lea r14, [0x14004d128]
mov rcx, qword [0x14004d128]
mov r12d, 1
cmp rcx, r14
je 0x140031c05
test byte [rcx + 0x1c], r12b
je 0x140031c05
cmp byte [rcx + 0x19], 2
jb 0x140031c05
lea edx, [r12 + 0xa]
mov dword [rsp + 0x20], edi
mov r9d, dword [rsi + 0x80]
lea r8, [0x140047120]
mov rcx, qword [rcx + 0x10]
call fcn.14000a318
test rbx, rbx
je 0x14003266b
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
jmp 0x14003266b
mov dword [rbp + 0xa0], 0x30
mov qword [rbp + 0xa8], r14
lea rax, [rsi + 0x90]
mov qword [rbp + 0xb0], rax
mov dword [rbp + 0xb8], 0xc0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xc0], xmm0
mov dword [rsp + 0x28], 0x21
mov dword [rsp + 0x20], 7
lea r9, [rbp + 0x130]
lea r8, [rbp + 0xa0]
mov edx, 0x100080
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
mov r15d, eax
test rbx, rbx
je 0x140031ca1
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
test r15d, r15d
jns 0x140031d08
mov edi, r15d
bts edi, 0x1c
mov dword [rsp + 0x48], edi
lea r14, [0x14004d128]
mov rcx, qword [0x14004d128]
mov r12d, 1
cmp rcx, r14
je 0x140032661
test byte [rcx + 0x1c], r12b
je 0x140032661
cmp byte [rcx + 0x19], 2
jb 0x140032661
lea edx, [r12 + 0xb]
mov dword [rsp + 0x20], r15d
lea r9, [rsi + 0x90]
lea r8, [0x140047120]
mov rcx, qword [rcx + 0x10]
call fcn.14000c3e8
jmp 0x140032661
lea r15, [rsi + 0x4a0]
mov rdx, r15
lea rcx, [rbp - 0x20]
call fcn.14001bc08
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x140031d68
lea r14, [0x14004d128]
mov rcx, qword [0x14004d128]
mov r12d, 1
cmp rcx, r14
je 0x140032661
test byte [rcx + 0x1c], r12b
je 0x140032661
cmp byte [rcx + 0x19], 2
jb 0x140032661
lea edx, [r12 + 0xc]
lea r9, [rsi + 0x2a0]
mov dword [rsp + 0x20], eax
jmp 0x140031cf3
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.14001ce40
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x140031dd3
lea r14, [0x14004d128]
mov rcx, qword [0x14004d128]
mov r12d, 1
cmp rcx, r14
je 0x140031dc2
test byte [rcx + 0x1c], r12b
je 0x140031dc2
cmp byte [rcx + 0x19], 2
jb 0x140031dc2
lea r9, [rsi + 0x2a0]
lea edx, [r12 + 0xd]
mov dword [rsp + 0x20], eax
lea r8, [0x140047120]
mov rcx, qword [rcx + 0x10]
call fcn.14000c3e8
mov dl, r12b
lea rcx, [rbp - 0x20]
call fcn.14001b170
jmp 0x140032661
cmp qword [rsi + 0x60], r14
je 0x140032617
cmp qword [rsi + 0x118], r14
je 0x140032617
cmp qword [rsi + 0x120], r14
je 0x140032617
cmp byte [rsi + 0xa3], r14b
jne 0x140031f8b
lea r14, [0x14004d128]
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140031e3f
test byte [rcx + 0x1c], 1
je 0x140031e3f
cmp byte [rcx + 0x19], 4
jb 0x140031e3f
lea r9, [rsi + 0x2a0]
mov edx, 0x10
lea r8, [0x140047120]
mov rcx, qword [rcx + 0x10]
call fcn.140019588
xor edx, edx
mov rcx, rsi
call fcn.140017a70
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x140031e9e
mov rcx, qword [0x14004d128]
mov r12d, 1
cmp rcx, r14
je 0x140032661
test byte [rcx + 0x1c], r12b
je 0x140032661
cmp byte [rcx + 0x19], 4
jb 0x140032661
lea r9, [rsi + 0x2a0]
lea edx, [r12 + 0x10]
lea r8, [0x140047120]
mov rcx, qword [rcx + 0x10]
call fcn.140019588
jmp 0x140032661
lea r9, [rbp + 0x190]
mov r8, r12
lea rdx, [rbp - 0x20]
mov rcx, qword [rbp + 8]
call fcn.1400395c8
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x140031edc
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140031f14
test byte [rcx + 0x1c], 1
je 0x140031f14
cmp byte [rcx + 0x19], 2
jb 0x140031f14
mov edx, 0x12
jmp 0x140031ef9
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140031f14
test byte [rcx + 0x1c], 1
je 0x140031f14
cmp byte [rcx + 0x19], 2
jb 0x140031f14
mov edx, 0x13
mov dword [rsp + 0x20], eax
mov r9d, dword [rsi + 0x80]
lea r8, [0x140047120]
mov rcx, qword [rcx + 0x10]
call fcn.14000a318
cmp byte [r12], 0
jne 0x140031f83
mov dl, 1
mov rcx, rsi
call fcn.140013a28
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x140031f7e
mov rcx, qword [0x14004d128]
mov r12d, 1
cmp rcx, r14
je 0x140031dc2
test byte [rcx + 0x1c], r12b
je 0x140031dc2
cmp byte [rcx + 0x19], 2
jb 0x140031dc2
lea edx, [r12 + 0x13]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsi + 0x80]
lea r8, [0x140047120]
mov rcx, qword [rcx + 0x10]
call fcn.14000a318
jmp 0x140031dc2
mov byte [r12], 1
mov r12d, 1
jmp 0x140031fcc
lea r14, [0x14004d128]
mov rcx, qword [0x14004d128]
mov r12d, 1
cmp rcx, r14
je 0x140031fd5
test byte [rcx + 0x1c], r12b
je 0x140031fd5
cmp byte [rcx + 0x19], 4
jb 0x140031fd5
lea r9, [rsi + 0x2a0]
lea edx, [r12 + 0x14]
lea r8, [0x140047120]
mov rcx, qword [rcx + 0x10]
call fcn.140019588
cmp byte [rbp + 0x190], 0
jne 0x140031fe1
mov dl, r12b
lea rcx, [rbp - 0x20]
call fcn.14001b170
mov rdx, r15
lea rcx, [rbp + 0x40]
call fcn.14001bc08
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x140032025
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032661
test byte [rcx + 0x1c], r12b
je 0x140032661
cmp byte [rcx + 0x19], 2
jb 0x140032661
mov edx, 0x16
jmp 0x140031d5b
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.14001ce40
mov edi, eax
mov dword [rsp + 0x48], eax
xor eax, eax
test edi, edi
jns 0x140032073
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032661
test byte [rcx + 0x1c], r12b
je 0x140032661
cmp byte [rcx + 0x19], 2
jb 0x140032661
lea r9, [rsi + 0x2a0]
lea edx, [rax + 0x17]
mov dword [rsp + 0x20], edi
jmp 0x140031cf3
mov dword [rsi + 0x138], eax
cmp qword [rsi + 0x118], rax
ja 0x1400320c0
cmp qword [rsi + 0x120], rax
ja 0x1400320c0
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032658
test byte [rcx + 0x1c], r12b
je 0x140032658
cmp byte [rcx + 0x19], 3
jb 0x140032658
lea r9, [rsi + 0x2a0]
mov edx, 0x18
jmp 0x140032648
mov al, byte [rsi + 0x2d9]
neg al
sbb rdx, rdx
and edx, 0xa0
add rdx, 0x540
add rdx, rsi
lea rcx, [rbp - 0x60]
call fcn.14001bc08
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x14003211c
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032661
test byte [rcx + 0x1c], r12b
je 0x140032661
cmp byte [rcx + 0x19], 2
jb 0x140032661
mov edx, 0x19
jmp 0x140031d5b
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14001ce40
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x14003215f
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032661
test byte [rcx + 0x1c], r12b
je 0x140032661
cmp byte [rcx + 0x19], 2
jb 0x140032661
mov edx, 0x1a
jmp 0x140031d5b
cmp byte [rsi + 0x2d9], 0
je 0x1400321b4
lea rdx, [rbp - 0x60]
mov rcx, rsi
call fcn.1400312ac
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x1400321b4
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x1400321b4
test byte [rcx + 0x1c], r12b
je 0x1400321b4
cmp byte [rcx + 0x19], 2
jb 0x1400321b4
lea r9, [rsi + 0x2a0]
mov edx, 0x1b
mov dword [rsp + 0x20], eax
lea r8, [0x140047120]
mov rcx, qword [rcx + 0x10]
call fcn.14000c3e8
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x70]
mov edx, r12d
mov rcx, rsi
call fcn.1400309f4
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x140032201
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032661
test byte [rcx + 0x1c], r12b
je 0x140032661
cmp byte [rcx + 0x19], 2
jb 0x140032661
mov edx, 0x1c
jmp 0x140031d5b
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
nop dword [rax + rax]
mov rcx, qword [rsi + 0x50]
jmp 0x140032229
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx]
cmp byte [rdx + 0x24], 0
je 0x140032229
mov eax, dword [rdx + 0x20]
add r13, rax
test rcx, rcx
jne 0x140032216
test rbx, rbx
je 0x140032242
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032277
test byte [rcx + 0x1c], r12b
je 0x140032277
cmp byte [rcx + 0x19], 5
jb 0x140032277
lea rax, [rsi + 0x2a0]
mov edx, 0x1d
mov qword [rsp + 0x20], rax
mov r9, r13
mov rcx, qword [rcx + 0x10]
call fcn.1400387a8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x40]
lea r8, [rbp - 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call fcn.14003284c
mov ebx, eax
test eax, eax
jns 0x1400322f0
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x1400322e3
test byte [rcx + 0x1c], r12b
je 0x1400322e3
cmp byte [rcx + 0x19], 2
jb 0x1400322e3
lea r9, [rsi + 0x2a0]
mov edx, 0x1e
mov dword [rsp + 0x20], eax
lea r8, [0x140047120]
mov rcx, qword [rcx + 0x10]
call fcn.14000c3e8
mov byte [rbp + 0x180], r12b
mov dword [rsi + 0x220], ebx
mov r9d, dword [rsi + 0xb8]
cmp r9d, 3
je 0x140032353
mov r8d, 0x80830006
mov edi, r8d
mov dword [rsp + 0x48], r8d
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032661
test byte [rcx + 0x1c], r12b
je 0x140032661
cmp byte [rcx + 0x19], 2
jb 0x140032661
mov edx, 0x1f
mov dword [rsp + 0x28], r8d
lea rax, [rsi + 0x90]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.14003816c
jmp 0x140032661
mov rdx, r15
lea rcx, [rbp + 0xd0]
call fcn.14001bc08
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x14003239a
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032661
test byte [rcx + 0x1c], r12b
je 0x140032661
cmp byte [rcx + 0x19], 2
jb 0x140032661
mov edx, 0x20
jmp 0x140031d5b
mov dl, r12b
lea rcx, [rbp + 0xd0]
call fcn.14001ce40
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x1400323e1
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032661
test byte [rcx + 0x1c], r12b
je 0x140032661
cmp byte [rcx + 0x19], 2
jb 0x140032661
mov edx, 0x21
jmp 0x140031d5b
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032415
test byte [rcx + 0x1c], r12b
je 0x140032415
cmp byte [rcx + 0x19], 4
jb 0x140032415
lea r9, [rsi + 0x2a0]
mov edx, 0x22
lea r8, [0x140047120]
mov rcx, qword [rcx + 0x10]
call fcn.140019588
mov dword [rsi + 0xb8], 4
lea r8, [rbp + 0x40]
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call fcn.140033a04
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x14003247d
mov byte [rbp + 0x180], r12b
mov dword [rsi + 0x220], eax
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032484
test byte [rcx + 0x1c], r12b
je 0x140032484
cmp byte [rcx + 0x19], 2
jb 0x140032484
lea r9, [rsi + 0x2a0]
mov edx, 0x23
mov dword [rsp + 0x20], eax
lea r8, [0x140047120]
mov rcx, qword [rcx + 0x10]
call fcn.14000c3e8
mov rcx, qword [0x14004d128]
mov r9d, dword [rsi + 0xb8]
cmp r9d, 4
je 0x1400324c6
mov r8d, 0x80830006
mov edi, r8d
mov dword [rsp + 0x48], r8d
cmp rcx, r14
je 0x140032661
test byte [rcx + 0x1c], r12b
je 0x140032661
cmp byte [rcx + 0x19], 2
jb 0x140032661
mov edx, 0x24
jmp 0x140032334
cmp rcx, r14
je 0x1400324f3
test byte [rcx + 0x1c], r12b
je 0x1400324f3
cmp byte [rcx + 0x19], 4
jb 0x1400324f3
lea r9, [rsi + 0x2a0]
mov edx, 0x25
lea r8, [0x140047120]
mov rcx, qword [rcx + 0x10]
call fcn.140019588
mov dword [rsi + 0xb8], 5
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, r13
lea r8, [rbp + 0xd0]
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call fcn.140034a34
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x14003258b
mov byte [rbp + 0x180], r12b
mov dword [rsi + 0x220], eax
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032592
test byte [rcx + 0x1c], r12b
je 0x140032592
cmp byte [rcx + 0x19], 2
jb 0x140032592
lea r9, [rsi + 0x2a0]
mov edx, 0x26
mov dword [rsp + 0x20], eax
lea r8, [0x140047120]
mov rcx, qword [rcx + 0x10]
call fcn.14000c3e8
mov rcx, qword [0x14004d128]
mov r9d, dword [rsi + 0xb8]
cmp r9d, 5
je 0x1400325d4
mov r8d, 0x80830006
mov edi, r8d
mov dword [rsp + 0x48], r8d
cmp rcx, r14
je 0x140032661
test byte [rcx + 0x1c], r12b
je 0x140032661
cmp byte [rcx + 0x19], 2
jb 0x140032661
mov edx, 0x27
jmp 0x140032334
cmp byte [rsi + 0xa3], 0
je 0x140032661
cmp rcx, r14
je 0x14003260e
test byte [rcx + 0x1c], r12b
je 0x14003260e
cmp byte [rcx + 0x19], 4
jb 0x14003260e
lea r9, [rsi + 0x2a0]
mov edx, 0x28
lea r8, [0x140047120]
mov rcx, qword [rcx + 0x10]
call fcn.140019588
mov byte [rsi + 0xa3], 0
jmp 0x140032661
lea r14, [0x14004d128]
mov rcx, qword [0x14004d128]
mov r12d, 1
cmp rcx, r14
je 0x140032658
test byte [rcx + 0x1c], r12b
je 0x140032658
cmp byte [rcx + 0x19], 3
jb 0x140032658
lea edx, [r12 + 0xe]
lea r9, [rsi + 0x90]
lea r8, [0x140047120]
mov rcx, qword [rcx + 0x10]
call fcn.140019588
mov edi, 0x80040206
mov dword [rsp + 0x48], edi
movabs r15, 0x200000000000
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_realtime_l1_1_0.dll_QueryUnbiasedInterruptTime]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x70]
sub rcx, qword [rbp - 0x68]
movabs rax, 0xe5109ec205d7bea7
mul rcx
shr rdx, 0x1d
mov dword [rsi + 0x224], edx
cmp byte [rbp + 0x180], 0
jne 0x1400326a9
mov dword [rsi + 0x220], edi
mov dl, r12b
lea rcx, [rbp - 0x60]
call fcn.14001b170
mov dl, r12b
lea rcx, [rbp + 0xd0]
call fcn.14001b170
mov dl, r12b
lea rcx, [rbp + 0x40]
call fcn.14001b170
lea rbx, [rsi + 0x18]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockExclusive]
nop dword [rax + rax]
mov eax, dword [rsi + 0xb8]
sub eax, 3
cmp eax, 2
ja 0x14003272f
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032725
test byte [rcx + 0x1c], r12b
je 0x140032725
cmp byte [rcx + 0x19], 4
jb 0x140032725
lea r9, [rsi + 0x2a0]
mov edx, 0x29
lea r8, [0x140047120]
mov rcx, qword [rcx + 0x10]
call fcn.140019588
mov dword [rsi + 0xb8], 2
cmp dword [0x14004d098], 4
jbe 0x1400327ab
test qword [0x14004d0a8], r15
je 0x1400327ab
mov rax, qword [0x14004d0b0]
and rax, r15
cmp rax, qword [0x14004d0b0]
jne 0x1400327ab
lea rax, [rsi + 0x2b8]
mov qword [rbp + 0x190], rax
movzx eax, word [rsi + 0xb8]
mov word [rbp + 0x180], ax
mov qword [rbp + 0x198], 0x1000000
lea rax, [rbp + 0x190]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x180]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x198]
mov qword [rsp + 0x20], rax
lea rdx, [0x1400483e4]
call fcn.14000172c
test rbx, rbx
je 0x1400327c0
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockExclusive]
nop dword [rax + rax]
nop
cmp byte [rsp + 0x54], 0
je 0x1400327da
xor edx, edx
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlSetThreadErrorMode]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400327f1
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
nop
lea rcx, [rbp - 0x60]
call fcn.14001a16c
nop
lea rcx, [rbp + 0x40]
call fcn.14001a16c
nop
lea rcx, [rbp + 0xd0]
call fcn.14001a16c
nop
lea rcx, [rbp - 0x20]
call fcn.14001a16c
nop
lea rcx, [rsp + 0x40]
call fcn.1400059b8
mov eax, edi
mov rbx, qword [rsp + 0x288]
add rsp, 0x240
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret