Function at 0x140024d60
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400ada20]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx eax, word [rcx + 4]
mov rsi, rcx
mov rbp, qword [rsp + 0xb8]
xorps xmm0, xmm0
mov word [rdx + 2], ax
xorps xmm1, xmm1
movzx ecx, word [rcx + 8]
mov rdi, r8
mov word [rdx + 4], cx
mov r11, r9
mov r8d, dword [rsi + 0xc]
mov rbx, rdx
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [0x140091b40]
movdqa xmmword [rsp + 0x30], xmm1
movdqa xmm1, xmmword [0x140091b30]
movdqa xmmword [rsp + 0x40], xmm0
movdqa xmmword [rsp + 0x50], xmm1
cmp r8d, 0x16
jl 0x140024fc0
cmp dword [rsi + 0x10], 0x16
jl 0x140024fc0
mov edx, 0x7fff
cmp ax, dx
ja 0x140024fc0
cmp cx, dx
ja 0x140024fc0
movzx r9d, ax
lea eax, [r8 - 1]
add eax, r9d
movzx r10d, cx
cdq
idiv r8d
mov r8d, eax
mov byte [rbx + 0xc], r8b
mov ecx, dword [rsi + 0x10]
lea eax, [rcx - 1]
add eax, r10d
cdq
idiv ecx
movzx ecx, r8b
dec ecx
mov byte [rbx + 0xd], al
imul ecx, dword [rsi + 0xc]
sub r9d, ecx
cmp r9d, 0x16
jl 0x140024fc0
movzx eax, al
dec eax
imul eax, dword [rsi + 0x10]
sub r10d, eax
cmp r10d, 0x16
jl 0x140024fc0
xor edx, edx
mov qword [rbx + 0x10], rdx
movzx eax, byte [rsi + 0x24]
mov byte [rbx + 9], al
lea ecx, [rax + 1]
add al, al
add cl, al
mov byte [rbx + 8], cl
movzx eax, byte [rsi + 0x18]
mov byte [rbx], al
movzx eax, byte [rsi + 0x14]
mov byte [rbx + 0xa], al
movzx eax, byte [rsi + 0x20]
mov byte [rbx + 0xb], al
mov eax, dword [rsi + 0x20]
shl eax, 2
movsxd rcx, eax
movzx eax, byte [rsp + rcx*4 + 0x28]
inc al
add al, byte [rsi + 0x14]
mov byte [rbx + 6], al
movsxd rax, dword [rsi + 0x30]
mov qword [rbx + 0x48], rdx
add rax, r11
mov qword [rbx + 0x18], rax
mov eax, dword [rsp + 0xb0]
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x40], rdx
mov qword [rbx + 0x38], rdx
mov qword [rbx + 0x30], rdx
mov qword [rbx + 0x28], rdx
cmp byte [rbx + 0xb], 3
movzx eax, byte [rsi + 0x34]
mov byte [rbx + 7], al
jne 0x140024f09
cmp byte [rbx], 4
jne 0x140024f09
cmp byte [rbx + 0xa], 8
jbe 0x140024f09
movzx ecx, byte [rbx + 6]
movzx eax, word [rbx + 4]
add ecx, 7
shr ecx, 3
imul ecx, eax
movzx eax, word [rbx + 2]
imul ecx, eax
shl ecx, 2
movsxd rdx, ecx
lea rcx, [rbx + 0x58]
call sym.EURawImg.exe_public:_void____ptr64___cdecl_libraw_memmgr::malloc_unsigned_long_long_unsigned___int64_____ptr64
mov qword [rbx + 0x48], rax
test rax, rax
je 0x140024fc0
movzx r8d, word [rbx + 2]
mov edx, r8d
add edx, edx
cmp byte [rbx], 1
je 0x140024fa4
mov ecx, dword [rsi + 0x1c]
test ecx, ecx
je 0x140024f8c
sub ecx, 1
je 0x140024f6e
sub ecx, 1
je 0x140024f50
cmp ecx, 1
jne 0x140024fa8
lea rax, [rdi + 2]
mov qword [rbx + 0x40], rdi
mov qword [rbx + 0x38], rax
lea rax, [rdi + rdx*2]
mov qword [rbx + 0x30], rax
add rax, 2
mov qword [rbx + 0x28], rax
jmp 0x140024fa8
lea rax, [rdi + 2]
mov qword [rbx + 0x38], rdi
mov qword [rbx + 0x40], rax
lea rax, [rdi + rdx*2]
mov qword [rbx + 0x28], rax
add rax, 2
mov qword [rbx + 0x30], rax
jmp 0x140024fa8
lea rax, [rdi + 2]
mov qword [rbx + 0x30], rdi
mov qword [rbx + 0x28], rax
lea rax, [rdi + rdx*2]
mov qword [rbx + 0x40], rax
add rax, 2
mov qword [rbx + 0x38], rax
jmp 0x140024fa8
lea rax, [rdi + 2]
mov qword [rbx + 0x30], rax
lea rax, [rdi + r8*4]
mov qword [rbx + 0x38], rax
add rax, 2
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x28], rdi
mov r9d, dword [rsp + 0xc0]
mov r8, rbp
mov rdx, rbx
mov rcx, rsi
call fcn.140023b10
jmp 0x140024fc5
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14007c510
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret