Function at 0x140246860
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], 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 0x14024693c
mov eax, dword [rcx + 8]
mov r14, qword [rcx + 0x10]
mov qword [rcx + 0x40], 0
test eax, eax
jle 0x140246929
mov ebp, eax
nop
mov ebx, dword [r14]
mov rsi, qword [r14 + 8]
xor edi, edi
test ebx, ebx
jle 0x14024691c
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, edi
dec ecx
add ecx, ebx
sub ebx, edi
shl edx, cl
mov ecx, dword [rsi]
dec ecx
add ecx, ebx
imul edx, dword [r14 + 0x10]
shl eax, cl
imul eax, dword [r14 + 0x14]
test r11d, r11d
je 0x1402468f5
cmp r11d, edx
cmovl edx, r11d
mov r11d, edx
mov dword [r8 + 0x40], edx
test r9d, r9d
je 0x140246908
cmp r9d, eax
cmovl eax, r9d
mov dword [r8 + 0x44], eax
mov ebx, dword [r14]
inc edi
add rsi, 0x20
mov r9d, eax
cmp edi, ebx
jl 0x1402468c0
add r14, 0x18
dec rbp
jne 0x1402468a0
mov dword [r8 + 0x78], 0
movzx eax, byte [r10 + 1]
mov dword [r8 + 0x2c], eax
jmp 0x1402469b9
inc dword [r8 + 0x34]
mov r9d, dword [r8 + 0x34]
cmp r9d, dword [r8]
jge 0x140246957
movzx eax, word [r10 + 8]
cmp r9d, eax
jl 0x140246b45
inc dword [r8 + 0x28]
add qword [r8 + 0x18], 0x18
mov ecx, dword [r8 + 0x28]
movzx eax, word [r10 + 6]
cmp ecx, eax
jge 0x140246977
cmp ecx, dword [r8 + 8]
jl 0x140246a06
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 0x1402469e8
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
jl 0x1402469de
inc dword [r8 + 0x2c]
mov ecx, dword [r8 + 0x2c]
movzx eax, byte [r10 + 2]
cmp ecx, eax
jge 0x140246b65
cmp ecx, dword [r8 + 4]
jge 0x140246b65
mov eax, dword [r8 + 0x4c]
mov dword [r8 + 0x3c], eax
jmp 0x1402469ab
mov eax, dword [r8 + 0x48]
mov dword [r8 + 0x38], eax
jmp 0x14024698c
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 0x140246960
mov r11, qword [r8 + 0x18]
movsxd rdx, dword [r8 + 0x2c]
cmp edx, dword [r11]
jge 0x140246957
mov rbx, rdx
shl rbx, 5
add rbx, qword [r11 + 8]
mov qword [r8 + 0x20], rbx
cmp dword [rbx], 0
je 0x140246957
mov r9d, dword [r8 + 0x48]
mov edi, dword [r11]
mov r12d, dword [r11 + 0x10]
mov r14d, dword [r8 + 0x4c]
mov r13d, dword [r11 + 0x14]
mov esi, dword [rbx + 0x10]
mov ebp, dword [rbx + 0x14]
mov r15d, dword [r8 + 0x38]
sub edi, edx
dec edi
lea eax, [r9 - 1]
mov ecx, edi
add esi, edi
add ebp, edi
shl r12d, cl
shl r13d, cl
add eax, r12d
cdq
idiv r12d
mov dword [rsp + 0x40], eax
lea eax, [r14 - 1]
add eax, r13d
cdq
idiv r13d
mov dword [rsp + 0x38], eax
cmp r15d, r9d
jne 0x140246a99
mov eax, dword [rsp + 0x40]
xor edx, edx
mov r9d, 1
shl eax, cl
mov ecx, esi
shl r9d, cl
div r9d
test edx, edx
jne 0x140246ab3
mov ecx, esi
mov r9d, 1
mov eax, r15d
shl r9d, cl
cdq
idiv r9d
test edx, edx
jne 0x140246957
mov r11d, dword [r8 + 0x3c]
cmp r11d, r14d
jne 0x140246adc
mov ecx, edi
mov edi, dword [rsp + 0x38]
xor edx, edx
mov eax, edi
mov r9d, 1
shl eax, cl
mov ecx, ebp
shl r9d, cl
div r9d
test edx, edx
jne 0x140246afa
jmp 0x140246ae0
mov edi, dword [rsp + 0x38]
mov ecx, ebp
mov r9d, 1
mov eax, r11d
shl r9d, cl
cdq
idiv r9d
test edx, edx
jne 0x140246957
mov ecx, dword [rbx + 0x14]
lea eax, [r11 - 1]
add eax, r13d
shr edi, cl
cdq
idiv r13d
mov r9d, eax
lea eax, [r15 - 1]
add eax, r12d
sar r9d, cl
mov ecx, dword [rbx + 0x10]
cdq
sub r9d, edi
imul r9d, dword [rbx + 0x18]
idiv r12d
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 0x140246940
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 0x14024693c
inc dword [rax]
xor eax, eax
jmp 0x140246b6a
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret