Function at 0x140004bc0
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 0x140004bfc
mov rax, qword [r13 + 0x30]
jmp 0x140004c00
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.140004800
cmp eax, 0xb
je 0x140004c54
mov qword [rbp + 0x40], 0
lea rcx, [rbp + 0x40]
lea rdx, [rbp - 0x28]
mov r8d, 0x3000
mov r9d, 4
call fcn.140004800
cmp eax, 0xb
jne 0x1400052bb
mov qword [rbp - 0x20], rsi
mov r12, qword [rdi + 0x28]
mov r14, qword [rdi + 0x30]
test r14, r14
je 0x140004ca4
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 sub.VCRUNTIME140.dll_memcpy
add rbx, 0x28
cmp rdi, rbx
jne 0x140004c80
mov rsi, qword [rbp - 0x20]
mov rax, rsi
shl rax, 4
mov rdi, qword [rbp + 0x40]
test rsi, rsi
je 0x140004cbe
mov rcx, qword [r13 + 0x30]
jmp 0x140004cc2
mov ecx, dword [r13 + 0x34]
mov qword [rbp - 0x18], r13
add r13, rax
add r13, 0x78
mov rax, rdi
sub rax, rcx
je 0x140004dae
mov ecx, dword [r13 + 0x28]
test ecx, ecx
je 0x140004dae
cmp dword [r13 + 0x2c], 0
je 0x140004dae
add rcx, rdi
mov edx, 1
mov r8d, dword [rcx + 4]
test r8, r8
jne 0x140004d20
jmp 0x140004d90
mov r8d, dword [rcx + 4]
add rcx, r8
mov r8d, dword [rcx + 4]
test r8, r8
je 0x140004d90
cmp r8d, 0xa
jb 0x140004d14
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 0x140004d55
cmp r8, r9
je 0x140004d10
movzx r10d, word [rcx + r9*2 + 8]
inc r9
mov r11d, r10d
and r11d, 0xf000
cmp r11d, 0xa000
jne 0x140004d50
mov r11d, dword [rcx]
and r10d, 0xfff
add r10, r11
add qword [rdi + r10], rax
jmp 0x140004d50
cmp dword [rcx], 0
je 0x140004daa
xor r8d, r8d
add rcx, r8
mov r8d, dword [rcx + 4]
test r8, r8
jne 0x140004d20
jmp 0x140004d90
mov rdi, qword [rbp + 0x40]
cmp dword [r13 + 0xc], 0
je 0x140005073
mov eax, dword [r13 + 8]
test eax, eax
je 0x140005073
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 0x140004e10
cmp dword [rsi + 0x10], 0
jne 0x140004e10
cmp dword [rsi], 0
jne 0x140004e10
cmp dword [rsi + 4], 0
jne 0x140004e10
cmp dword [rsi + 8], 0
je 0x14000505f
nop word cs:[rax + rax]
add r14, rdi
mov rcx, r14
call fcn.14019c380
lea r8, [rax + 1]
mov rcx, r15
mov rdx, r14
call fcn.14019c4b0
cmp qword [rbp + 8], 0
mov ecx, 5
jne 0x140005022
mov rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov rcx, r15
call fcn.14019b250
mov rcx, qword [rbp + 8]
test rcx, rcx
jne 0x140005038
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 0x140004e95
mov r8d, 1
call fcn.140004790
test r15, r15
je 0x140005050
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 0x140004fc0
xor esi, esi
jmp 0x140004f12
movzx edx, cx
mov rcx, r14
call sub.kernel32.dll_GetProcAddress
mov r15, r13
mov rcx, rax
test rax, rax
je 0x140005018
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 0x140004fc6
test rcx, rcx
js 0x140004ed0
cmp byte [rdi + rcx + 2], 0
je 0x140004fc0
mov r12, r13
mov r13, r14
lea r15, [rdi + rcx]
add r15, 2
mov rcx, r15
call fcn.14019c380
lea r8, [rax + 1]
lea r14, [rbp + 8]
mov rcx, r14
mov rdx, r15
call fcn.14019c4b0
cmp qword [rbp + 8], 0
jne 0x140004fee
mov rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x18]
mov rcx, r14
call fcn.14019b250
mov rcx, qword [rbp + 8]
test rcx, rcx
jne 0x140004ff9
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 0x140004fac
mov r8d, 1
call fcn.140004790
mov rax, rbx
mov rcx, r15
test r15, r15
jne 0x140004eea
jmp 0x140005011
mov rax, rbx
mov r15, r13
mov rsi, qword [rbp - 0x48]
add rsi, 0x14
mov rbx, rax
mov r13, r15
mov qword [rbp], r14
lea r15, [rbp + 8]
mov r14d, dword [rsi + 0xc]
test r14, r14
jne 0x140004e10
jmp 0x140004de8
mov rax, qword [rbp + 0x38]
mov ecx, 5
jmp 0x140005026
mov rdx, qword [rbp + 0x10]
test rdx, rdx
je 0x14000500d
mov r8d, 1
call fcn.140004790
xor ecx, ecx
jmp 0x140005022
mov ecx, 2
jmp 0x140005022
mov ecx, 2
mov r12d, ebx
jmp 0x140005022
mov rax, qword [rbp + 0x38]
mov dword [rax + 4], ecx
mov dword [rax + 8], r12d
mov dword [rax], 1
jmp 0x140005318
mov rdx, qword [rbp + 0x10]
test rdx, rdx
je 0x14000504c
mov r8d, 1
call fcn.140004790
xor ecx, ecx
jmp 0x140005055
mov ecx, 1
mov rax, qword [rbp + 0x38]
mov r12, qword [rbp]
jmp 0x140005026
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 0x140005216
mov rax, qword [rbp - 0x18]
cmp dword [rax + 0xa4], 0
je 0x140005216
lea rdx, [0x1401b0aae]
lea rcx, [rbp + 8]
mov r8d, 0xc
call fcn.14019b250
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x1400050c9
mov rdx, qword [rbp + 0x10]
test rdx, rdx
je 0x140005216
mov r8d, 1
call fcn.140004790
jmp 0x140005216
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 0x1400050fc
mov r8d, 1
call fcn.140004790
test rbx, rbx
je 0x140005216
lea rdx, [0x1401b0aba]
lea rcx, [rbp + 8]
mov r8d, 0x13
call fcn.14019b250
mov rcx, qword [rbp + 8]
test rcx, rcx
jne 0x1400050ac
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 0x14000515a
mov r8d, 1
call fcn.140004790
test rbx, rbx
je 0x140005216
mov qword [rbp - 0x30], rbx
lea rax, [rbp - 0x30]
mov qword [rbp - 0x10], rax
lea rax, [0x1400047f0]
mov qword [rbp - 8], rax
lea rsi, [0x1401b0ae8]
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.140189e90
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, [0x14019e710]
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.140189e90
test r14, r14
je 0x1400052cc
shl r14, 3
lea rsi, [r14 + r14*4]
xor r14d, r14d
lea rdi, [rbp + 8]
lea rbx, [rbp - 0x10]
jmp 0x140005259
mov rcx, rdi
mov rdx, rbx
call fcn.1400049f0
cmp eax, 0xb
jne 0x1400052bb
add r14, 0x28
cmp rsi, r14
je 0x1400052cc
mov eax, dword [r12 + r14 + 0x10]
mov qword [rbp - 0x10], rax
test rax, rax
je 0x140005250
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 0x1400052a0
mov r8d, 1
test eax, 0x40000000
je 0x140005240
shr eax, 0x1f
lea r8d, [rax + rax]
add r8d, 2
jmp 0x140005240
mov r8d, 0x10
test eax, 0x40000000
je 0x140005240
shr eax, 0x1a
and eax, 0xffffffe0
add eax, 0x20
mov r8d, eax
jmp 0x140005240
mov dword [r15 + 4], eax
mov dword [r15 + 8], edx
mov dword [r15], 1
jmp 0x140005318
mov rdi, qword [rbp + 0x40]
cmp dword [r13 + 0x4c], 0
je 0x14000530d
mov eax, dword [r13 + 0x48]
test eax, eax
je 0x14000530d
mov rsi, qword [rdi + rax + 0x18]
mov rax, qword [rsi]
test rax, rax
je 0x14000530d
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 0x1400052f0
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