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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
and esp, 0xfffffff0
add esp, 0xffffff80
mov edi, dword [ebp + 0x10]
mov eax, dword [eax + 0x818]
mov dword [esp + 0x5c], edx
test edi, edi
mov dword [esp + 0x40], eax
setne al
cmp dword [esi + 0x5a4], 1
mov dword [esp + 0x58], ecx
sete dl
and edx, eax
movzx eax, al
add eax, 0x164
movzx ebx, dl
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + eax*4 + 4]
mov byte [esp + 0x3c], bl
mov dword [esp + 0x4c], eax
xor eax, eax
test edx, edx
je 0x684c2230
mov ecx, ebx
mov eax, 8
shl eax, cl
add eax, dword [ebp + 0xc]
mov edx, dword [esi + 4]
mov edx, dword [edx + 0x3f4]
mov ecx, edx
sub ecx, ebx
mov ebx, dword [esi + edi*4 + 0xdf8]
add ecx, 6
sar eax, cl
mov ecx, edx
mov edx, dword [esi + 0x80c]
mov dword [esp + 0x50], eax
mov eax, 4
shl eax, cl
imul eax, dword [esp + 0x50]
sub eax, 4
cmp dword [edx + 0xc], 1
seta dl
movzx edx, dl
imul eax, edx
mov edx, dword [esp + 0x4c]
and edx, 1
mov dword [esp + 0x44], edx
jne 0x684c2583
mov ecx, dword [esp + 0x4c]
sar ecx, 1
imul eax, ecx
add eax, dword [ebp + 8]
mov dword [esp + 0x48], ecx
lea eax, [ebx + eax*2]
movzx ecx, byte [esp + 0x3c]
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0xc]
cmp dword [ebp + 0xc], 1
sbb edi, edi
and edi, 0xfffffff8
add edi, 0x40
sar edi, cl
cmp edi, eax
cmovg edi, eax
mov eax, dword [ebp + 0x1c]
movzx eax, byte [eax]
cmp al, 2
je 0x684c24b1
cmp al, 3
jne 0x684c2490
mov eax, dword [ebp + 0x1c]
movzx eax, byte [eax + 7]
movzx edx, word [eax*4 + 0x684f9680]
movzx eax, word [eax*4 + 0x684f9682]
mov ecx, edx
mov ebx, eax
mov dword [esp + 0x60], edx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x64], eax
mov eax, dword [ebp + 0x1c]
movsx dx, byte [edx + 9]
movsx ax, byte [eax + 8]
add edx, eax
mov word [esp + 0x68], ax
mov eax, pe_nt_image_headers32
sub eax, edx
mov word [esp + 0x6a], ax
xor eax, eax
test cx, cx
setne al
test bx, bx
mov ebx, dword [esp + 0x40]
lea edx, [eax + 2]
cmovne eax, edx
mov eax, dword [ebx + eax*4 + 0x684]
mov dword [esp + 0x40], eax
mov ebx, dword [ebp + 0xc]
add ebx, edi
cmp ebx, dword [ebp + 0x18]
jg 0x684c2487
movzx ecx, byte [esp + 0x3c]
mov eax, 0x40
mov edx, dword [ebp + 0x20]
sar eax, cl
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x48]
shl eax, 3
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x50]
add eax, 1
mov dword [esp + 0x38], eax
jmp 0x684c238b
test edi, edi
je 0x684c2487
mov ecx, dword [esp + 0x34]
add ebx, edi
add dword [esp + 0x54], ecx
cmp ebx, dword [ebp + 0x18]
jg 0x684c2487
mov eax, dword [esp + 0x38]
cmp dword [esi + 0x870], eax
mov dword [esp + 0x14], edi
setne al
cmp ebx, dword [ebp + 0x18]
setne cl
or eax, ecx
mov ecx, dword [esp + 0x4c]
movzx eax, al
neg eax
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x5c]
xor eax, edx
and eax, 8
mov dword [esp], ecx
xor edx, eax
mov eax, dword [esi + 0xabc]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 8], eax
call edx
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x50]
lea eax, [eax + edi*8]
imul edi, dword [esp + 0x48]
mov dword [esp + 0x58], eax
or edx, 4
lea eax, [ecx + edi*2]
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x3c]
sub edi, ebx
cmp edi, eax
cmovg edi, eax
mov eax, dword [esp + 0x44]
test eax, eax
je 0x684c2370
mov dword [esp + 8], 0x50
mov dword [esp + 4], 0x684fbe14
mov dword [esp], 0x684fbe4e
mov dword [ebp + 0x20], edx
call fcn.684d2880
test edi, edi
je 0x684c2487
mov dword [esp + 8], 0x50
add ebx, edi
mov dword [esp + 4], 0x684fbe14
mov dword [esp], 0x684fbe4e
call fcn.684d2880
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0x20]
add dword [esp + 0x54], ecx
cmp ebx, dword [ebp + 0x18]
jle 0x684c238b
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x4a
mov dword [esp + 4], str..._src_lr_apply_tmpl.c
mov dword [esp], str.lr__type__DAV1D_RESTORATION_SGRPROJ
call fcn.684d2880
jmp 0x684c22cd
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x1c]
movsx ax, byte [eax + 1]
mov ebx, eax
mov word [esp + 0x6c], ax
mov word [esp + 0x60], ax
mov eax, dword [ebp + 0x1c]
movsx edx, bl
movsx ax, byte [eax + 2]
mov byte [esp + 0x38], al
mov word [esp + 0x6a], ax
mov word [esp + 0x62], ax
movsx ax, byte [ecx + 3]
mov ecx, eax
mov word [esp + 0x68], ax
mov word [esp + 0x64], ax
movsx eax, byte [esp + 0x38]
add eax, edx
movsx edx, cl
add eax, edx
neg eax
lea eax, [eax + eax + 0x80]
mov word [esp + 0x66], ax
mov eax, dword [ebp + 0x1c]
movsx ax, byte [eax + 4]
mov ecx, eax
mov word [esp + 0x7c], ax
mov word [esp + 0x70], ax
mov eax, dword [ebp + 0x1c]
movsx ax, byte [eax + 5]
mov edx, eax
mov word [esp + 0x7a], ax
mov word [esp + 0x72], ax
mov eax, dword [ebp + 0x1c]
movsx ax, byte [eax + 6]
mov byte [esp + 0x38], al
mov word [esp + 0x78], ax
mov word [esp + 0x74], ax
movsx eax, dl
movsx edx, cl
add edx, eax
movsx eax, byte [esp + 0x38]
add eax, edx
mov edx, 0x40
sub edx, eax
xor eax, eax
add edx, edx
or bl, cl
mov ebx, dword [esp + 0x40]
sete al
mov word [esp + 0x76], dx
add eax, 0x1a0
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x40], eax
jmp 0x684c2333
mov dword [esp + 8], 0x50
mov dword [esp + 4], 0x684fbe14
mov dword [esp], 0x684fbe4e
mov dword [esp + 0x54], eax
call fcn.684d2880
mov eax, dword [esp + 0x54]
jmp 0x684c2282