Function at 0x140246420
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
cmp dword [rcx + 0x78], 0
mov r10, qword [rcx + 0x58]
mov r8, rcx
je 0x1402464fe
mov eax, dword [rcx + 8]
mov r14, qword [rcx + 0x10]
mov qword [rcx + 0x40], 0
test eax, eax
jle 0x1402464e9
mov ebp, eax
nop word [rax + rax]
mov edi, dword [r14]
mov rsi, qword [r14 + 8]
xor ebx, ebx
test edi, edi
jle 0x1402464dc
mov r11d, dword [r8 + 0x40]
mov r9d, dword [r8 + 0x44]
add rsi, 0x14
nop dword [rax]
mov ecx, dword [rsi - 4]
mov edx, 1
mov eax, 1
sub ecx, ebx
dec ecx
add ecx, edi
shl edx, cl
mov ecx, dword [rsi]
sub ecx, ebx
dec ecx
imul edx, dword [r14 + 0x10]
add ecx, edi
shl eax, cl
imul eax, dword [r14 + 0x14]
test r11d, r11d
je 0x1402464b5
cmp r11d, edx
cmovl edx, r11d
mov r11d, edx
mov dword [r8 + 0x40], edx
test r9d, r9d
je 0x1402464c8
cmp r9d, eax
cmovl eax, r9d
mov dword [r8 + 0x44], eax
mov edi, dword [r14]
inc ebx
add rsi, 0x20
mov r9d, eax
cmp ebx, edi
jl 0x140246480
add r14, 0x18
dec rbp
jne 0x140246460
mov eax, dword [r8 + 0x4c]
mov dword [r8 + 0x78], 0
mov dword [r8 + 0x3c], eax
jmp 0x14024658f
inc dword [r8 + 0x34]
mov r9d, dword [r8 + 0x34]
cmp r9d, dword [r8]
jge 0x140246519
movzx eax, word [r10 + 8]
cmp r9d, eax
jl 0x1402466fe
inc dword [r8 + 0x2c]
add qword [r8 + 0x20], 0x20
mov rbx, qword [r8 + 0x18]
mov ecx, dword [r8 + 0x2c]
mov r11d, dword [rbx]
cmp ecx, r11d
jge 0x14024653f
movzx eax, byte [r10 + 2]
cmp ecx, eax
jl 0x1402465e2
inc dword [r8 + 0x28]
add qword [r8 + 0x18], 0x18
mov ecx, dword [r8 + 0x28]
cmp ecx, dword [r8 + 8]
jge 0x14024655b
movzx eax, word [r10 + 6]
cmp ecx, eax
jl 0x1402465c2
mov ecx, dword [r8 + 0x38]
mov eax, ecx
cdq
idiv dword [r8 + 0x40]
sub ecx, edx
add ecx, dword [r8 + 0x40]
mov dword [r8 + 0x38], ecx
mov eax, dword [r8 + 0x50]
cmp dword [r8 + 0x38], eax
jl 0x1402465a7
mov ecx, dword [r8 + 0x3c]
mov eax, ecx
cdq
idiv dword [r8 + 0x44]
sub ecx, edx
add ecx, dword [r8 + 0x44]
mov dword [r8 + 0x3c], ecx
mov eax, dword [r8 + 0x54]
cmp dword [r8 + 0x3c], eax
jge 0x14024672d
mov eax, dword [r8 + 0x48]
mov dword [r8 + 0x38], eax
jmp 0x140246570
movzx eax, word [r10 + 4]
mov dword [r8 + 0x28], eax
lea rcx, [rax + rax*2]
mov rax, qword [r8 + 0x10]
lea rcx, [rax + rcx*8]
mov qword [r8 + 0x18], rcx
jmp 0x140246548
movzx eax, byte [r10 + 1]
mov dword [r8 + 0x2c], eax
mov ecx, eax
mov rax, qword [r8 + 0x18]
shl rcx, 5
add rcx, qword [rax + 8]
mov qword [r8 + 0x20], rcx
jmp 0x140246522
mov rdi, qword [r8 + 0x20]
cmp dword [rdi], 0
je 0x140246519
mov ebp, dword [rbx + 0x10]
mov r9d, dword [r8 + 0x48]
mov r15d, dword [r8 + 0x4c]
mov r14d, dword [rdi + 0x14]
mov r12d, dword [r8 + 0x38]
sub r11d, ecx
dec r11d
mov esi, ebp
lea eax, [r9 - 1]
mov ecx, r11d
add r14d, r11d
shl esi, cl
add eax, esi
mov dword [rsp + 0x50], esi
cdq
idiv esi
mov esi, dword [rbx + 0x14]
mov ebx, esi
shl ebx, cl
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], eax
lea eax, [r15 - 1]
add eax, ebx
cdq
idiv ebx
mov ebx, dword [rdi + 0x10]
add ebx, r11d
mov r13d, eax
cmp r12d, r9d
jne 0x14024665f
mov eax, dword [rsp + 0x40]
xor edx, edx
mov r9d, 1
shl eax, cl
mov ecx, ebx
shl r9d, cl
div r9d
test edx, edx
jne 0x140246671
mov ecx, ebx
mov eax, r12d
shl ebp, cl
cdq
idiv ebp
test edx, edx
jne 0x140246519
mov ebx, dword [r8 + 0x3c]
cmp ebx, r15d
jne 0x140246697
mov ecx, r11d
xor edx, edx
mov eax, r13d
shl eax, cl
mov ecx, r14d
mov r9d, 1
shl r9d, cl
div r9d
test edx, edx
jne 0x1402466a9
mov ecx, r14d
mov eax, ebx
shl esi, cl
cdq
idiv esi
test edx, edx
jne 0x140246519
mov r9d, dword [rsp + 0x48]
mov ecx, dword [rdi + 0x14]
mov r11d, dword [rsp + 0x50]
lea eax, [r9 - 1]
shr r13d, cl
add eax, ebx
cdq
idiv r9d
mov r9d, eax
lea eax, [r11 - 1]
add eax, r12d
sar r9d, cl
mov ecx, dword [rdi + 0x10]
cdq
sub r9d, r13d
imul r9d, dword [rdi + 0x18]
idiv r11d
mov dword [r8 + 0x34], 0
sar eax, cl
add r9d, eax
mov eax, dword [rsp + 0x40]
shr eax, cl
sub r9d, eax
mov dword [r8 + 0x30], r9d
jmp 0x140246502
mov rax, qword [r8 + 0x20]
movsxd rdx, dword [r8 + 0x30]
mov rcx, qword [rax + 8]
cmp r9d, dword [rcx + rdx*4]
lea rax, [rcx + rdx*4]
jl 0x1402464fe
inc dword [rax]
xor eax, eax
mov rbx, qword [rsp + 0x58]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, 1
mov rbx, qword [rsp + 0x58]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret