Function at 0x1400395c0
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 0x1400395fc
mov rax, qword [r13 + 0x30]
jmp 0x140039600
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.14003a110
cmp eax, 0xb
je 0x140039654
mov qword [rbp + 0x40], 0
lea rcx, [rbp + 0x40]
lea rdx, [rbp - 0x28]
mov r8d, 0x3000
mov r9d, 4
call fcn.14003a110
cmp eax, 0xb
jne 0x140039cbb
mov qword [rbp - 0x20], rsi
mov r12, qword [rdi + 0x28]
mov r14, qword [rdi + 0x30]
test r14, r14
je 0x1400396a4
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.14007f1e0
add rbx, 0x28
cmp rdi, rbx
jne 0x140039680
mov rsi, qword [rbp - 0x20]
mov rax, rsi
shl rax, 4
mov rdi, qword [rbp + 0x40]
test rsi, rsi
je 0x1400396be
mov rcx, qword [r13 + 0x30]
jmp 0x1400396c2
mov ecx, dword [r13 + 0x34]
mov qword [rbp - 0x18], r13
add r13, rax
add r13, 0x78
mov rax, rdi
sub rax, rcx
je 0x1400397ae
mov ecx, dword [r13 + 0x28]
test ecx, ecx
je 0x1400397ae
cmp dword [r13 + 0x2c], 0
je 0x1400397ae
add rcx, rdi
mov edx, 1
mov r8d, dword [rcx + 4]
test r8, r8
jne 0x140039720
jmp 0x140039790
mov r8d, dword [rcx + 4]
add rcx, r8
mov r8d, dword [rcx + 4]
test r8, r8
je 0x140039790
cmp r8d, 0xa
jb 0x140039714
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 0x140039755
cmp r8, r9
je 0x140039710
movzx r10d, word [rcx + r9*2 + 8]
inc r9
mov r11d, r10d
and r11d, 0xf000
cmp r11d, 0xa000
jne 0x140039750
mov r11d, dword [rcx]
and r10d, 0xfff
add r10, r11
add qword [rdi + r10], rax
jmp 0x140039750
cmp dword [rcx], 0
je 0x1400397aa
xor r8d, r8d
add rcx, r8
mov r8d, dword [rcx + 4]
test r8, r8
jne 0x140039720
jmp 0x140039790
mov rdi, qword [rbp + 0x40]
cmp dword [r13 + 0xc], 0
je 0x140039a73
mov eax, dword [r13 + 8]
test eax, eax
je 0x140039a73
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 0x140039810
cmp dword [rsi + 0x10], 0
jne 0x140039810
cmp dword [rsi], 0
jne 0x140039810
cmp dword [rsi + 4], 0
jne 0x140039810
cmp dword [rsi + 8], 0
je 0x140039a5f
nop word cs:[rax + rax]
add r14, rdi
mov rcx, r14
call fcn.140064fa0
lea r8, [rax + 1]
mov rcx, r15
mov rdx, r14
call fcn.140064fb0
cmp qword [rbp + 8], 0
mov ecx, 5
jne 0x140039a22
mov rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov rcx, r15
call fcn.1400616c0
mov rcx, qword [rbp + 8]
test rcx, rcx
jne 0x140039a38
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 0x140039895
mov r8d, 1
call fcn.140039570
test r15, r15
je 0x140039a50
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 0x1400399c0
xor esi, esi
jmp 0x140039912
movzx edx, cx
mov rcx, r14
call sub.kernel32.dll_GetProcAddress
mov r15, r13
mov rcx, rax
test rax, rax
je 0x140039a18
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 0x1400399c6
test rcx, rcx
js 0x1400398d0
cmp byte [rdi + rcx + 2], 0
je 0x1400399c0
mov r12, r13
mov r13, r14
lea r15, [rdi + rcx]
add r15, 2
mov rcx, r15
call fcn.140064fa0
lea r8, [rax + 1]
lea r14, [rbp + 8]
mov rcx, r14
mov rdx, r15
call fcn.140064fb0
cmp qword [rbp + 8], 0
jne 0x1400399ee
mov rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov rcx, r14
call fcn.1400616c0
mov rcx, qword [rbp + 8]
test rcx, rcx
jne 0x1400399f9
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 0x1400399ac
mov r8d, 1
call fcn.140039570
mov rax, rbx
mov rcx, r15
test r15, r15
jne 0x1400398ea
jmp 0x140039a11
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 0x140039810
jmp 0x1400397e8
mov rax, qword [rbp + 0x38]
mov ecx, 5
jmp 0x140039a26
mov rdx, qword [rbp + 0x10]
test rdx, rdx
je 0x140039a0d
mov r8d, 1
call fcn.140039570
xor ecx, ecx
jmp 0x140039a22
mov ecx, 2
jmp 0x140039a22
mov ecx, 2
mov r12d, ebx
jmp 0x140039a22
mov rax, qword [rbp + 0x38]
mov dword [rax + 4], ecx
mov dword [rax + 8], r12d
mov dword [rax], 1
jmp 0x140039d18
mov rdx, qword [rbp + 0x10]
test rdx, rdx
je 0x140039a4c
mov r8d, 1
call fcn.140039570
xor ecx, ecx
jmp 0x140039a55
mov ecx, 1
mov rax, qword [rbp + 0x38]
mov r12, qword [rbp]
jmp 0x140039a26
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 0x140039c16
mov rax, qword [rbp - 0x18]
cmp dword [rax + 0xa4], 0
je 0x140039c16
lea rdx, str.kernel32.dllRtlAddFunctionTableRtlAddFunctionTable:__n
lea rcx, [rbp + 8]
mov r8d, 0xc
call fcn.1400616c0
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140039ac9
mov rdx, qword [rbp + 0x10]
test rdx, rdx
je 0x140039c16
mov r8d, 1
call fcn.140039570
jmp 0x140039c16
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 0x140039afc
mov r8d, 1
call fcn.140039570
test rbx, rbx
je 0x140039c16
lea rdx, [0x1401e6ee4]
lea rcx, [rbp + 8]
mov r8d, 0x13
call fcn.1400616c0
mov rcx, qword [rbp + 8]
test rcx, rcx
jne 0x140039aac
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 0x140039b5a
mov r8d, 1
call fcn.140039570
test rbx, rbx
je 0x140039c16
mov qword [rbp - 0x30], rbx
lea rax, [rbp - 0x30]
mov qword [rbp - 0x10], rax
lea rax, [0x1400395b0]
mov qword [rbp - 8], rax
lea rsi, [0x1401e6f10]
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.14004d310
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, [0x140067c70]
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.14004d310
test r14, r14
je 0x140039ccc
shl r14, 3
lea rsi, [r14 + r14*4]
xor r14d, r14d
lea rdi, [rbp + 8]
lea rbx, [rbp - 0x10]
jmp 0x140039c59
mov rcx, rdi
mov rdx, rbx
call fcn.14003a2d0
cmp eax, 0xb
jne 0x140039cbb
add r14, 0x28
cmp rsi, r14
je 0x140039ccc
mov eax, dword [r12 + r14 + 0x10]
mov qword [rbp - 0x10], rax
test rax, rax
je 0x140039c50
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 0x140039ca0
mov r8d, 1
test eax, 0x40000000
je 0x140039c40
shr eax, 0x1f
lea r8d, [rax + rax]
add r8d, 2
jmp 0x140039c40
mov r8d, 0x10
test eax, 0x40000000
je 0x140039c40
shr eax, 0x1a
and eax, 0xffffffe0
add eax, 0x20
mov r8d, eax
jmp 0x140039c40
mov dword [r15 + 4], eax
mov dword [r15 + 8], edx
mov dword [r15], 1
jmp 0x140039d18
mov rdi, qword [rbp + 0x40]
cmp dword [r13 + 0x4c], 0
je 0x140039d0d
mov eax, dword [r13 + 0x48]
test eax, eax
je 0x140039d0d
mov rsi, qword [rdi + rax + 0x18]
mov rax, qword [rsi]
test rax, rax
je 0x140039d0d
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 0x140039cf0
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