Function at 0x140051120
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
movzx eax, byte [0x140216048]
cmp al, 1
jne 0x14005120d
mov r15d, ebp
and r15d, 3
cmp rbp, 4
jb 0x1400511c8
mov rbx, rbp
shr rbx, 2
shl rbx, 6
mov r14, rdi
jmp 0x1400511a9
mov rcx, rsi
mov rdx, r14
call fcn.140062e00
lea rdx, [r14 + 0x10]
mov rcx, rsi
call fcn.140062e00
lea rdx, [r14 + 0x20]
mov rcx, rsi
call fcn.140062e00
lea rdx, [r14 + 0x30]
mov rcx, rsi
call fcn.140062e00
add r14, 0x40
add rbx, 0xffffffffffffffc0
je 0x1400511c8
cmp qword [rsi + 0x220], 0
jne 0x140051170
mov rcx, rsi
mov rdx, r14
call fcn.140064050
add r14, 0x40
add rbx, 0xffffffffffffffc0
jne 0x1400511a9
test r15, r15
je 0x140051497
movabs rax, 0xffffffffffffffc
and rbp, rax
shl rbp, 4
add rdi, rbp
shl r15d, 4
nop dword [rax]
lea rbx, [rdi + 0x10]
mov rcx, rsi
mov rdx, rdi
call fcn.140062e00
mov rdi, rbx
add r15, 0xfffffffffffffff0
jne 0x1400511f0
jmp 0x140051497
test rbp, rbp
je 0x140051497
shl rbp, 4
add rbp, rdi
mov eax, dword [rsi + 0x10]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsi + 0x14]
mov eax, dword [rsi + 0x18]
mov edx, dword [rsi + 0x1c]
mov r8d, dword [rsi + 0x20]
mov qword [rsp + 0x60], r8
lea r8d, [r8 + r8*4]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x68], rdx
lea edx, [rdx + rdx*4]
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x78], rax
lea eax, [rax + rax*4]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x38], rcx
lea eax, [rcx + rcx*4]
mov qword [rsp + 0x48], rax
mov r12d, dword [rsi + 0x24]
mov r13d, dword [rsi + 0x28]
mov ebx, dword [rsi + 0x2c]
mov r14d, dword [rsi + 0x30]
mov qword [rsp + 0x40], rsi
mov r8d, dword [rsi + 0x34]
mov qword [rsp + 0x70], rbp
nop word cs:[rax + rax]
mov qword [rsp + 0x80], rdi
mov r9d, dword [rdi + 3]
mov r15d, dword [rdi + 6]
mov esi, dword [rdi + 9]
shr esi, 6
add esi, r14d
shr r15d, 4
and r15d, 0x3ffffff
add r15d, ebx
shr r9d, 2
and r9d, 0x3ffffff
add r9d, r13d
mov ebx, dword [rdi]
mov eax, 0x3ffffff
and ebx, eax
add ebx, r12d
mov edx, dword [rdi + 0xc]
shr edx, 8
lea r13d, [r8 + rdx]
add r13d, 0x1000000
mov rdx, rbx
mov rdi, qword [rsp + 0x30]
imul rdx, rdi
mov r8, r9
mov rcx, qword [rsp + 0x28]
imul r8, rcx
add r8, rdx
mov rdx, r15
mov r11, qword [rsp + 0x58]
imul rdx, r11
mov r14, rsi
mov rax, qword [rsp + 0x50]
imul r14, rax
add r14, rdx
add r14, r8
mov rdx, r13
imul rdx, qword [rsp + 0x48]
add rdx, r14
mov r8, rbx
mov r10, qword [rsp + 0x38]
imul r8, r10
mov rbp, r10
mov r14, r9
imul r14, rdi
add r14, r8
mov r8, r15
imul r8, rcx
mov r12, rsi
imul r12, r11
add r12, r8
add r12, r14
mov r8, r13
imul r8, rax
add r8, r12
mov r14, rbx
mov r10, qword [rsp + 0x78]
imul r14, r10
mov r12, r9
imul r12, rbp
add r12, r14
mov r14, r15
imul r14, rdi
mov rbp, rsi
imul rbp, rcx
add rbp, r14
add rbp, r12
mov r14, r13
imul r14, r11
add r14, rbp
mov r12, rbx
mov rax, qword [rsp + 0x68]
imul r12, rax
mov rbp, r9
imul rbp, r10
add rbp, r12
mov r12, r15
mov rcx, qword [rsp + 0x38]
imul r12, rcx
mov r11, rsi
imul r11, rdi
add r11, r12
add r11, rbp
mov rbp, qword [rsp + 0x70]
mov r12, r13
imul r12, qword [rsp + 0x28]
add r12, r11
imul rbx, qword [rsp + 0x60]
imul r9, rax
mov rdi, qword [rsp + 0x80]
add r9, rbx
imul r15, r10
imul rsi, rcx
add rsi, r15
add rsi, r9
imul r13, qword [rsp + 0x30]
add r13, rsi
mov r9, rdx
shr r9, 0x1a
and edx, 0x3ffffff
mov r9d, r9d
add r9, r8
mov r8, r9
shr r8, 0x1a
and r9d, 0x3ffffff
mov ebx, r8d
add rbx, r14
mov r8, rbx
shr r8, 0x1a
mov r14d, r8d
add r14, r12
mov r8, r14
shr r8, 0x1a
mov r8d, r8d
add r8, r13
mov r11, r8
shr r11, 0x1a
lea r12d, [r11 + r11*4]
add r12d, edx
mov r13d, r12d
shr r13d, 0x1a
add r13d, r9d
and ebx, 0x3ffffff
and r14d, 0x3ffffff
and r8d, 0x3ffffff
and r12d, 0x3ffffff
add rdi, 0x10
cmp rdi, rbp
jne 0x140051290
mov rax, qword [rsp + 0x40]
mov dword [rax + 0x24], r12d
mov dword [rax + 0x28], r13d
mov dword [rax + 0x2c], ebx
mov dword [rax + 0x30], r14d
mov dword [rax + 0x34], r8d
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret