Function at 0x1400035a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x98
mov r10d, dword [rdx + 0x15c]
mov r11d, r8d
imul r10d, dword [rdx + 0x154]
mov r8, rdx
mov eax, dword [rcx + 0x78]
xor edx, edx
mov rsi, rcx
xor ecx, ecx
mov dword [rsp + 0x34], ecx
div r10d
mov edi, eax
mov dword [rsp + 0x40], eax
cmp dword [r8 + 0x5c], ecx
jle 0x1400038d1
mov r10, qword [rsp + 0xd8]
xor edx, edx
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x70], r14
mov r14, qword [rsp + 0xd0]
sub r10, r14
mov qword [rsp + 0x68], r15
mov qword [rsp + 0xd8], r10
mov qword [rsp + 0x50], rdx
nop dword [rax]
mov rbx, qword [r8 + 0x68]
xor r13d, r13d
add rbx, rdx
mov dword [rsp + 0x30], r13d
mov r15d, dword [rbx + 0xc]
mov r12d, r15d
mov eax, dword [rbx + 8]
imul eax, r11d
imul r15d, r9d
imul r12d, edi
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], r15d
cmp dword [rbx + 0x20], r13d
jbe 0x140003885
nop dword [rax + rax]
mov rax, qword [rsi + 8]
mov r8d, r13d
mov r9d, dword [rbx + 0xc]
mov rcx, rsi
mov rdx, qword [r10 + r14]
mov byte [rsp + 0x20], 1
call qword [rax + 0x40]
mov r9d, dword [rbx + 0xc]
lea ebp, [r15 + r13]
mov rdx, qword [r14]
mov rdi, rax
mov byte [rsp + 0x20], 0
mov rcx, rsi
cmp ebp, r12d
jae 0x1400036cb
mov r10, qword [rsi + 8]
mov r8d, r12d
sub r8d, r9d
sub r8d, r13d
sub r8d, r15d
call qword [r10 + 0x40]
jmp 0x1400036d5
mov rax, qword [rsi + 8]
mov r8d, ebp
call qword [rax + 0x40]
mov qword [rsp + 0x48], rax
xor esi, esi
mov eax, dword [rbx + 0xc]
test eax, eax
jle 0x14000383d
mov r14d, dword [rsp + 0x38]
mov r13, qword [rsp + 0x48]
shl r14, 7
mov r15, r13
sub r15, rdi
nop dword [rax + rax]
cmp ebp, r12d
jae 0x140003807
mov r10, qword [rdi]
sub eax, esi
dec eax
xor r8d, r8d
cdqe
mov r11, qword [r13 + rax*8]
add r11, r14
cmp dword [rbx + 0x1c], r8d
jbe 0x14000381a
nop word [rax + rax]
mov eax, r8d
mov r9d, 4
shl rax, 7
lea rdx, [rax + r10]
add rax, r11
nop dword [rax]
nop dword [rax + rax]
movzx ecx, word [rax]
lea rax, [rax + 0x20]
mov word [rdx], cx
lea rdx, [rdx + 0x20]
movzx ecx, word [rax - 0x1e]
mov word [rdx - 0x1e], cx
movzx ecx, word [rax - 0x1c]
mov word [rdx - 0x1c], cx
movzx ecx, word [rax - 0x1a]
mov word [rdx - 0x1a], cx
movzx ecx, word [rax - 0x18]
mov word [rdx - 0x18], cx
movzx ecx, word [rax - 0x16]
mov word [rdx - 0x16], cx
movzx ecx, word [rax - 0x14]
mov word [rdx - 0x14], cx
movzx ecx, word [rax - 0x12]
mov word [rdx - 0x12], cx
movzx ecx, word [rax - 0x10]
neg cx
mov word [rdx - 0x10], cx
movzx ecx, word [rax - 0xe]
neg cx
mov word [rdx - 0xe], cx
movzx ecx, word [rax - 0xc]
neg cx
mov word [rdx - 0xc], cx
movzx ecx, word [rax - 0xa]
neg cx
mov word [rdx - 0xa], cx
movzx ecx, word [rax - 8]
neg cx
mov word [rdx - 8], cx
movzx ecx, word [rax - 6]
neg cx
mov word [rdx - 6], cx
movzx ecx, word [rax - 4]
neg cx
mov word [rdx - 4], cx
movzx ecx, word [rax - 2]
neg cx
mov word [rdx - 2], cx
sub r9, 1
jne 0x140003750
inc r8d
cmp r8d, dword [rbx + 0x1c]
jb 0x140003730
jmp 0x14000381a
mov rcx, qword [r15 + rdi]
mov r8d, dword [rbx + 0x1c]
add rcx, r14
mov rdx, qword [rdi]
call sub.libjpeg.dll_jcopy_block_row
mov eax, dword [rbx + 0xc]
inc esi
add rdi, 8
cmp esi, eax
jl 0x140003700
mov r13d, dword [rsp + 0x30]
mov r14, qword [rsp + 0xd0]
mov r15d, dword [rsp + 0x3c]
add r13d, dword [rbx + 0xc]
mov rsi, qword [rsp + 0xb0]
mov r10, qword [rsp + 0xd8]
mov dword [rsp + 0x30], r13d
cmp r13d, dword [rbx + 0x20]
jb 0x140003680
mov ecx, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0xb8]
mov r9d, dword [rsp + 0xc8]
mov r11d, dword [rsp + 0xc0]
mov edi, dword [rsp + 0x40]
inc ecx
add rdx, 0x60
add r14, 8
mov dword [rsp + 0x34], ecx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0xd0], r14
cmp ecx, dword [r8 + 0x5c]
jl 0x140003640
mov r15, qword [rsp + 0x68]
mov r14, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
mov r12, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x90]
add rsp, 0x98
pop rdi
pop rsi
ret