Function at 0x140008500
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push r15
cmc
clc
sub rsp, 0x10
cmp r14d, r15d
cmp dword [0x140004680], 0
jmp 0x140008517
jne 0x14000894d
mov rax, qword gs:[0x60]
ror cl, cl
xor r15d, r15d
cqo
bt dx, r15w
mov edx, r15d
shr r8w, cl
and r8b, r11b
mov rcx, qword [rax + 0x18]
clc
mov r8, qword [rcx + 0x10]
not al
mov rax, qword [r8 + 0x30]
cmc
test rax, rax
jmp 0x140008554
je 0x140008966
nop word [rax + rax]
bsr cx, bp
cmp r14, r12
sar cx, cl
mov r10, rax
xchg cx, cx
movsxd rax, dword [rax + 0x3c]
adc cl, r14b
mov ecx, dword [rax + r10 + 0x88]
test ecx, ecx
jmp 0x140008589
je 0x1400085e2
lea rdx, [r10 + rcx]
mov ecx, dword [r10 + rcx + 0xc]
btr rax, r10
rol ax, 0x4c
mov eax, dword [rcx + r10]
cmp bx, di
test cl, r9b
or eax, 0x20202020
cmp r13w, 0x596b
clc
cmp eax, 0x6c64746e
jmp 0x1400085c0
jne 0x1400085e2
mov eax, dword [rcx + r10 + 4]
cmp r8d, 0x554a2741
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x1400085fc
mov r8, qword [r8]
movzx ax, r9b
mov rax, qword [r8 + 0x30]
test rax, rax
jmp 0x1400085f6
jne 0x14000856d
test rdx, rdx
jmp 0x140008604
je 0x140008966
mov qword [rsp + 0x20], rbx
sbb rax, 0x22db3c02
sar rax, 0x48
and r11d, eax
mov r11d, r15d
btc r9d, 0x48
test ah, 0xa2
mov r9w, di
mov ebx, dword [rdx + 0x18]
rol r9b, cl
cmovle r9w, dx
shld rax, r13, 0x88
mov qword [rsp + 0x28], rbp
bt r9w, sp
mov ebp, dword [rdx + 0x24]
sub r9d, r12d
mov qword [rsp + 0x30], rsi
movsx ax, dil
rol sil, cl
mov esi, dword [rdx + 0x1c]
bts ax, di
mov qword [rsp + 0x38], rdi
sal dil, 0x1e
xadd eax, edi
add rsi, r10
sal edi, cl
mov dil, 0x1c
clc
mov edi, dword [rdx + 0x20]
sal r9, cl
btc r9, 0x5c
mov qword [rsp + 8], r12
not ah
add rdi, r10
rcl ah, 0x8a
cwde
mov qword [rsp], r14
btr ax, 0x81
bsr r12w, r13w
add rbp, r10
mov r12d, 0x775a
lea r14, [0x140004680]
btr r9, r11
test bpl, 0x21
sar ah, cl
nop dword [rax]
nop dword [rax + rax]
movsx ax, bh
dec al
rcr r9b, 0x8b
lea eax, [rbx - 1]
shl r9w, 0x33
xor r9w, r13w
mov r9d, dword [rdi + rax*4]
jmp 0x1400086e9
lea r9, [r9 + r10]
cmc
stc
cmp word [r9], r12w
jmp 0x140008708
jne 0x1400087cc
mov edx, r15d
movsx rcx, r13w
rol eax, 0xa3
rcr cl, cl
mov r8d, 0xd15373f5
clc
rcl ah, cl
movzx ecx, r10w
mov rax, r9
setl ch
nop dword [rax]
bt cx, 0x12
movsx cx, ch
stc
movzx eax, word [rax]
stc
bt cx, 0x3c
mov ecx, r8d
stc
ror ecx, 8
inc edx
add ecx, eax
rol ax, 0x7b
dec al
mov eax, edx
jmp 0x14000875c
add rax, r9
jmp 0x140008768
xor r8d, ecx
cmp byte [rax], r15b
jne 0x14000873b
mov edx, r11d
rol ax, cl
lea eax, [rbx - 1]
stc
test sp, r15w
add rdx, rdx
inc r11d
cmc
clc
mov dword [r14 + rdx*8 + 8], r8d
stc
test bx, 0x4daa
movzx eax, word [rbp + rax*2]
stc
cmc
clc
mov eax, dword [rsi + rax*4]
mov dword [r14 + rdx*8 + 0xc], eax
cmp r12b, bl
test di, 0xb3a
jmp 0x1400087b2
mov qword [r14 + rdx*8 + 0x10], r15
cmc
cmp bh, ch
cmp r11d, 0x258
jmp 0x1400087c6
je 0x1400087d5
add ebx, 0xffffffff
jne 0x1400086cc
mov r12, qword [rsp + 8]
lea eax, [r11 - 1]
mov bpl, 0x3c
movsx bp, r9b
test spl, 0xbd
mov rbp, qword [rsp + 0x28]
mov r8d, r15d
clc
stc
cmp esi, 0x13c92c14
mov dword [0x140004680], r11d
test eax, eax
jmp 0x140008808
je 0x140008926
nop dword [rax + rax]
jmp 0x140008818
mov ecx, r11d
btc rax, r13
movzx rax, r10w
add ax, 0x6633
mov eax, r15d
cmp spl, 0x76
sub ecx, r8d
cmp ecx, 1
jmp 0x140008839
je 0x140008908
nop
xadd r10w, di
stc
movzx r9w, r9b
lea ebx, [rax + 1]
xadd si, di
mov r10d, eax
lea r10, [r10 + r10]
mov r9d, ebx
lea r9, [r9 + r9]
mov esi, dword [r14 + r10*8 + 0xc]
bsf edi, ebp
adc di, 0x3797
mov edi, dword [r14 + r9*8 + 0xc]
cmp esi, edi
jmp 0x14000887a
jbe 0x1400088e2
mov eax, dword [r14 + r9*8 + 8]
test sil, r9b
btr dx, 0x89
mov edx, dword [r14 + r10*8 + 8]
shr cx, cl
mov rcx, qword [r14 + r10*8 + 0x10]
mov dword [r14 + r10*8 + 8], eax
mov rax, qword [r14 + r9*8 + 0x10]
mov qword [r14 + r10*8 + 0x10], rax
movsx eax, r10w
mov dword [r14 + r10*8 + 0xc], edi
movsx eax, si
mov dword [r14 + r9*8 + 8], edx
mov dword [r14 + r9*8 + 0xc], esi
mov qword [r14 + r9*8 + 0x10], rcx
movsxd rcx, r11d
movsx r11, bx
rol ax, 0xba
mov r11d, dword [0x140004680]
btr eax, ebp
sbb rcx, 0x2fed1bb3
neg ch
mov ecx, r11d
movsx eax, r12w
bsr eax, ebx
xor eax, 0x3b2726c
mov eax, ebx
test r11d, r11d
sub ecx, r8d
dec ecx
cmp ebx, ecx
jmp 0x140008902
jb 0x14000884c
inc r8d
sal ah, 0x85
lea eax, [r11 - 1]
test esi, ebx
cmp r12b, 0x22
cmp r8d, eax
jmp 0x140008920
jb 0x140008818
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
cwde
rol bh, cl
rcl rax, cl
mov rbx, qword [rsp + 0x20]
cmovg ax, cx
ror r15b, 0x10
rcl al, cl
mov r14, qword [rsp]
shl r15b, 0x84
mov eax, 1
or r15b, r12b
jmp 0x14000895a
add rsp, 0x10
jmp 0x140008963
pop r15
ret
sub eax, eax
add rsp, 0x10
not r15d
movzx r15w, sil
pop r15
ret