Function at 0x4e9e20
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
xor ebx, ebx
xor r14d, r14d
xor r13d, r13d
xor esi, esi
mov eax, dword [rcx + 0x64]
mov rdi, rdx
mov r15, rcx
mov dword [rsp + 0xb0], r8d
mov qword [rdi + 0x10], rcx
mov dword [rdx + 0xc], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov qword [rdx + 0x18], 0
mov qword [rdx + 0x20], 0
mov dword [rdx + 0x2c], 0
mov dword [rdx + 0x30], 0
mov dword [rdx], 0
mov dword [rdx + 4], 0
mov word [rdx + 0x4a], bx
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov rcx, r15
call fcn.004e9150
mov edx, dword [r15 + 4]
lea ecx, [rdx - 0x10d]
cmp ecx, 0x13
ja 0x4e9f00
mov rax, qword [r15 + 0x18]
mov eax, dword [rax + 4]
test eax, eax
je 0x4e9ec6
test r13d, r13d
jne 0x4ea120
mov r13d, eax
mov eax, 1
shl eax, cl
mov ecx, esi
and esi, eax
or ecx, eax
add esi, esi
and esi, 0x40
or esi, ecx
cmp edx, 0x11b
jle 0x4e9f70
test dword [rsp + 0xb0], eax
je 0x4ea3d8
mov rcx, r15
call fcn.004e7230
jmp 0x4e9e95
test r13d, r13d
jne 0x4ea120
test r14d, r14d
jne 0x4ea120
mov r13d, esi
and r13d, 0x7a0
jne 0x4e9f57
cmp edx, 0x127
je 0x4ea260
jg 0x4e9fc5
cmp edx, 0x24
je 0x4ea230
cmp edx, 0x100
jne 0x4e9f57
mov rax, qword [r15 + 0x18]
mov r14d, dword [rax]
mov eax, r14d
shr eax, 0x1c
cmp eax, 7
je 0x4ea353
mov r13d, esi
and r13d, 0x100
je 0x4ea135
mov r14d, 0x10
jmp 0x4e9f90
test r14d, r14d
je 0x4e9ef3
test esi, 0x100
je 0x4e9f90
xor r14d, r14d
cmp r13d, 4
setne r14b
add r14d, 0xf
mov edx, r14d
mov rcx, rdi
call fcn.004e7dc0
mov eax, dword [rdi + 4]
mov edx, dword [rdi + 0x2c]
mov dword [rdi + 8], eax
mov eax, dword [rdi + 0x30]
mov dword [rdi + 0x34], edx
mov dword [rdi + 0x38], eax
mov eax, esi
and eax, 0xf8000
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp edx, 0x128
je 0x4ea241
cmp edx, 0x129
jne 0x4e9f57
mov r8d, 0x50000001
mov rdx, rdi
mov rcx, r15
call fcn.004e95c0
cmp dword [r15 + 4], 0x7b
mov r14d, eax
jne 0x4e9e95
mov rcx, r15
mov ebx, r14d
call fcn.004e7230
mov dword [rsp + 0x40], 0
mov eax, dword [r15 + 4]
mov dword [rsp + 0x44], 9
mov dword [rsp + 0x34], 0x5002000a
jmp 0x4ea050
mov r8d, r12d
call sym.a.out.exe_lj_ctype_addname
cmp dword [r15 + 4], 0x2c
jne 0x4ea0f2
mov rcx, r15
mov ebx, r12d
call fcn.004e7230
mov eax, dword [r15 + 4]
cmp eax, 0x7d
je 0x4ea0f2
cmp eax, 0x100
mov rbp, qword [r15 + 0x10]
jne 0x4ea3ad
mov r11d, dword [r15 + 0xc]
test r11d, r11d
jne 0x4ea399
mov rcx, r15
call fcn.004e7230
cmp dword [r15 + 4], 0x3d
je 0x4ea2a5
mov rcx, qword [r15 + 0x40]
shl rbx, 4
mov rdx, qword [rsp + 0x28]
call sym.a.out.exe_lj_ctype_new
mov rcx, qword [r15 + 0x40]
mov rdx, qword [rsp + 0x48]
mov r12d, eax
add rbx, qword [rcx]
mov word [rbx + 8], ax
or byte [rbp + 4], 0x20
mov dword [rdx + 0xc], ebp
mov eax, dword [rsp + 0x44]
or eax, 0x2000000
sub eax, 0x50000000
mov dword [rdx], eax
mov r8d, dword [rsp + 0x40]
lea eax, [r8 + 1]
mov dword [rdx + 4], r8d
cmp eax, 0x80000000
mov dword [rsp + 0x40], eax
jne 0x4ea025
mov r8d, r12d
mov dword [rsp + 0x44], 0xa
call sym.a.out.exe_lj_ctype_addname
cmp dword [r15 + 4], 0x2c
je 0x4ea038
mov edx, 0x7d
mov rcx, r15
call fcn.004e7d80
mov rdx, qword [r15 + 0x40]
mov eax, r14d
shl rax, 4
mov ebx, dword [rsp + 0x34]
add rax, qword [rdx]
mov dword [rax], ebx
mov dword [rax + 4], 4
jmp 0x4e9e95
test esi, 0x100
jne 0x4e9f81
test r14d, r14d
jne 0x4e9f90
mov ecx, esi
and ecx, 1
je 0x4ea1b0
mov edx, dword [rdi + 0x2c]
mov eax, dword [rdi]
mov r8d, edx
and r8d, 0x3000000
add r8d, 0x40000000
cmp eax, 0x63
ja 0x4ea3e6
mov ecx, eax
shl rcx, 4
add rcx, rdi
mov dword [rcx + 0x40], r8d
mov dword [rcx + 0x44], 0xffffffff
xor r8d, r8d
mov dword [rcx + 0x4c], 0
and edx, 0xfcffffff
mov word [rcx + 0x48], r8w
mov r8d, dword [rdi + 4]
shl r8, 4
add r8, rdi
movzx r9d, word [r8 + 0x4a]
mov word [rcx + 0x4a], r9w
lea ecx, [rax + 1]
mov word [r8 + 0x4a], ax
mov dword [rdi], ecx
mov dword [rdi + 4], eax
mov dword [rdi + 0x2c], edx
jmp 0x4e9fa1
xor eax, eax
test esi, 0x400
setne al
shl eax, 0x17
test sil, 2
je 0x4ea280
test esi, 0xfff079f5
jne 0x4ea3c8
or eax, 0x8000000
mov edx, 0x8800000
test esi, 0x200
cmove eax, edx
test r13d, r13d
jne 0x4ea306
mov r13d, 1
mov edx, dword [rdi + 0x2c]
add eax, ecx
mov r8d, edx
and r8d, 0x3000000
add r8d, eax
mov eax, dword [rdi]
cmp eax, 0x63
ja 0x4ea3e6
mov ecx, eax
shl rcx, 4
add rcx, rdi
mov dword [rcx + 0x40], r8d
mov dword [rcx + 0x44], r13d
jmp 0x4ea16f
mov rcx, r15
mov r14d, dword [r15 + 0xc]
call fcn.004e7230
jmp 0x4e9e95
mov r8d, 0x10800000
mov rdx, rdi
mov rcx, r15
call fcn.004e9800
mov r14d, eax
jmp 0x4e9e95
mov r8d, 0x10000000
mov rdx, rdi
mov rcx, r15
call fcn.004e9800
mov r14d, eax
jmp 0x4e9e95
test sil, 0x10
je 0x4ea300
test sil, 0x20
je 0x4ea340
mov ecx, 0x40000
mov eax, 0x4000000
mov r13d, 0x10
jmp 0x4ea1f6
mov rcx, r15
call fcn.004e7230
mov rdx, qword [rsp + 0x38]
mov rcx, r15
call fcn.004e9020
cmp dword [rsp + 0x44], 0xa
je 0x4ea2e4
mov r9d, dword [rsp + 0x40]
mov eax, 0x50020009
mov dword [rsp + 0x44], 9
test r9d, r9d
cmovns eax, dword [rsp + 0x34]
mov dword [rsp + 0x34], eax
jmp 0x4ea07f
mov r10d, dword [rsp + 0x40]
test r10d, r10d
js 0x4ea07f
mov dword [rsp + 0x44], 9
jmp 0x4ea07f
test sil, 4
je 0x4ea312
bsr ecx, r13d
shl ecx, 0x10
jmp 0x4ea1f6
test sil, 0x80
jne 0x4ea35c
test sil, 0x40
jne 0x4ea36c
test sil, 0x20
je 0x4ea37c
or eax, 0x400000
mov ecx, 0x20000
mov r13d, 4
jmp 0x4ea1f6
bsr eax, r13d
shl eax, 0x10
mov ecx, eax
mov eax, 0x4000000
jmp 0x4ea1f6
movzx r14d, r14w
jmp 0x4e9ef3
mov ecx, 0x10000
mov r13d, 2
jmp 0x4ea1f6
mov ecx, 0x30000
mov r13d, 8
jmp 0x4ea1f6
test r13d, r13d
jne 0x4ea306
test esi, 0x600
je 0x4ea3ba
mov ecx, 0x20000
mov r13d, 4
jmp 0x4ea1f6
lea r9, [rbp + 0x10]
mov r8d, 0xce6
xor edx, edx
mov rcx, r15
call fcn.004e6c20
mov edx, 0x100
mov rcx, r15
call fcn.004e7200
mov r8d, 0xca7
mov rcx, r15
call fcn.004e6c20
mov r8d, 0xc5f
xor edx, edx
mov rcx, r15
call fcn.004e6c20
mov r8d, 0xc95
mov rcx, r15
call fcn.004e6c20
mov rcx, rdi
call fcn.004e7da0
nop
nop