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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebp, dword [esp + 0xa0]
mov eax, dword [ebp + 0x878]
mov ebx, dword [ebp + 0x4f4]
mov esi, dword [ebp + 0xe10]
mov dword [esp + 0x48], eax
imul eax, dword [esp + 0xa4]
shl eax, 2
cmp dword [ebp + 0x504], 1
mov dword [esp + 0x34], eax
sete cl
test bl, 1
jne 0x684d1755
sar ebx, 1
imul ebx, dword [esp + 0x34]
lea eax, [esi + ebx*2]
mov ebx, dword [ebp + 0x4f8]
mov esi, dword [ebp + 0xe14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x68], eax
test bl, 1
jne 0x684d1830
mov eax, ebx
sar eax, 1
imul eax, dword [esp + 0x34]
sar eax, cl
lea eax, [esi + eax*2]
mov esi, dword [ebp + 0xe18]
mov dword [esp + 0x6c], eax
sar ebx, 1
imul ebx, dword [esp + 0x34]
sar ebx, cl
lea eax, [esi + ebx*2]
mov ebx, dword [ebp + 0x594]
mov esi, dword [ebp + 0xe1c]
mov dword [esp + 0x70], eax
test bl, 1
jne 0x684d1800
sar ebx, 1
imul ebx, dword [esp + 0x34]
lea edi, [esi + ebx*2]
mov ebx, dword [ebp + 0x598]
mov esi, dword [ebp + 0xe20]
mov dword [esp + 0x74], edi
test bl, 1
jne 0x684d1780
mov eax, ebx
sar eax, 1
imul eax, dword [esp + 0x34]
sar eax, cl
lea eax, [esi + eax*2]
mov esi, dword [ebp + 0xe24]
mov dword [esp + 0x78], eax
sar ebx, 1
imul ebx, dword [esp + 0x34]
mov edx, dword [ebp + 0x504]
mov dword [esp + 0x38], 0
sar ebx, cl
lea eax, [esi + ebx*2]
mov esi, dword [esp + 0xa4]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x7c], eax
xor eax, eax
test edx, edx
setne al
add eax, eax
cmp dword [esp + 0xa4], 1
mov dword [esp + 0x4c], eax
sbb eax, eax
add esi, 1
not eax
mov dword [esp + 0x50], esi
and eax, 8
mov esi, eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x48]
sar esi, 1
mov dword [esp + 0x5c], esi
xor esi, esi
sub eax, 2
mov dword [esp + 0x54], eax
xor eax, eax
test esi, esi
setne al
lea eax, [ebp + eax*4]
mov ecx, dword [eax + 0x594]
mov dword [esp + 0x3c], ecx
and ecx, 1
jne 0x684d1710
mov edx, dword [esp + 0x3c]
sar edx, 1
imul edx, dword [esp + 0x30]
add edx, edx
sub edi, edx
mov dword [esp + 0x40], edi
mov edi, dword [eax + 0x4f4]
test edi, 1
jne 0x684d16e0
mov edx, edi
movzx ecx, byte [esp + 0x38]
sar edx, 1
imul edx, dword [esp + 0x30]
add edx, edx
sub ebx, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x50]
cmp dword [ebp + 0x870], ebx
cmovle edx, dword [esp + 0x48]
xor ebx, ebx
shl edx, 2
sar edx, cl
test esi, esi
je 0x684d1614
xor ebx, ebx
cmp dword [ebp + 0x504], 3
setne bl
mov ecx, dword [ebp + 0xabc]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x804]
mov dword [esp + 0x20], ecx
mov eax, dword [eax + 0x7fc]
mov ecx, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x860]
lea eax, [ebx + eax*4]
sar eax, cl
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x500]
add eax, ecx
sub eax, dword [esp + 0x34]
sar eax, cl
mov ecx, ebx
cmp eax, edx
cmovg eax, edx
mov edx, dword [esp + 0x30]
add esi, 1
add edx, eax
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0x59c]
mov dword [esp + 0xc], edi
add eax, ebx
sar eax, cl
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [ebp + 0x818]
call dword [eax + 0x150]
cmp esi, dword [esp + 0x4c]
jg 0x684d16d0
cmp dword [ebp + 0x504], 1
mov edi, dword [esp + esi*4 + 0x74]
mov ebx, dword [esp + esi*4 + 0x68]
je 0x684d1740
mov eax, dword [esp + 0x58]
mov dword [esp + 0x38], 0
mov dword [esp + 0x30], eax
jmp 0x684d1591
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x50
mov dword [esp + 4], str...include_common_bitdepth.h
mov dword [esp], str.__x__1_
mov dword [esp + 0x44], eax
call fcn.684d2880
mov eax, dword [esp + 0x44]
jmp 0x684d15d4
mov dword [esp + 8], 0x50
mov dword [esp + 4], str...include_common_bitdepth.h
mov dword [esp], str.__x__1_
mov dword [esp + 0x40], eax
call fcn.684d2880
mov eax, dword [esp + 0x40]
jmp 0x684d15af
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x38], 1
mov dword [esp + 0x30], eax
jmp 0x684d1591
mov dword [esp + 8], 0x50
mov dword [esp + 4], str...include_common_bitdepth.h
mov dword [esp], str.__x__1_
mov byte [esp + 0x30], cl
call fcn.684d2880
movzx ecx, byte [esp + 0x30]
jmp 0x684d1489
mov dword [esp + 8], 0x50
sar ebx, 1
mov dword [esp + 4], str...include_common_bitdepth.h
mov dword [esp], str.__x__1_
mov byte [esp + 0x30], cl
call fcn.684d2880
imul ebx, dword [esp + 0x34]
movzx ecx, byte [esp + 0x30]
mov eax, dword [ebp + 0x598]
sar ebx, cl
lea edx, [esi + ebx*2]
mov esi, dword [ebp + 0xe24]
mov dword [esp + 0x78], edx
test al, 1
je 0x684d18a1
mov dword [esp + 8], 0x50
mov dword [esp + 4], str...include_common_bitdepth.h
mov dword [esp], str.__x__1_
mov byte [esp + 0x38], cl
mov dword [esp + 0x30], eax
call fcn.684d2880
mov eax, dword [esp + 0x30]
movzx ecx, byte [esp + 0x38]
mov ebx, eax
jmp 0x684d1528
mov dword [esp + 8], 0x50
mov dword [esp + 4], str...include_common_bitdepth.h
mov dword [esp], str.__x__1_
mov byte [esp + 0x30], cl
call fcn.684d2880
movzx ecx, byte [esp + 0x30]
jmp 0x684d14ed
mov dword [esp + 8], 0x50
sar ebx, 1
mov dword [esp + 4], str...include_common_bitdepth.h
mov dword [esp], str.__x__1_
mov byte [esp + 0x30], cl
call fcn.684d2880
imul ebx, dword [esp + 0x34]
movzx ecx, byte [esp + 0x30]
mov edi, dword [ebp + 0x4f8]
sar ebx, cl
lea eax, [esi + ebx*2]
mov esi, dword [ebp + 0xe18]
mov dword [esp + 0x6c], eax
test edi, 1
je 0x684d18a8
mov dword [esp + 8], 0x50
mov ebx, edi
mov dword [esp + 4], str...include_common_bitdepth.h
mov dword [esp], str.__x__1_
call fcn.684d2880
movzx ecx, byte [esp + 0x30]
jmp 0x684d14c8
mov ebx, eax
jmp 0x684d1528
mov ebx, edi
jmp 0x684d14c8