Function at 0x1400051d0
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rdi, rdx
mov r15, rcx
movzx ebx, byte [rdx + 0x18]
mov r13, qword [rdx + 0x20]
test bl, 1
je 0x1400051fc
mov rax, qword [r13 + 0x30]
jmp 0x140005200
mov eax, dword [r13 + 0x34]
mov qword [rsp + 0x28], rax
mov eax, dword [r13 + 0x50]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x80]
mov r8d, 0x3000
mov r9d, 4
call fcn.140004ef0
cmp eax, 0xb
je 0x140005264
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x80]
mov r8d, 0x3000
mov r9d, 4
call fcn.140004ef0
cmp eax, 0xb
jne 0x1400056cb
mov rbp, qword [rdi + 0x28]
mov rcx, qword [rdi + 0x30]
mov qword [rsp + 0x68], rcx
test rcx, rcx
je 0x1400052b5
mov rsi, qword [rdi + 0x48]
mov rax, qword [rsp + 0x68]
lea rax, [rax*8]
lea rdi, [rax + rax*4]
xor r14d, r14d
nop
mov edx, dword [rbp + r14 + 0x14]
add rdx, rsi
mov ecx, dword [rbp + r14 + 0xc]
mov r8d, dword [rbp + r14 + 0x10]
add rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_memcpy
add r14, 0x28
cmp rdi, r14
jne 0x140005290
mov rsi, qword [rsp + 0x28]
test bl, 1
je 0x1400052d7
lea rdx, [r13 + 0x88]
mov rcx, qword [r13 + 0x30]
mov rax, rsi
sub rax, rcx
jne 0x1400052eb
jmp 0x1400053c2
lea rdx, [r13 + 0x78]
mov ecx, dword [r13 + 0x34]
mov rax, rsi
sub rax, rcx
je 0x1400053c2
mov ecx, dword [rdx + 0x28]
test rcx, rcx
je 0x1400053c2
cmp dword [rdx + 0x2c], 0
je 0x1400053c2
add rcx, rsi
mov edx, 1
mov r8d, dword [rcx + 4]
test r8, r8
jne 0x140005333
jmp 0x1400053b4
xor r8d, r8d
add rcx, r8
mov r8d, dword [rcx + 4]
test r8, r8
je 0x1400053b4
cmp r8d, 0xa
jb 0x1400053a4
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 0x140005368
inc r9
cmp r8, r9
je 0x1400053a0
movzx r10d, word [rcx + r9*2 + 8]
mov r11d, r10d
and r11d, 0xf000
cmp r11d, 0xa000
jne 0x140005360
mov r11d, dword [rcx]
and r10d, 0xfff
add r11, rsi
add qword [r10 + r11], rax
jmp 0x140005360
mov r8d, dword [rcx + 4]
add rcx, r8
mov r8d, dword [rcx + 4]
test r8, r8
jne 0x140005333
cmp dword [rcx], 0
jne 0x140005320
mov rsi, qword [rsp + 0x28]
movzx eax, bl
and eax, 1
shl eax, 4
lea r12, [rax + 0x78]
cmp dword [r13 + rax + 0x84], 0
je 0x140005627
mov edi, dword [r13 + r12 + 8]
test rdi, rdi
je 0x140005627
add rdi, rsi
lea rax, [rsi + 2]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x90], r13
mov qword [rsp + 0x88], r12
jmp 0x140005438
mov rdi, qword [rsp + 0x38]
add rdi, 0x14
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov r15, qword [rsp + 0x30]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x88]
mov ebx, dword [rdi + 0xc]
test rbx, rbx
jne 0x140005460
cmp dword [rdi + 0x10], 0
jne 0x140005460
cmp dword [rdi], 0
jne 0x140005460
cmp dword [rdi + 4], 0
jne 0x140005460
cmp dword [rdi + 8], 0
je 0x140005627
nop dword [rax + rax]
add rbx, rsi
mov rcx, rbx
call sub.msvcrt.dll_strlen
lea r8, [rax + 1]
lea r14, [rsp + 0x40]
mov rcx, r14
mov rdx, rbx
call fcn.1400922d0
test byte [rsp + 0x40], 1
jne 0x140005772
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x50]
mov rcx, r14
call fcn.1400888e0
mov rdx, qword [rsp + 0x40]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x140005779
mov r14, qword [rsp + 0x48]
mov r15, qword [rsp + 0x50]
mov rcx, r14
call sub.KERNEL32.dll_LoadLibraryA
mov r12, rax
test rax, rax
mov rbx, qword [rsp + 0x38]
cmove rax, rbx
mov qword [rsp + 0x60], rax
mov byte [r14], 0
test r15, r15
je 0x1400054f4
mov r8d, 1
mov rcx, r14
mov rdx, r15
call fcn.140004d20
test r12, r12
je 0x140005797
mov eax, dword [rdi]
mov qword [rsp + 0x38], rdi
mov edi, dword [rdi + 0x10]
add rdi, rsi
lea r13, [rsi + rax]
test rax, rax
cmove r13, rdi
mov r14, qword [r13]
test r14, r14
je 0x140005410
xor ebx, ebx
mov r15, qword [rsp + 0x78]
jmp 0x140005559
test r14, r14
je 0x14000574e
mov qword [rsp + 0x70], r14
mov r15, qword [rsp + 0x78]
mov qword [rdi + rbx], r14
mov r14, qword [r13 + rbx + 8]
add rbx, 8
test r14, r14
je 0x140005410
test r14, r14
js 0x140005600
cmp byte [r15 + r14], 0
je 0x140005410
add r14, r15
mov rcx, r14
call sub.msvcrt.dll_strlen
lea r8, [rax + 1]
lea r15, [rsp + 0x40]
mov rcx, r15
mov rdx, r14
call fcn.1400922d0
test byte [rsp + 0x40], 1
jne 0x14000572e
mov rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x50]
mov rcx, r15
call fcn.1400888e0
mov rdx, qword [rsp + 0x40]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x140005735
mov r15, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
mov rdx, r15
call sub.KERNEL32.dll_GetProcAddress
mov r14, rax
mov byte [r15], 0
test r12, r12
je 0x140005530
mov r8d, 1
mov rcx, r15
mov rdx, r12
call fcn.140004d20
jmp 0x140005530
movzx edx, r14w
mov rcx, qword [rsp + 0x60]
call sub.KERNEL32.dll_GetProcAddress
test rax, rax
je 0x140005761
mov r14, rax
mov qword [rsp + 0x98], r14
jmp 0x140005543
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400056d8
shl rax, 3
lea rsi, [rax + rax*4]
xor r14d, r14d
lea rdi, [rsp + 0x40]
lea rbx, [rsp + 0xa0]
jmp 0x140005669
mov rcx, rdi
mov rdx, rbx
call fcn.140005060
cmp eax, 0xb
jne 0x1400056cb
add r14, 0x28
cmp rsi, r14
je 0x1400056d8
mov eax, dword [rbp + r14 + 0x10]
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x140005660
mov eax, dword [rbp + r14 + 0xc]
add rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov eax, dword [rbp + r14 + 0x24]
test eax, 0x20000000
jne 0x1400056b0
mov r8d, 1
test eax, 0x40000000
je 0x140005650
shr eax, 0x1f
lea r8d, [rax*2 + 2]
jmp 0x140005650
mov r8d, 0x10
test eax, 0x40000000
je 0x140005650
shr eax, 0x1a
and eax, 0xffffffe0
add eax, 0x20
mov r8d, eax
jmp 0x140005650
mov dword [r15 + 4], eax
mov dword [r15 + 8], edx
jmp 0x1400057a9
mov rdi, qword [rsp + 0x28]
cmp dword [r13 + r12 + 0x4c], 0
je 0x14000571e
mov eax, dword [r13 + r12 + 0x48]
test rax, rax
je 0x14000571e
mov rsi, qword [rdi + rax + 0x18]
mov rax, qword [rsi]
test rax, rax
je 0x14000571e
add rsi, 8
mov rcx, rdi
mov edx, 1
xor r8d, r8d
call rax
mov rax, qword [rsi]
add rsi, 8
test rax, rax
jne 0x140005700
mov rdi, qword [rsp + 0x28]
mov qword [r15 + 8], rdi
mov dword [r15], 0
jmp 0x1400057b0
mov eax, 5
jmp 0x14000579c
test rdx, rdx
je 0x14000574a
mov rcx, qword [rsp + 0x48]
mov r8d, 1
call fcn.140004d20
xor eax, eax
jmp 0x140005753
mov eax, 2
mov r15, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov ebx, ecx
jmp 0x1400057a1
mov eax, 2
mov rcx, qword [rsp + 0x98]
mov ebx, ecx
jmp 0x14000579c
mov eax, 5
jmp 0x1400057a1
test rdx, rdx
mov rbx, qword [rsp + 0x38]
je 0x140005793
mov rcx, qword [rsp + 0x48]
mov r8d, 1
call fcn.140004d20
xor eax, eax
jmp 0x1400057a1
mov eax, 1
mov r15, qword [rsp + 0x30]
mov dword [r15 + 4], eax
mov dword [r15 + 8], ebx
mov dword [r15], 1
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret