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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], esi
push edi
test esi, esi
je 0x10065e46
push 0x80
push 0
push esi
call fcn.1039a3e0
add esp, 0xc
mov eax, dword [ebp + 0x18]
mov edx, 1
test eax, eax
mov ecx, edx
cmovne ecx, eax
mov dword [ebp - 4], ecx
lea eax, [ecx - 1]
test ecx, eax
jne 0x100661d8
mov eax, dword [ebp + 0x1c]
mov ecx, edx
test eax, eax
cmovne ecx, eax
mov dword [ebp - 0x1c], ecx
lea eax, [ecx - 1]
test ecx, eax
jne 0x100661d8
mov eax, dword [ebp + 0x20]
mov ecx, edx
test eax, eax
cmovne ecx, eax
lea eax, [ecx - 1]
mov dword [ebp + 0x18], eax
test ecx, eax
jne 0x100661d8
cmp ebx, 0x301
jg 0x10065ee0
je case.0x10065eac.258
lea eax, [ebx - 0x102]
cmp eax, 5
ja case.0x10065eac.259
jmp dword [eax*4 + 0x10066224]
mov dword [ebp + 8], 0x10
mov edi, ebx
lea ecx, [ebx - 0x102]
and edi, 0x800
neg edi
sbb edi, edi
and edi, 8
add edi, 8
jmp 0x10065f6e
mov dword [ebp + 8], 0x18
jmp 0x10065eba
cmp ebx, 0x905
jg 0x10065f24
je 0x10065f01
cmp ebx, 0x303
je case.0x10065eac.258
cmp ebx, 0x902
jmp 0x10065f36
mov eax, 0xc
jmp 0x10065f3d
mov edi, ebx
mov dword [ebp + 8], 0x20
and edi, 0x800
mov ecx, 1
neg edi
sbb edi, edi
and edi, 8
add edi, 8
jmp 0x10065fc4
cmp ebx, 0x906
je 0x10065ffb
cmp ebx, 0xb01
je 0x10065f7c
mov eax, 0x10
mov edi, ebx
mov dword [ebp + 8], eax
and edi, 0x800
neg edi
sbb edi, edi
and edi, 8
add edi, 8
cmp ebx, 0x301
jg 0x10065f93
je case.0x10065f75.258
lea ecx, [ebx - 0x102]
mov dword [ebp + 8], eax
cmp ecx, 5
ja case.0x10065f75.259
movzx eax, byte [ecx + 0x10066244]
jmp dword [eax*4 + 0x1006623c]
mov edi, ebx
mov eax, 0x18
and edi, 0x800
neg edi
sbb edi, edi
and edi, 8
add edi, 8
mov ecx, edi
mov edx, eax
cmp ebx, 0x905
jg 0x10065fe4
mov dword [ebp + 8], edx
je 0x10065fef
mov dword [ebp + 8], edx
cmp ebx, 0x303
je 0x10065fef
mov dword [ebp + 8], edx
cmp ebx, 0x902
je 0x10065fef
mov dword [ebp + 8], edx
mov edx, 1
xor ecx, ecx
mov dword [ebp - 0x18], ecx
cmp ebx, 0x301
jg 0x10066016
je 0x10066035
mov eax, ebx
sub eax, 0x102
je 0x10066035
sub eax, 2
je 0x10066035
sub eax, 3
jmp 0x1006602c
mov dword [ebp + 8], eax
cmp ebx, 0xb01
jne 0x10065fbd
mov edx, 1
mov ecx, 1
jmp 0x10065fc4
mov edi, ebx
mov dword [ebp + 8], 0x30
and edi, 0x800
neg edi
sbb edi, edi
and edi, 8
add edi, 8
jmp case.0x10065f75.259
cmp ebx, 0x303
je 0x10066035
cmp ebx, 0x902
je 0x10066035
cmp ebx, 0xb01
mov dword [ebp - 0xc], 0
jne 0x1006603c
mov dword [ebp - 0xc], 1
mov eax, edx
shl eax, cl
mov ecx, dword [ebp + 0x18]
dec eax
cmp ecx, eax
cmovbe ecx, eax
mov eax, dword [ebp + 0x10]
add eax, ecx
not ecx
and eax, ecx
mov ecx, dword [ebp - 0xc]
shl edx, cl
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 8], eax
lea eax, [edx - 1]
cmp ecx, eax
cmovbe ecx, eax
mov eax, dword [ebp + 0x14]
add eax, ecx
not ecx
and eax, ecx
mov dword [ebp - 0x14], eax
mov eax, ebx
and eax, 0x100
mov dword [ebp + 0x18], eax
je 0x10066082
mov edx, dword [ebp - 8]
jmp 0x1006608f
mov eax, dword [ebp - 8]
xor edx, edx
imul eax, dword [ebp + 8]
div edi
mov edx, eax
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp - 0x1c]
lea eax, [eax*2 - 1]
add eax, ecx
neg ecx
add edx, eax
and edx, ecx
imul edx, edi
shr edx, 3
mov dword [ebp - 0x1c], edx
test esi, esi
jne 0x100660d7
push 0x80
push 1
call fcn.1039ec5b
mov esi, eax
mov dword [ebp - 0x10], eax
add esp, 8
test esi, esi
je 0x10066218
mov edx, dword [ebp - 0x1c]
mov dword [esi + 0x74], 1
mov ecx, dword [ebp + 0x28]
mov dword [esi + 0x6c], ecx
test ecx, ecx
jne 0x1006616e
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x24]
lea eax, [ecx + eax*2]
mul edx
cmp dword [ebp + 0x18], 0
mov ecx, eax
je 0x1006611a
mov eax, edx
mul dword [ebp + 8]
push 0
mov esi, eax
mov eax, ecx
mul dword [ebp + 8]
push edi
add esi, edx
push esi
push eax
call fcn.10398b60
mov esi, dword [ebp - 0x10]
mov ecx, eax
mov dword [ebp + 0x18], ecx
jmp 0x1006611d
mov dword [ebp + 0x18], eax
test edx, edx
jne 0x100661d8
mov edx, dword [ebp + 0x2c]
mov eax, dword [ebp - 4]
test edx, edx
je 0x10066153
dec eax
add eax, ecx
push eax
push dword [ebp + 0x30]
call edx
add esp, 8
mov dword [esi + 0x6c], eax
test eax, eax
je 0x1006614f
mov ecx, dword [ebp - 4]
dec eax
add eax, ecx
neg ecx
and eax, ecx
mov dword [esi + 0x6c], eax
xor eax, eax
jmp 0x10066165
push ecx
push eax
call fcn.10169cc0
mov dword [esi + 0x6c], eax
add esp, 8
mov eax, 1
mov dword [esi + 0x70], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x58], eax
cmp dword [esi + 0x6c], 0
je 0x100661d8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x4c], eax
shr eax, cl
mov dword [esi], ebx
mov dword [esi + 0x24], edi
mov dword [esi + 0x38], ecx
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], eax
cmp ebx, 0x107
jne 0x100661b9
add eax, eax
mov dword [esi + 0x54], 0
mov dword [esi + 0x50], eax
push dword [ebp + 0x24]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push 0
push esi
call sym.aom.dll_aom_img_set_rect
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x10066218
mov eax, dword [esi + 0x78]
test eax, eax
je 0x100661f3
push eax
call sym.aom.dll_aom_img_metadata_array_free
add esp, 4
mov dword [esi + 0x78], 0
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x10066209
cmp dword [esi + 0x70], 0
je 0x10066209
push eax
call sym.aom.dll_aom_free
add esp, 4
cmp dword [esi + 0x74], 0
je 0x10066218
push esi
call fcn.1039ec66
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret