Function at 0x180057ff0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x90
mov r13, r9
mov r15, rdx
mov rsi, rcx
mov byte [rsp + 0x20], 1
xor ecx, ecx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov rax, qword gs:[0x60]
mov r10, qword [rax + 0x18]
cmp byte [r10 + 0x48], cl
jne 0x1800b77ca
mov qword [rdx], rcx
mov edx, dword [rsp + 0xf0]
and edx, 0x100
lea rcx, [rsp + 0x30]
call fcn.180058f2c
mov ebx, eax
mov dword [rsp + 0x24], eax
test eax, eax
js 0x18005822b
mov rcx, qword gs:[0x60]
xor edx, edx
lea r8d, [rdx + 0x60]
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlAllocateHeap
mov rdi, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x180058224
lea r12, [rax + 0x40]
and qword [r12], 0
mov dword [rax + 0x5c], 0
lea rcx, [rax + 0x10]
mov r8, qword [rsp + 0x30]
mov edx, dword [rsp + 0xf0]
call fcn.180058ec0
mov ebx, eax
mov dword [rsp + 0x24], eax
test eax, eax
js 0x180058230
mov byte [rsp + 0x20], 1
mov rax, qword [rsp + 0xd0]
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], r13
mov dword [rdi + 0x30], 0
mov r13d, dword [rsp + 0xe8]
test r13d, r13d
setne al
mov byte [rdi + 0x58], al
mov qword [rdi + 0x38], rsi
and qword [rdi + 0x48], 0
and qword [rdi + 0x50], 0
mov dword [rsp + 0x40], 3
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
and qword [rsp + 0x70], 0
and dword [rsp + 0x78], 0
mov dword [rsp + 0x7c], 1
mov dword [rsp + 0x80], 0x48
xor eax, eax
test byte [rsp + 0xf0], 0xe0
jne 0x180058216
test byte [rsp + 0xf0], 0x10
jne 0x18005820a
lea rax, [0x1800569d0]
mov qword [rsp + 0x70], rax
lea r9, [rsp + 0x40]
mov r8, rdi
lea rdx, [fcn.180075fe0]
mov rcx, r12
call sym.ntdll.dll_TpAllocTimer
mov ebx, eax
mov dword [rsp + 0x24], eax
test eax, eax
js 0x180058230
mov eax, dword [rsp + 0xe0]
mov qword [rsp + 0x38], rax
imul rax, rax, 0xffffffffffffd8f0
mov qword [rsp + 0x38], rax
lock inc dword [rsi]
lea rcx, [rsi + 8]
call sym.ntdll.dll_RtlAcquireSRWLockExclusive
nop
lea rdx, [rsi + 0x18]
mov r8, qword [rdx]
cmp qword [r8 + 8], rdx
je 0x1800581c7
mov ecx, 3
int 0x29
mov rax, qword [rsp + 0x28]
mov qword [rax], r8
mov qword [rax + 8], rdx
mov qword [r8 + 8], rax
mov qword [rdx], rax
mov qword [r15], rax
xor r9d, r9d
mov r8d, r13d
lea rdx, [rsp + 0x38]
mov rcx, qword [r12]
call sym.ntdll.dll_TpSetTimerEx
nop
lea rcx, [rsi + 8]
call sym.ntdll.dll_RtlReleaseSRWLockExclusive
xor edi, edi
mov qword [rsp + 0x28], rdi
xor ebx, ebx
mov dword [rsp + 0x24], ebx
jmp 0x180058230
or eax, 1
mov dword [rsp + 0x78], eax
jmp 0x18005815d
mov eax, 2
mov dword [rsp + 0x78], eax
jmp 0x18005814f
mov ebx, 0xc0000017
jmp 0x180058204
mov rdi, qword [rsp + 0x28]
test rdi, rdi
jne 0x1800b77d4
mov rcx, qword [rsp + 0x30]
call fcn.1800588b4
mov eax, ebx
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
mov eax, 0xc0000001
jmp 0x180058245
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1800b77e2
call sym.ntdll.dll_NtClose
mov rcx, qword gs:[0x60]
mov r8, qword [rsp + 0x28]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlFreeHeap
mov ebx, dword [rsp + 0x24]
jmp 0x180058239