Function at 0x140018c40
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov rdi, rdx
mov r15, rcx
mov rsi, qword [rdx + 0x18]
mov r13, qword [rdx + 0x20]
test rsi, rsi
je 0x140018c7c
mov rax, qword [r13 + 0x30]
jmp 0x140018c80
mov eax, dword [r13 + 0x34]
mov qword [rbp + 0x40], rax
mov eax, dword [r13 + 0x50]
mov qword [rbp - 0x28], rax
lea rcx, [rbp + 0x40]
lea rdx, [rbp - 0x28]
mov r8d, 0x3000
mov r9d, 4
call fcn.140019790
cmp eax, 0xb
je 0x140018cd4
mov qword [rbp + 0x40], 0
lea rcx, [rbp + 0x40]
lea rdx, [rbp - 0x28]
mov r8d, 0x3000
mov r9d, 4
call fcn.140019790
cmp eax, 0xb
jne 0x14001933b
mov qword [rbp - 0x20], rsi
mov r12, qword [rdi + 0x28]
mov r14, qword [rdi + 0x30]
test r14, r14
je 0x140018d24
mov rsi, qword [rdi + 0x48]
lea rax, [r14*8]
lea rdi, [rax + rax*4]
xor ebx, ebx
nop word [rax + rax]
mov edx, dword [r12 + rbx + 0x14]
add rdx, rsi
mov ecx, dword [r12 + rbx + 0xc]
mov r8d, dword [r12 + rbx + 0x10]
add rcx, qword [rbp + 0x40]
call fcn.14005d920
add rbx, 0x28
cmp rdi, rbx
jne 0x140018d00
mov rsi, qword [rbp - 0x20]
mov rax, rsi
shl rax, 4
mov rdi, qword [rbp + 0x40]
test rsi, rsi
je 0x140018d3e
mov rcx, qword [r13 + 0x30]
jmp 0x140018d42
mov ecx, dword [r13 + 0x34]
mov qword [rbp - 0x18], r13
add r13, rax
add r13, 0x78
mov rax, rdi
sub rax, rcx
je 0x140018e2e
mov ecx, dword [r13 + 0x28]
test ecx, ecx
je 0x140018e2e
cmp dword [r13 + 0x2c], 0
je 0x140018e2e
add rcx, rdi
mov edx, 1
mov r8d, dword [rcx + 4]
test r8, r8
jne 0x140018da0
jmp 0x140018e10
mov r8d, dword [rcx + 4]
add rcx, r8
mov r8d, dword [rcx + 4]
test r8, r8
je 0x140018e10
cmp r8d, 0xa
jb 0x140018d94
lea r9, [r8 - 8]
shr r9, 0x3f
add r8, r9
add r8, 0xfffffffffffffff8
sar r8, 1
cmp r8, 2
cmovl r8, rdx
xor r9d, r9d
jmp 0x140018dd5
cmp r8, r9
je 0x140018d90
movzx r10d, word [rcx + r9*2 + 8]
inc r9
mov r11d, r10d
and r11d, 0xf000
cmp r11d, 0xa000
jne 0x140018dd0
mov r11d, dword [rcx]
and r10d, 0xfff
add r10, r11
add qword [rdi + r10], rax
jmp 0x140018dd0
cmp dword [rcx], 0
je 0x140018e2a
xor r8d, r8d
add rcx, r8
mov r8d, dword [rcx + 4]
test r8, r8
jne 0x140018da0
jmp 0x140018e10
mov rdi, qword [rbp + 0x40]
cmp dword [r13 + 0xc], 0
je 0x1400190f3
mov eax, dword [r13 + 8]
test eax, eax
je 0x1400190f3
mov qword [rbp - 0x38], r14
mov qword [rbp - 0x40], r13
mov qword [rbp + 0x38], r15
add rax, rdi
lea r15, [rbp + 8]
mov rsi, rax
mov qword [rbp - 0x50], r12
mov r14d, dword [rsi + 0xc]
test r14, r14
jne 0x140018e90
cmp dword [rsi + 0x10], 0
jne 0x140018e90
cmp dword [rsi], 0
jne 0x140018e90
cmp dword [rsi + 4], 0
jne 0x140018e90
cmp dword [rsi + 8], 0
je 0x1400190df
nop word cs:[rax + rax]
add r14, rdi
mov rcx, r14
call fcn.140046c80
lea r8, [rax + 1]
mov rcx, r15
mov rdx, r14
call fcn.140046c90
cmp qword [rbp + 8], 0
mov ecx, 5
jne 0x1400190a2
mov rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov rcx, r15
call fcn.14003fbe0
mov rcx, qword [rbp + 8]
test rcx, rcx
jne 0x1400190b8
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rcx
call sub.kernel32.dll_LoadLibraryA
mov r15, rax
test rax, rax
mov r14, rax
cmove r14, qword [rbp]
mov rcx, qword [rbp + 0x50]
mov byte [rcx], 0
mov rdx, qword [rbp + 0x48]
test rdx, rdx
je 0x140018f15
mov r8d, 1
call fcn.140018bf0
test r15, r15
je 0x1400190d0
mov eax, dword [rsi]
mov qword [rbp - 0x48], rsi
mov ecx, dword [rsi + 0x10]
add rcx, rdi
lea rdx, [rdi + rax]
test rax, rax
mov qword [rbp], rcx
cmove rdx, rcx
mov qword [rbp - 0x58], rdx
mov rcx, qword [rdx]
test rcx, rcx
je 0x140019040
xor esi, esi
jmp 0x140018f92
movzx edx, cx
mov rcx, r14
call sub.kernel32.dll_GetProcAddress
mov r15, r13
mov rcx, rax
test rax, rax
je 0x140019098
mov rdx, qword [rbp]
mov qword [rdx + rsi], rcx
mov rcx, qword [rbp - 0x58]
mov rcx, qword [rcx + rsi + 8]
add rsi, 8
mov r13, r15
mov rbx, rax
test rcx, rcx
mov r12, qword [rbp - 0x50]
je 0x140019046
test rcx, rcx
js 0x140018f50
cmp byte [rdi + rcx + 2], 0
je 0x140019040
mov r12, r13
mov r13, r14
lea r15, [rdi + rcx]
add r15, 2
mov rcx, r15
call fcn.140046c80
lea r8, [rax + 1]
lea r14, [rbp + 8]
mov rcx, r14
mov rdx, r15
call fcn.140046c90
cmp qword [rbp + 8], 0
jne 0x14001906e
mov rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov rcx, r14
call fcn.14003fbe0
mov rcx, qword [rbp + 8]
test rcx, rcx
jne 0x140019079
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x48], rax
mov r14, r13
mov rcx, r13
mov qword [rbp + 0x50], rdx
call sub.kernel32.dll_GetProcAddress
mov r15, rax
mov rcx, qword [rbp + 0x50]
mov byte [rcx], 0
mov rdx, qword [rbp + 0x48]
test rdx, rdx
je 0x14001902c
mov r8d, 1
call fcn.140018bf0
mov rax, rbx
mov rcx, r15
test r15, r15
jne 0x140018f6a
jmp 0x140019091
mov r15, r13
mov rax, rbx
mov rsi, qword [rbp - 0x48]
add rsi, 0x14
mov r13, r15
mov rbx, rax
mov qword [rbp], r14
lea r15, [rbp + 8]
mov r14d, dword [rsi + 0xc]
test r14, r14
jne 0x140018e90
jmp 0x140018e68
mov rax, qword [rbp + 0x38]
mov ecx, 5
jmp 0x1400190a6
mov rdx, qword [rbp + 0x10]
test rdx, rdx
je 0x14001908d
mov r8d, 1
call fcn.140018bf0
xor ecx, ecx
jmp 0x1400190a2
mov ecx, 2
jmp 0x1400190a2
mov ecx, 2
mov r12d, ebx
jmp 0x1400190a2
mov rax, qword [rbp + 0x38]
mov dword [rax + 4], ecx
mov dword [rax + 8], r12d
mov dword [rax], 1
jmp 0x140019398
mov rdx, qword [rbp + 0x10]
test rdx, rdx
je 0x1400190cc
mov r8d, 1
call fcn.140018bf0
xor ecx, ecx
jmp 0x1400190d5
mov ecx, 1
mov rax, qword [rbp + 0x38]
mov r12, qword [rbp]
jmp 0x1400190a6
mov rdi, qword [rbp + 0x40]
mov r15, qword [rbp + 0x38]
mov r13, qword [rbp - 0x40]
mov r14, qword [rbp - 0x38]
mov rsi, qword [rbp - 0x20]
test rsi, rsi
je 0x140019296
mov rax, qword [rbp - 0x18]
cmp dword [rax + 0xa4], 0
je 0x140019296
lea rdx, str.kernel32.dllRtlAddFunctionTableRtlAddFunctionTable:__n
lea rcx, [rbp + 8]
mov r8d, 0xc
call fcn.14003fbe0
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140019149
mov rdx, qword [rbp + 0x10]
test rdx, rdx
je 0x140019296
mov r8d, 1
call fcn.140018bf0
jmp 0x140019296
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rcx
call sub.kernel32.dll_LoadLibraryA
mov rbx, rax
mov rcx, qword [rbp + 0x50]
mov byte [rcx], 0
mov rdx, qword [rbp + 0x48]
test rdx, rdx
je 0x14001917c
mov r8d, 1
call fcn.140018bf0
test rbx, rbx
je 0x140019296
lea rdx, [0x1400766b4]
lea rcx, [rbp + 8]
mov r8d, 0x13
call fcn.14003fbe0
mov rcx, qword [rbp + 8]
test rcx, rcx
jne 0x14001912c
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x48], rax
mov rcx, rbx
mov qword [rbp + 0x50], rdx
call sub.kernel32.dll_GetProcAddress
mov rbx, rax
mov rcx, qword [rbp + 0x50]
mov byte [rcx], 0
mov rdx, qword [rbp + 0x48]
test rdx, rdx
je 0x1400191da
mov r8d, 1
call fcn.140018bf0
test rbx, rbx
je 0x140019296
mov qword [rbp - 0x30], rbx
lea rax, [rbp - 0x30]
mov qword [rbp - 0x10], rax
lea rax, [0x140018c30]
mov qword [rbp - 8], rax
lea rsi, [0x1400766e0]
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], 2
mov qword [rbp + 0x28], 0
lea rbx, [rbp - 0x10]
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x20], 1
lea rcx, [rbp + 8]
call fcn.14002cc80
mov rax, qword [rbp - 0x18]
mov ecx, dword [rax + 0xa0]
mov eax, dword [rax + 0xa4]
add rcx, rdi
mov edx, 0xaaaaaaab
imul rdx, rax
shr rdx, 0x23
mov r8, rdi
call qword [rbp - 0x30]
test eax, eax
setne byte [rbp + 0x5f]
lea rax, [rbp + 0x5f]
mov qword [rbp - 0x10], rax
lea rax, [0x140044fe0]
mov qword [rbp - 8], rax
mov qword [rbp + 8], rsi
mov qword [rbp + 0x10], 2
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x20], 1
lea rcx, [rbp + 8]
call fcn.14002cc80
test r14, r14
je 0x14001934c
shl r14, 3
lea rsi, [r14 + r14*4]
xor r14d, r14d
lea rdi, [rbp + 8]
lea rbx, [rbp - 0x10]
jmp 0x1400192d9
mov rcx, rdi
mov rdx, rbx
call fcn.140019950
cmp eax, 0xb
jne 0x14001933b
add r14, 0x28
cmp rsi, r14
je 0x14001934c
mov eax, dword [r12 + r14 + 0x10]
mov qword [rbp - 0x10], rax
test rax, rax
je 0x1400192d0
mov eax, dword [r12 + r14 + 0xc]
add rax, qword [rbp + 0x40]
mov qword [rbp + 8], rax
mov eax, dword [r12 + r14 + 0x24]
test eax, 0x20000000
jne 0x140019320
mov r8d, 1
test eax, 0x40000000
je 0x1400192c0
shr eax, 0x1f
lea r8d, [rax + rax]
add r8d, 2
jmp 0x1400192c0
mov r8d, 0x10
test eax, 0x40000000
je 0x1400192c0
shr eax, 0x1a
and eax, 0xffffffe0
add eax, 0x20
mov r8d, eax
jmp 0x1400192c0
mov dword [r15 + 4], eax
mov dword [r15 + 8], edx
mov dword [r15], 1
jmp 0x140019398
mov rdi, qword [rbp + 0x40]
cmp dword [r13 + 0x4c], 0
je 0x14001938d
mov eax, dword [r13 + 0x48]
test eax, eax
je 0x14001938d
mov rsi, qword [rdi + rax + 0x18]
mov rax, qword [rsi]
test rax, rax
je 0x14001938d
add rsi, 8
mov rcx, rdi
mov edx, 2
xor r8d, r8d
call rax
mov rax, qword [rsi]
add rsi, 8
test rax, rax
jne 0x140019370
mov rdi, qword [rbp + 0x40]
mov qword [r15 + 8], rdi
mov dword [r15], 0
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret