Function at 0x1400038e0
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 rbx
push rdi
push r12
push r13
sub rsp, 0x98
mov r10d, dword [rdx + 0x158]
mov edi, r8d
imul r10d, dword [rdx + 0x150]
mov r8, rdx
mov eax, dword [rcx + 0x74]
xor edx, edx
mov r11d, r9d
mov r13, rcx
div r10d
mov r10d, dword [r8 + 0x15c]
xor edx, edx
imul r10d, dword [r8 + 0x154]
mov ebx, eax
mov dword [rsp + 0x44], eax
mov eax, dword [rcx + 0x78]
div r10d
xor edx, edx
mov r12d, eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], edx
cmp dword [r8 + 0x5c], edx
jle 0x140003d8a
mov r10, qword [rsp + 0xe8]
xor r9d, r9d
mov rcx, qword [rsp + 0xe0]
mov qword [rsp + 0x90], rbp
sub r10, rcx
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x80], r14
mov qword [rsp + 0xe8], r10
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x60], r9
nop dword [rax + rax]
mov r14, qword [r8 + 0x68]
add r14, r9
mov esi, dword [r14 + 8]
mov ebp, esi
imul ebp, ebx
mov ebx, dword [r14 + 0xc]
mov r15d, ebx
imul r15d, r12d
xor r12d, r12d
imul ebx, r11d
imul esi, edi
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x3c], ebx
cmp dword [r14 + 0x20], r12d
jbe 0x140003d3f
add rcx, r10
mov qword [rsp + 0x68], rcx
nop word [rax + rax]
mov rdx, qword [rcx]
mov r8d, r12d
mov rax, qword [r13 + 8]
mov rcx, r13
mov r9d, dword [r14 + 0xc]
mov byte [rsp + 0x20], 1
call qword [rax + 0x40]
mov r9d, dword [r14 + 0xc]
add ebx, r12d
mov dword [rsp + 0x34], ebx
mov rdi, rax
mov byte [rsp + 0x20], 0
cmp ebx, r15d
jae 0x140003a47
mov rax, qword [rsp + 0xe0]
mov r8d, r15d
mov r10, qword [r13 + 8]
sub r8d, r9d
sub r8d, r12d
mov rcx, r13
sub r8d, dword [rsp + 0x3c]
mov rdx, qword [rax]
call qword [r10 + 0x40]
jmp 0x140003a5f
mov rcx, qword [rsp + 0xe0]
mov r8d, ebx
mov rax, qword [r13 + 8]
mov rdx, qword [rcx]
mov rcx, r13
call qword [rax + 0x40]
mov rcx, rax
mov qword [rsp + 0x50], rax
mov eax, dword [r14 + 0xc]
xor r13d, r13d
test eax, eax
jle 0x140003ceb
mov edx, dword [rsp + 0x30]
sub rdi, rcx
mov qword [rsp + 0x58], rdi
mov r12, rcx
nop word [rax + rax]
mov r15, qword [rdi + r12]
cmp ebx, edx
jae 0x140003c33
sub eax, r13d
xor r10d, r10d
dec eax
cdqe
mov r11, qword [rcx + rax*8]
cmp dword [r14 + 0x1c], r10d
jbe 0x140003ccd
nop dword [rax]
nop dword [rax + rax]
mov eax, r10d
lea ecx, [r10 + rsi]
shl rax, 7
add rax, r15
cmp ecx, ebp
jae 0x140003b5a
mov edx, ebp
mov r9d, 4
sub edx, r10d
sub edx, esi
dec edx
shl rdx, 7
add rdx, r11
nop dword [rax]
mov r8d, 4
nop word [rax + rax]
movzx ecx, word [rdx]
mov word [rax], cx
movzx ecx, word [rdx + 2]
add rdx, 4
neg cx
mov word [rax + 2], cx
add rax, 4
sub r8, 1
jne 0x140003b00
mov r8d, 4
nop word [rax + rax]
movzx ecx, word [rdx]
neg cx
mov word [rax], cx
movzx ecx, word [rdx + 2]
add rdx, 4
mov word [rax + 2], cx
add rax, 4
sub r8, 1
jne 0x140003b30
sub r9, 1
jne 0x140003af0
jmp 0x140003c18
mov edx, ecx
mov r8d, 4
shl rdx, 7
add rdx, r11
nop dword [rax]
movzx ecx, word [rdx]
lea rdx, [rdx + 0x20]
mov word [rax], cx
lea rax, [rax + 0x20]
movzx ecx, word [rdx - 0x1e]
mov word [rax - 0x1e], cx
movzx ecx, word [rdx - 0x1c]
mov word [rax - 0x1c], cx
movzx ecx, word [rdx - 0x1a]
mov word [rax - 0x1a], cx
movzx ecx, word [rdx - 0x18]
mov word [rax - 0x18], cx
movzx ecx, word [rdx - 0x16]
mov word [rax - 0x16], cx
movzx ecx, word [rdx - 0x14]
mov word [rax - 0x14], cx
movzx ecx, word [rdx - 0x12]
mov word [rax - 0x12], cx
movzx ecx, word [rdx - 0x10]
neg cx
mov word [rax - 0x10], cx
movzx ecx, word [rdx - 0xe]
neg cx
mov word [rax - 0xe], cx
movzx ecx, word [rdx - 0xc]
neg cx
mov word [rax - 0xc], cx
movzx ecx, word [rdx - 0xa]
neg cx
mov word [rax - 0xa], cx
movzx ecx, word [rdx - 8]
neg cx
mov word [rax - 8], cx
movzx ecx, word [rdx - 6]
neg cx
mov word [rax - 6], cx
movzx ecx, word [rdx - 4]
neg cx
mov word [rax - 4], cx
movzx ecx, word [rdx - 2]
neg cx
mov word [rax - 2], cx
sub r8, 1
jne 0x140003b70
inc r10d
cmp r10d, dword [r14 + 0x1c]
jb 0x140003ac0
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x30]
jmp 0x140003ccd
mov rdi, qword [r12]
xor ebx, ebx
cmp dword [r14 + 0x1c], ebx
jbe 0x140003cc4
lea eax, [rbx + rsi]
cmp eax, ebp
jae 0x140003c91
mov edx, ebp
mov ecx, ebx
sub edx, ebx
shl rcx, 7
sub edx, esi
add rcx, r15
dec edx
mov r8d, 0x20
shl rdx, 7
add rdx, rdi
nop dword [rax + rax]
movzx eax, word [rdx]
lea rdx, [rdx + 4]
mov word [rcx], ax
lea rcx, [rcx + 4]
movzx eax, word [rdx - 2]
neg ax
mov word [rcx - 2], ax
sub r8, 1
jne 0x140003c70
jmp 0x140003cb3
mov eax, ebx
mov r8d, 1
mov ecx, esi
add rcx, rax
mov edx, ebx
shl rcx, 7
shl rdx, 7
add rcx, rdi
add rdx, r15
call sub.libjpeg.dll_jcopy_block_row
inc ebx
cmp ebx, dword [r14 + 0x1c]
jb 0x140003c43
mov rcx, qword [rsp + 0x50]
mov edx, dword [rsp + 0x30]
mov rdi, qword [rsp + 0x58]
mov ebx, dword [rsp + 0x34]
mov eax, dword [r14 + 0xc]
inc r13d
add r12, 8
cmp r13d, eax
jl 0x140003a90
mov r15d, dword [rsp + 0x30]
mov r12d, dword [rsp + 0x38]
add r12d, dword [r14 + 0xc]
mov r13, qword [rsp + 0xc0]
mov ebx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x68]
mov dword [rsp + 0x38], r12d
cmp r12d, dword [r14 + 0x20]
jb 0x1400039f0
mov rcx, qword [rsp + 0xe0]
mov edx, dword [rsp + 0x40]
mov r8, qword [rsp + 0xc8]
mov r9, qword [rsp + 0x60]
mov r10, qword [rsp + 0xe8]
mov r11d, dword [rsp + 0xd8]
mov edi, dword [rsp + 0xd0]
mov ebx, dword [rsp + 0x44]
inc edx
mov r12d, dword [rsp + 0x48]
add r9, 0x60
add rcx, 8
mov dword [rsp + 0x40], edx
mov qword [rsp + 0x60], r9
mov qword [rsp + 0xe0], rcx
cmp edx, dword [r8 + 0x5c]
jl 0x1400039a0
mov r15, qword [rsp + 0x78]
mov r14, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x90]
add rsp, 0x98
pop r13
pop r12
pop rdi
pop rbx
ret