Function at 0x14003188c
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, [0x140047048]
mov qword [rcx + r8], rax
lea rcx, [rsp + 0x40]
call fcn.140005468
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 0x140031a1f
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 0x14003258f
test byte [rcx + 0x1c], bl
je 0x14003258f
cmp byte [rcx + 0x19], 2
jb 0x14003258f
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.140037eb8
jmp 0x14003258f
cmp dword [0x14004d098], 4
jbe 0x140031a8f
test qword [0x14004d0a8], r15
je 0x140031a8f
mov rax, qword [0x14004d0b0]
and rax, r15
cmp rax, qword [0x14004d0b0]
jne 0x140031a8f
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, [0x1400485f8]
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 0x140031b46
mov edi, 0x80830002
mov dword [rsp + 0x48], edi
lea r14, [0x14004d128]
mov rcx, qword [0x14004d128]
mov r12d, 1
cmp rcx, r14
je 0x140031b29
test byte [rcx + 0x1c], r12b
je 0x140031b29
cmp byte [rcx + 0x19], 2
jb 0x140031b29
lea edx, [r12 + 0xa]
mov dword [rsp + 0x20], edi
mov r9d, dword [rsi + 0x80]
lea r8, [0x140047130]
mov rcx, qword [rcx + 0x10]
call fcn.14000a330
test rbx, rbx
je 0x14003258f
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
nop dword [rax + rax]
jmp 0x14003258f
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 0x140031bc5
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 0x140031c2c
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 0x140032585
test byte [rcx + 0x1c], r12b
je 0x140032585
cmp byte [rcx + 0x19], 2
jb 0x140032585
lea edx, [r12 + 0xb]
mov dword [rsp + 0x20], r15d
lea r9, [rsi + 0x90]
lea r8, [0x140047130]
mov rcx, qword [rcx + 0x10]
call fcn.14000c408
jmp 0x140032585
lea r15, [rsi + 0x4a0]
mov rdx, r15
lea rcx, [rbp - 0x20]
call fcn.14001bbac
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x140031c8c
lea r14, [0x14004d128]
mov rcx, qword [0x14004d128]
mov r12d, 1
cmp rcx, r14
je 0x140032585
test byte [rcx + 0x1c], r12b
je 0x140032585
cmp byte [rcx + 0x19], 2
jb 0x140032585
lea edx, [r12 + 0xc]
lea r9, [rsi + 0x2a0]
mov dword [rsp + 0x20], eax
jmp 0x140031c17
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.14001cdcc
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x140031cf7
lea r14, [0x14004d128]
mov rcx, qword [0x14004d128]
mov r12d, 1
cmp rcx, r14
je 0x140031ce6
test byte [rcx + 0x1c], r12b
je 0x140031ce6
cmp byte [rcx + 0x19], 2
jb 0x140031ce6
lea r9, [rsi + 0x2a0]
lea edx, [r12 + 0xd]
mov dword [rsp + 0x20], eax
lea r8, [0x140047130]
mov rcx, qword [rcx + 0x10]
call fcn.14000c408
mov dl, r12b
lea rcx, [rbp - 0x20]
call fcn.14001b11c
jmp 0x140032585
cmp qword [rsi + 0x60], r14
je 0x14003253b
cmp qword [rsi + 0x118], r14
je 0x14003253b
cmp qword [rsi + 0x120], r14
je 0x14003253b
cmp byte [rsi + 0xa3], r14b
jne 0x140031eaf
lea r14, [0x14004d128]
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140031d63
test byte [rcx + 0x1c], 1
je 0x140031d63
cmp byte [rcx + 0x19], 4
jb 0x140031d63
lea r9, [rsi + 0x2a0]
mov edx, 0x10
lea r8, [0x140047130]
mov rcx, qword [rcx + 0x10]
call fcn.140019524
xor edx, edx
mov rcx, rsi
call fcn.1400179ec
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x140031dc2
mov rcx, qword [0x14004d128]
mov r12d, 1
cmp rcx, r14
je 0x140032585
test byte [rcx + 0x1c], r12b
je 0x140032585
cmp byte [rcx + 0x19], 4
jb 0x140032585
lea r9, [rsi + 0x2a0]
lea edx, [r12 + 0x10]
lea r8, [0x140047130]
mov rcx, qword [rcx + 0x10]
call fcn.140019524
jmp 0x140032585
lea r9, [rbp + 0x190]
mov r8, r12
lea rdx, [rbp - 0x20]
mov rcx, qword [rbp + 8]
call fcn.140039364
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x140031e00
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140031e38
test byte [rcx + 0x1c], 1
je 0x140031e38
cmp byte [rcx + 0x19], 2
jb 0x140031e38
mov edx, 0x12
jmp 0x140031e1d
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140031e38
test byte [rcx + 0x1c], 1
je 0x140031e38
cmp byte [rcx + 0x19], 2
jb 0x140031e38
mov edx, 0x13
mov dword [rsp + 0x20], eax
mov r9d, dword [rsi + 0x80]
lea r8, [0x140047130]
mov rcx, qword [rcx + 0x10]
call fcn.14000a330
cmp byte [r12], 0
jne 0x140031ea7
mov dl, 1
mov rcx, rsi
call fcn.1400139fc
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x140031ea2
mov rcx, qword [0x14004d128]
mov r12d, 1
cmp rcx, r14
je 0x140031ce6
test byte [rcx + 0x1c], r12b
je 0x140031ce6
cmp byte [rcx + 0x19], 2
jb 0x140031ce6
lea edx, [r12 + 0x13]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsi + 0x80]
lea r8, [0x140047130]
mov rcx, qword [rcx + 0x10]
call fcn.14000a330
jmp 0x140031ce6
mov byte [r12], 1
mov r12d, 1
jmp 0x140031ef0
lea r14, [0x14004d128]
mov rcx, qword [0x14004d128]
mov r12d, 1
cmp rcx, r14
je 0x140031ef9
test byte [rcx + 0x1c], r12b
je 0x140031ef9
cmp byte [rcx + 0x19], 4
jb 0x140031ef9
lea r9, [rsi + 0x2a0]
lea edx, [r12 + 0x14]
lea r8, [0x140047130]
mov rcx, qword [rcx + 0x10]
call fcn.140019524
cmp byte [rbp + 0x190], 0
jne 0x140031f05
mov dl, r12b
lea rcx, [rbp - 0x20]
call fcn.14001b11c
mov rdx, r15
lea rcx, [rbp + 0x40]
call fcn.14001bbac
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x140031f49
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032585
test byte [rcx + 0x1c], r12b
je 0x140032585
cmp byte [rcx + 0x19], 2
jb 0x140032585
mov edx, 0x16
jmp 0x140031c7f
xor edx, edx
lea rcx, [rbp + 0x40]
call fcn.14001cdcc
mov edi, eax
mov dword [rsp + 0x48], eax
xor eax, eax
test edi, edi
jns 0x140031f97
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032585
test byte [rcx + 0x1c], r12b
je 0x140032585
cmp byte [rcx + 0x19], 2
jb 0x140032585
lea r9, [rsi + 0x2a0]
lea edx, [rax + 0x17]
mov dword [rsp + 0x20], edi
jmp 0x140031c17
mov dword [rsi + 0x138], eax
cmp qword [rsi + 0x118], rax
ja 0x140031fe4
cmp qword [rsi + 0x120], rax
ja 0x140031fe4
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x14003257c
test byte [rcx + 0x1c], r12b
je 0x14003257c
cmp byte [rcx + 0x19], 3
jb 0x14003257c
lea r9, [rsi + 0x2a0]
mov edx, 0x18
jmp 0x14003256c
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.14001bbac
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x140032040
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032585
test byte [rcx + 0x1c], r12b
je 0x140032585
cmp byte [rcx + 0x19], 2
jb 0x140032585
mov edx, 0x19
jmp 0x140031c7f
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14001cdcc
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x140032083
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032585
test byte [rcx + 0x1c], r12b
je 0x140032585
cmp byte [rcx + 0x19], 2
jb 0x140032585
mov edx, 0x1a
jmp 0x140031c7f
cmp byte [rsi + 0x2d9], 0
je 0x1400320d8
lea rdx, [rbp - 0x60]
mov rcx, rsi
call fcn.1400311d4
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x1400320d8
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x1400320d8
test byte [rcx + 0x1c], r12b
je 0x1400320d8
cmp byte [rcx + 0x19], 2
jb 0x1400320d8
lea r9, [rsi + 0x2a0]
mov edx, 0x1b
mov dword [rsp + 0x20], eax
lea r8, [0x140047130]
mov rcx, qword [rcx + 0x10]
call fcn.14000c408
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x70]
mov edx, r12d
mov rcx, rsi
call fcn.140030904
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x140032125
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032585
test byte [rcx + 0x1c], r12b
je 0x140032585
cmp byte [rcx + 0x19], 2
jb 0x140032585
mov edx, 0x1c
jmp 0x140031c7f
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 0x14003214d
mov rdx, qword [rcx + 0x10]
mov rcx, qword [rcx]
cmp byte [rdx + 0x24], 0
je 0x14003214d
mov eax, dword [rdx + 0x20]
add r13, rax
test rcx, rcx
jne 0x14003213a
test rbx, rbx
je 0x140032166
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 0x14003219b
test byte [rcx + 0x1c], r12b
je 0x14003219b
cmp byte [rcx + 0x19], 5
jb 0x14003219b
lea rax, [rsi + 0x2a0]
mov edx, 0x1d
mov qword [rsp + 0x20], rax
mov r9, r13
mov rcx, qword [rcx + 0x10]
call fcn.14003850c
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.140032770
mov ebx, eax
test eax, eax
jns 0x140032214
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032207
test byte [rcx + 0x1c], r12b
je 0x140032207
cmp byte [rcx + 0x19], 2
jb 0x140032207
lea r9, [rsi + 0x2a0]
mov edx, 0x1e
mov dword [rsp + 0x20], eax
lea r8, [0x140047130]
mov rcx, qword [rcx + 0x10]
call fcn.14000c408
mov byte [rbp + 0x180], r12b
mov dword [rsi + 0x220], ebx
mov r9d, dword [rsi + 0xb8]
cmp r9d, 3
je 0x140032277
mov r8d, 0x80830006
mov edi, r8d
mov dword [rsp + 0x48], r8d
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032585
test byte [rcx + 0x1c], r12b
je 0x140032585
cmp byte [rcx + 0x19], 2
jb 0x140032585
mov edx, 0x1f
mov dword [rsp + 0x28], r8d
lea rax, [rsi + 0x90]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.140037eb8
jmp 0x140032585
mov rdx, r15
lea rcx, [rbp + 0xd0]
call fcn.14001bbac
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x1400322be
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032585
test byte [rcx + 0x1c], r12b
je 0x140032585
cmp byte [rcx + 0x19], 2
jb 0x140032585
mov edx, 0x20
jmp 0x140031c7f
mov dl, r12b
lea rcx, [rbp + 0xd0]
call fcn.14001cdcc
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x140032305
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032585
test byte [rcx + 0x1c], r12b
je 0x140032585
cmp byte [rcx + 0x19], 2
jb 0x140032585
mov edx, 0x21
jmp 0x140031c7f
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032339
test byte [rcx + 0x1c], r12b
je 0x140032339
cmp byte [rcx + 0x19], 4
jb 0x140032339
lea r9, [rsi + 0x2a0]
mov edx, 0x22
lea r8, [0x140047130]
mov rcx, qword [rcx + 0x10]
call fcn.140019524
mov dword [rsi + 0xb8], 4
lea r8, [rbp + 0x40]
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call fcn.140033890
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x1400323a1
mov byte [rbp + 0x180], r12b
mov dword [rsi + 0x220], eax
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x1400323a8
test byte [rcx + 0x1c], r12b
je 0x1400323a8
cmp byte [rcx + 0x19], 2
jb 0x1400323a8
lea r9, [rsi + 0x2a0]
mov edx, 0x23
mov dword [rsp + 0x20], eax
lea r8, [0x140047130]
mov rcx, qword [rcx + 0x10]
call fcn.14000c408
mov rcx, qword [0x14004d128]
mov r9d, dword [rsi + 0xb8]
cmp r9d, 4
je 0x1400323ea
mov r8d, 0x80830006
mov edi, r8d
mov dword [rsp + 0x48], r8d
cmp rcx, r14
je 0x140032585
test byte [rcx + 0x1c], r12b
je 0x140032585
cmp byte [rcx + 0x19], 2
jb 0x140032585
mov edx, 0x24
jmp 0x140032258
cmp rcx, r14
je 0x140032417
test byte [rcx + 0x1c], r12b
je 0x140032417
cmp byte [rcx + 0x19], 4
jb 0x140032417
lea r9, [rsi + 0x2a0]
mov edx, 0x25
lea r8, [0x140047130]
mov rcx, qword [rcx + 0x10]
call fcn.140019524
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.1400348f8
mov edi, eax
mov dword [rsp + 0x48], eax
test eax, eax
jns 0x1400324af
mov byte [rbp + 0x180], r12b
mov dword [rsi + 0x220], eax
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x1400324b6
test byte [rcx + 0x1c], r12b
je 0x1400324b6
cmp byte [rcx + 0x19], 2
jb 0x1400324b6
lea r9, [rsi + 0x2a0]
mov edx, 0x26
mov dword [rsp + 0x20], eax
lea r8, [0x140047130]
mov rcx, qword [rcx + 0x10]
call fcn.14000c408
mov rcx, qword [0x14004d128]
mov r9d, dword [rsi + 0xb8]
cmp r9d, 5
je 0x1400324f8
mov r8d, 0x80830006
mov edi, r8d
mov dword [rsp + 0x48], r8d
cmp rcx, r14
je 0x140032585
test byte [rcx + 0x1c], r12b
je 0x140032585
cmp byte [rcx + 0x19], 2
jb 0x140032585
mov edx, 0x27
jmp 0x140032258
cmp byte [rsi + 0xa3], 0
je 0x140032585
cmp rcx, r14
je 0x140032532
test byte [rcx + 0x1c], r12b
je 0x140032532
cmp byte [rcx + 0x19], 4
jb 0x140032532
lea r9, [rsi + 0x2a0]
mov edx, 0x28
lea r8, [0x140047130]
mov rcx, qword [rcx + 0x10]
call fcn.140019524
mov byte [rsi + 0xa3], 0
jmp 0x140032585
lea r14, [0x14004d128]
mov rcx, qword [0x14004d128]
mov r12d, 1
cmp rcx, r14
je 0x14003257c
test byte [rcx + 0x1c], r12b
je 0x14003257c
cmp byte [rcx + 0x19], 3
jb 0x14003257c
lea edx, [r12 + 0xe]
lea r9, [rsi + 0x90]
lea r8, [0x140047130]
mov rcx, qword [rcx + 0x10]
call fcn.140019524
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 0x1400325cd
mov dword [rsi + 0x220], edi
mov dl, r12b
lea rcx, [rbp - 0x60]
call fcn.14001b11c
mov dl, r12b
lea rcx, [rbp + 0xd0]
call fcn.14001b11c
mov dl, r12b
lea rcx, [rbp + 0x40]
call fcn.14001b11c
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 0x140032653
mov rcx, qword [0x14004d128]
cmp rcx, r14
je 0x140032649
test byte [rcx + 0x1c], r12b
je 0x140032649
cmp byte [rcx + 0x19], 4
jb 0x140032649
lea r9, [rsi + 0x2a0]
mov edx, 0x29
lea r8, [0x140047130]
mov rcx, qword [rcx + 0x10]
call fcn.140019524
mov dword [rsi + 0xb8], 2
cmp dword [0x14004d098], 4
jbe 0x1400326cf
test qword [0x14004d0a8], r15
je 0x1400326cf
mov rax, qword [0x14004d0b0]
and rax, r15
cmp rax, qword [0x14004d0b0]
jne 0x1400326cf
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, [0x140048594]
call fcn.14000172c
test rbx, rbx
je 0x1400326e4
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 0x1400326fe
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 0x140032715
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
nop
lea rcx, [rbp - 0x60]
call fcn.14001a118
nop
lea rcx, [rbp + 0x40]
call fcn.14001a118
nop
lea rcx, [rbp + 0xd0]
call fcn.14001a118
nop
lea rcx, [rbp - 0x20]
call fcn.14001a118
nop
lea rcx, [rsp + 0x40]
call fcn.1400059dc
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