Function at 0x140072680
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp byte [0x140107d31], 0
mov ebp, edx
mov rdi, rcx
jne 0x140072786
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x140072778
lea rdx, str.InitializeSRWLock
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.AcquireSRWLockShared
mov rcx, rbx
mov qword [0x140107d08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ReleaseSRWLockShared
mov rcx, rbx
mov qword [0x140107d10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.AcquireSRWLockExclusive
mov rcx, rbx
mov qword [0x140107d18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.ReleaseSRWLockExclusive
mov rcx, rbx
mov qword [0x140107d20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140107d28], rax
cmp qword [0x140107d08], 0
je 0x14007276e
cmp qword [0x140107d10], 0
je 0x14007276e
cmp qword [0x140107d18], 0
je 0x14007276e
cmp qword [0x140107d20], 0
je 0x14007276e
cmp qword [0x140107d28], 0
je 0x14007276e
mov al, 1
mov byte [0x140107d30], al
jmp 0x14007277f
xor al, al
mov byte [0x140107d30], al
jmp 0x14007277f
mov byte [0x140107d30], 0
mov byte [0x140107d31], 1
movzx esi, byte [0x140107d30]
mov edx, 0xa0
mov ecx, 1
call fcn.140020ab0
mov rbx, rax
test rdi, rdi
jne 0x1400727cc
mov r8, qword [rsp + 0x28]
xor ecx, ecx
test sil, sil
je 0x1400727be
lea rdx, str.RW__p
call fcn.140030570
jmp 0x1400727d4
lea rdx, str.RWemul__p
call fcn.140030570
jmp 0x1400727d4
mov rcx, rdi
call fcn.140020b50
mov ecx, 1
mov rdi, rax
call fcn.14001b460
mov dword [rbx + 8], eax
mov qword [rbx], rdi
mov dword [rbx + 0xc], ebp
call fcn.14001b640
mov qword [rbx + 0x30], rax
lea rax, [0x1400722d0]
mov qword [rbx + 0x10], rax
test sil, sil
je 0x140072818
mov rax, qword [0x140107d08]
lea rcx, [rbx + 0x48]
call qword [case.0x140007e54.0]
mov al, 1
jmp 0x14007281a
xor al, al
mov edx, 0x80000400
mov byte [rbx + 0x40], al
lea rcx, [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
xor edi, edi
test al, al
je 0x140072836
mov eax, edi
jmp 0x140072844
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400728f5
mov dword [rbx + 0x7c], 0xffffffff
mov dword [rbx + 0x78], edi
test eax, eax
jne 0x1400728f5
lea r8, [sub.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, 0x100
lea edx, [rax + 0xa]
call fcn.140025680
mov qword [rbx + 0x88], rax
call fcn.140001040
mov esi, eax
call fcn.140001040
test eax, eax
je 0x1400728be
sub eax, 1
je 0x1400728a7
cmp eax, 1
jne 0x140072909
lea rdx, [rbx + 0x90]
lea rcx, [rbx + 0x98]
call fcn.14001ba50
lea rdi, [0x140072410]
jmp 0x1400728d1
lea rcx, [rbx + 0x98]
xor edx, edx
call fcn.14001ba50
lea rdi, [0x140072410]
jmp 0x1400728d1
lea rdx, [rbx + 0x90]
lea rcx, [rbx + 0x98]
call fcn.14001b670
mov rcx, rbx
mov qword [rbx + 0x18], rdi
call fcn.14001b590
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea rdx, str.MXUser_CreateRWLock
lea rcx, str._s:_native_lock_initialization_routine_failed_n
call fcn.14002b900
int3
mov r8d, esi
lea rdx, str.MXUser_CreateRWLock
lea rcx, str._s:_unknown_stats_mode:__d__n
call fcn.14002b900
int3