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

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0xcc
mov ebx, dword [esp + 0xe8]
cmp dword [esp + 0xe4], ebx
mov dword [esp + 0xac], edx
jg 0x7012eeb8
mov eax, dword [edx*4 + 0x7079f480]
mov edi, dword [esp + 0xe0]
mov dword [esp + 0x98], eax
imul eax, dword [esp + 0xe4], 0x3c
lea ebx, [edi*8]
mov edi, dword [edx*4 + 0x7079f4c0]
mov dword [esp + 0x90], ebx
lea ebx, [ecx*8]
mov dword [esp + 0x74], ebx
add eax, esi
lea ebx, [eax + 0x1c]
mov dword [esp + 0x94], edi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x94]
mov ebx, dword [esp + 0x98]
sub edi, dword [eax + 0x10]
sub ebx, dword [eax + 0x14]
mov eax, dword [esi + 0xd4]
mov dword [esp + 0x28], edi
mov eax, dword [eax]
cmp dword [eax + 0x50], 2
mov dword [esp + 0x30], eax
ja 0x7012eec3
cmp dword [esp + 0xac], 3
je 0x7012e8c0
mov dword [esp + 8], 0xca
mov dword [esp + 4], 0x707a41a4
mov dword [esp], str.bsize__BLOCK_8X8
call fcn.6feeef40
mov eax, 1
mov ecx, ebx
mov edi, eax
shl edi, cl
test edi, edi
mov dword [esp + 0xa8], edi
jle 0x7012ee92
movzx ecx, byte [esp + 0x28]
xor edi, edi
mov dword [esp + 0x9c], 0
mov dword [esp + 0x30], esi
shl eax, cl
mov dword [esp + 0xa0], eax
mov ebx, dword [esp + 0xa0]
test ebx, ebx
jle 0x7012ee72
lea eax, [edi + edi*2]
shl eax, 2
mov dword [esp + 0x88], eax
mov eax, ebx
add eax, edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0x8c], eax
mov esi, dword [esp + 0x68]
lea eax, [edi + 1]
mov ebx, 4
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x94]
mov edx, 1
sub eax, dword [esi + 0x10]
mov ecx, eax
shl ebx, cl
mov ecx, dword [esp + 0x98]
sub ecx, dword [esi + 0x14]
mov esi, 4
shl esi, cl
mov ecx, eax
shl edx, cl
sub edx, 1
and edx, edi
lea ecx, [edx*4]
mov edx, ecx
mov dword [esp + 0x40], ecx
mov ecx, eax
sar edi, cl
lea eax, [edi*4]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0xd4]
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
mov dword [esp + 0x5c], eax
xor eax, eax
test edi, edi
setg al
cmp ebx, edx
mov dword [esp + 0x6c], eax
jle 0x7012ee43
cmp esi, dword [esp + 0x34]
jle 0x7012ee22
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x50]
cmp eax, 2
jbe 0x7012ea14
cmp ebx, 4
je 0x7012e9ec
mov dword [esp + 8], 0x8b
mov dword [esp + 4], 0x707a41a4
mov dword [esp], str.mi__mbmi.sb_type___BLOCK_8X8__4____pred_w__bw
call fcn.6feeef40
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x50]
cmp eax, 2
jbe 0x7012ea14
cmp esi, 4
je 0x7012ea14
mov dword [esp + 8], 0x8c
mov dword [esp + 4], 0x707a41a4
mov dword [esp], str.mi__mbmi.sb_type___BLOCK_8X8__4____pred_h__bh
call fcn.6feeef40
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x50]
add ebx, 4
add esi, 4
mov dword [esp + 0x60], ebx
shl dword [esp + 0x60], 4
mov edi, dword [esp + 0x60]
mov dword [esp + 0x64], esi
shl dword [esp + 0x64], 4
mov esi, dword [esp + 0x64]
lea ebx, [edi - 0x10]
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x28], 0
sub esi, 0x10
mov dword [esp + 0x58], edi
add edi, dword [esp + 0x88]
mov ebp, ebx
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0x68]
mov dword [esp + 0x80], edi
mov edi, dword [esp + 0x40]
add edi, dword [esp + 0x90]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x70], edi
jmp 0x7012ecff
mov ecx, dword [esp + 0xe4]
test ecx, ecx
jne 0x7012ed90
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0x28]
movzx ebx, word [eax + esi*4 + 0x58]
movzx edi, word [eax + esi*4 + 0x5a]
mov esi, dword [esp + 0x68]
movsx ebx, bx
movsx edi, di
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
mov esi, 1
mov ecx, esi
sub esi, edx
sub ecx, eax
shl ebx, cl
mov dword [esp + 0x3c], ecx
mov ecx, esi
shl edi, cl
cmp edx, 1
jle 0x7012eaf4
mov dword [esp + 8], 0x6c
mov dword [esp + 4], 0x707a41a4
mov dword [esp], str.ss_x___1
mov dword [esp + 0x4c], eax
call fcn.6feeef40
mov eax, dword [esp + 0x4c]
cmp eax, 1
jle 0x7012eb15
mov dword [esp + 8], 0x6d
mov dword [esp + 4], 0x707a41a4
mov dword [esp], str.ss_y___1
call fcn.6feeef40
mov eax, dword [esp + 0x30]
movsx edi, di
mov ecx, dword [eax + 0xf4]
mov edx, dword [eax + 0xf0]
mov dword [esp + 0x4c], ecx
movzx ecx, byte [esp + 0x3c]
shl edx, cl
mov ecx, dword [eax + 0xec]
mov eax, dword [eax + 0xe8]
sub edx, dword [esp + 0x64]
mov dword [esp + 0x50], ecx
mov ecx, esi
shl eax, cl
sub eax, dword [esp + 0x60]
cmp eax, edi
jg 0x7012eb62
mov eax, dword [esp + 0x50]
shl eax, cl
add eax, dword [esp + 0x7c]
cmp edi, eax
cmovle eax, edi
movsx ebx, bx
movsx esi, ax
cmp edx, ebx
jg 0x7012eb80
mov edx, dword [esp + 0x4c]
movzx ecx, byte [esp + 0x3c]
shl edx, cl
add edx, dword [esp + 0x78]
cmp ebx, edx
cmovle edx, ebx
mov ecx, edx
mov word [esp + 0xbc], dx
mov edx, dword [ebp + 0xbc]
mov word [esp + 0xbe], si
cmp dword [edx], 0x4000
je 0x7012ed46
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x40]
mov ebx, dword [eax + 0x20]
mov esi, dword [eax + 0x24]
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [edx + 0x10]
mov ecx, dword [esp + 0x34]
mov edi, eax
mov eax, dword [ebp + 0xbc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [eax + 0x14]
mov edx, dword [esp + 0x34]
add edx, dword [esp + 0x74]
imul esi, eax
mov eax, dword [ebp + 0xbc]
mov dword [esp + 4], edx
add edi, esi
add ebx, edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x70]
mov dword [esp], edi
mov dword [esp + 8], ebx
call dword [eax + 0x18]
mov eax, dword [ebp + 0xbc]
mov dword [esp + 4], edi
lea edi, [esp + 0xbc]
mov dword [esp], edi
call dword [eax + 0x1c]
mov esi, edx
mov edx, dword [ebp + 0xbc]
mov edi, eax
mov eax, dword [esp + 0x2c]
mov ebx, dword [edx + 8]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x54], edx
mov dword [esp + 0x4c], ebx
mov ebx, dword [edx + 0xc]
mov dword [esp + 0x50], ebx
mov ebx, esi
mov ecx, edi
and ebx, 0xf
mov dword [esp + 0x48], ebx
setne dl
xor ebx, ebx
and ecx, 0xf
movzx edx, dl
setne bl
add ebp, 0xc
lea ebx, [ebx + edx*2]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], 4
shl ecx, 4
mov dword [esp + 0x20], 4
sar edi, 4
lea ebx, [edx + ebx*2 + 8]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x30]
add ecx, dword [edx + 0x104]
mov edx, dword [esp + 0x48]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x4c]
shl edx, 4
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x30]
add edx, dword [ecx + 0x100]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x10], edx
mov edx, dword [ecx]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xc], edx
mov edx, edi
imul edx, eax
mov eax, esi
sar eax, 4
mov dword [esp + 8], ecx
add edx, eax
mov eax, dword [esp + 0x54]
add edx, dword [esp + 0x3c]
mov dword [esp], edx
call dword [eax + ebx*4]
add dword [esp + 0x28], 1
mov eax, dword [esp + 0x28]
add dword [esp + 0x2c], 8
add dword [esp + 0x58], 4
cmp dword [esp + 0x6c], eax
jl 0x7012edf0
mov eax, dword [esp + 0x5c]
mov eax, dword [eax + 0x50]
mov esi, dword [esp + 0x44]
lea ebx, [ebp + 0xb4]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x48], ebx
imul edx, dword [esi]
add edx, dword [esp + 0x40]
mov ebx, dword [esi - 4]
mov dword [esp + 0x38], edx
add dword [esp + 0x38], ebx
cmp eax, 2
jbe 0x7012ea82
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x28]
movzx ebx, word [eax + 0x14]
mov eax, dword [esp + 0x5c]
movzx edi, word [eax + edi*4 + 0x16]
jmp 0x7012eaa6
cmp dword [edx + 4], 0x4000
jne 0x7012eba4
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], 0x10
mov eax, dword [edi + 0x24]
mov dword [esp + 0x4c], 0x10
imul ebx, eax
add ebx, dword [esp + 0x40]
mov dword [esp + 0x3c], ebx
mov ebx, dword [edi + 0x20]
movsx edi, cx
add dword [esp + 0x3c], ebx
jmp 0x7012ec3b
mov edi, dword [esp + 0x58]
movsx edx, word [edi + 0x58]
movsx eax, word [edi + 0x64]
add eax, edx
movsx edx, word [edi + 0x70]
add eax, edx
movsx edx, word [edi + 0x7c]
add eax, edx
lea ebx, [eax + 2]
sar ebx, 2
test eax, eax
js 0x7012ee14
mov esi, dword [esp + 0x58]
movsx edx, word [esi + 0x5a]
movsx eax, word [esi + 0x66]
add eax, edx
movsx edx, word [esi + 0x72]
add eax, edx
movsx edx, word [esi + 0x7e]
add eax, edx
lea edi, [eax + 2]
sar edi, 2
test eax, eax
jns 0x7012eaa6
lea edx, [eax + 1]
sub eax, 2
mov edi, eax
cmovs edi, edx
sar edi, 2
jmp 0x7012eaa6
mov eax, dword [esp + 0x8c]
add dword [esp + 0x88], 0xc
cmp dword [esp + 0x84], eax
je 0x7012ee64
mov edi, dword [esp + 0x84]
jmp 0x7012e927
lea ebx, [eax + 1]
sub eax, 2
cmovns ebx, eax
sar ebx, 2
jmp 0x7012edb4
mov dword [esp + 8], 0x8a
mov dword [esp + 4], 0x707a41a4
mov dword [esp], str.y___bh
call fcn.6feeef40
jmp 0x7012e9b3
mov dword [esp + 8], 0x89
mov dword [esp + 4], 0x707a41a4
mov dword [esp], str.x___bw
call fcn.6feeef40
jmp 0x7012e9a9
mov edi, dword [esp + 0xa4]
add edi, dword [esp + 0xa0]
add dword [esp + 0x9c], 1
mov eax, dword [esp + 0xa8]
cmp dword [esp + 0x9c], eax
jne 0x7012e8f9
mov esi, dword [esp + 0x30]
add dword [esp + 0xe4], 1
mov eax, dword [esp + 0xe4]
add dword [esp + 0x44], 0x3c
add dword [esp + 0x68], 0x3c
cmp dword [esp + 0xe8], eax
jge 0x7012e868
add esp, 0xcc
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ecx, byte [esp + 0x28]
mov ebp, 4
mov edi, 4
mov edx, dword [eax + 0xc]
xor eax, eax
shl ebp, cl
mov ecx, ebx
shl edi, cl
test edx, edx
setg al
test ebp, ebp
mov dword [esp + 0x70], eax
jle 0x7012f364
test edi, edi
jle 0x7012f343
mov eax, dword [esp + 0x30]
mov edx, 4
mov eax, dword [eax + 0x50]
cmp eax, 2
ja 0x7012f2cb
mov ecx, ebx
mov ebx, 4
shl edx, cl
movzx ecx, byte [esp + 0x28]
mov dword [esp + 0x4c], edx
shl ebx, cl
mov dword [esp + 0x6c], ebx
add edi, 4
lea ebx, [ebp + 4]
mov ebp, esi
mov dword [esp + 0x60], edi
shl dword [esp + 0x60], 4
mov edi, dword [esp + 0x60]
mov dword [esp + 0x5c], ebx
shl dword [esp + 0x5c], 4
mov ebx, dword [esp + 0x5c]
sub edi, 0x10
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x2c], 0
sub ebx, 0x10
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x38], edi
add edi, 2
mov dword [esp + 0x64], edi
mov dword [esp + 0x28], ebx
jmp 0x7012f203
mov eax, dword [esp + 0xe4]
test eax, eax
jne 0x7012f26c
mov eax, dword [esp + 0x38]
movzx edi, word [eax + 0x58]
mov eax, dword [esp + 0x64]
movzx ebx, word [eax + 0x58]
mov ecx, dword [esp + 0x68]
movsx edi, di
movsx ebx, bx
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x10]
mov ecx, 1
sub ecx, eax
shl edi, cl
mov dword [esp + 0x34], ecx
mov ecx, 1
sub ecx, edx
shl ebx, cl
cmp edx, 1
mov dword [esp + 0x3c], ecx
jle 0x7012efe9
mov dword [esp + 8], 0x6c
mov dword [esp + 4], 0x707a41a4
mov dword [esp], str.ss_x___1
mov dword [esp + 0x48], eax
call fcn.6feeef40
mov eax, dword [esp + 0x48]
cmp eax, 1
jle 0x7012f00a
mov dword [esp + 8], 0x6d
mov dword [esp + 4], 0x707a41a4
mov dword [esp], str.ss_y___1
call fcn.6feeef40
mov eax, dword [esi + 0xf4]
movsx ebx, bx
movzx ecx, byte [esp + 0x34]
mov edx, dword [esi + 0xf0]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 0xec]
shl edx, cl
movzx ecx, byte [esp + 0x3c]
sub edx, dword [esp + 0x60]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0xe8]
shl eax, cl
sub eax, dword [esp + 0x5c]
cmp eax, ebx
jg 0x7012f056
mov eax, dword [esp + 0x54]
shl eax, cl
add eax, dword [esp + 0x7c]
cmp ebx, eax
cmovle eax, ebx
movsx edi, di
cmp edx, edi
mov word [esp + 0x3c], ax
jg 0x7012f07b
mov edx, dword [esp + 0x48]
movzx ecx, byte [esp + 0x34]
movzx eax, word [esp + 0x3c]
shl edx, cl
add edx, dword [esp + 0x78]
cmp edi, edx
cmovle edx, edi
mov word [esp + 0xbe], ax
mov eax, dword [ebp + 0xbc]
movsx ebx, dx
mov word [esp + 0xbc], dx
cmp dword [eax], 0x4000
je 0x7012f236
mov edi, dword [esp + 0x28]
mov ebx, dword [edi + 0x20]
mov edi, dword [edi + 0x24]
mov dword [esp + 4], eax
mov dword [esp], 0
mov dword [esp + 0x34], ebx
call dword [eax + 0x10]
mov ebx, eax
mov eax, dword [ebp + 0xbc]
mov dword [esp], 0
mov dword [esp + 4], eax
call dword [eax + 0x14]
imul edi, eax
mov eax, dword [ebp + 0xbc]
add ebx, edi
mov edi, dword [esp + 0x90]
add ebx, dword [esp + 0x34]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x74]
mov dword [esp + 8], edi
lea edi, [esp + 0xbc]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp], ebx
call dword [eax + 0x18]
mov eax, dword [ebp + 0xbc]
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [eax + 0x1c]
mov ebx, eax
mov eax, dword [ebp + 0xbc]
mov edi, edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x28]
mov edx, ebx
mov ecx, dword [eax + 0x24]
mov eax, edi
and eax, 0xf
mov dword [esp + 0x54], eax
setne al
and edx, 0xf
mov dword [esp + 0x58], edx
setne dl
movzx eax, al
movzx edx, dl
add ebp, 0xc
lea edx, [edx + eax*2]
mov eax, dword [esp + 0x2c]
sar ebx, 4
imul ebx, ecx
sar edi, 4
lea edx, [eax + edx*2 + 8]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x58]
shl eax, 4
add eax, dword [esi + 0x104]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
shl eax, 4
add eax, dword [esi + 0x100]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 8], eax
lea eax, [ebx + edi]
add eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x48]
call dword [eax + edx*4]
add dword [esp + 0x2c], 1
mov eax, dword [esp + 0x2c]
add dword [esp + 0x28], 8
add dword [esp + 0x38], 4
add dword [esp + 0x64], 4
cmp dword [esp + 0x70], eax
jl 0x7012ee92
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x50]
lea edi, [ebp + 0xb4]
cmp eax, 2
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x44]
mov edi, dword [edi - 4]
mov dword [esp + 0x50], edi
jbe 0x7012ef77
mov eax, dword [esp + 0x38]
movzx edi, word [eax + 0x14]
mov eax, dword [esp + 0x64]
movzx ebx, word [eax + 0x14]
jmp 0x7012ef96
cmp dword [eax + 4], 0x4000
jne 0x7012f0a0
mov edi, dword [esp + 0x28]
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], 0x10
mov edi, dword [edi + 0x20]
mov dword [esp + 0x34], edi
movsx edi, word [esp + 0x3c]
mov dword [esp + 0x3c], 0x10
jmp 0x7012f135
mov ebx, dword [esp + 0x38]
movsx eax, word [ebx + 0x64]
movsx edx, word [ebx + 0x58]
add edx, eax
movsx eax, word [ebx + 0x70]
add edx, eax
movsx eax, word [ebx + 0x7c]
add eax, edx
lea edi, [eax + 2]
sar edi, 2
test eax, eax
js 0x7012f385
movsx eax, word [ebx + 0x66]
movsx edx, word [ebx + 0x5a]
add edx, eax
movsx eax, word [ebx + 0x72]
add edx, eax
movsx eax, word [ebx + 0x7e]
add eax, edx
lea ebx, [eax + 2]
sar ebx, 2
test eax, eax
jns 0x7012ef96
lea edx, [eax + 1]
sub eax, 2
cmovs eax, edx
mov ebx, eax
sar ebx, 2
jmp 0x7012ef96
movzx ecx, byte [esp + 0x28]
shl edx, cl
cmp ebp, edx
mov dword [esp + 0x6c], edx
je 0x7012f306
mov dword [esp + 8], 0x8b
mov dword [esp + 4], 0x707a41a4
mov dword [esp], str.mi__mbmi.sb_type___BLOCK_8X8__4____pred_w__bw
call fcn.6feeef40
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x50]
cmp eax, 2
jbe 0x7012f39a
mov edx, 4
mov ecx, ebx
shl edx, cl
cmp edi, edx
mov dword [esp + 0x4c], edx
je 0x7012ef23
mov dword [esp + 8], 0x8c
mov dword [esp + 4], 0x707a41a4
mov dword [esp], str.mi__mbmi.sb_type___BLOCK_8X8__4____pred_h__bh
call fcn.6feeef40
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 0x50]
jmp 0x7012ef23
mov dword [esp + 8], 0x8a
mov dword [esp + 4], 0x707a41a4
mov dword [esp], str.y___bh
call fcn.6feeef40
jmp 0x7012eef6
mov dword [esp + 8], 0x89
mov dword [esp + 4], 0x707a41a4
mov dword [esp], str.x___bw
call fcn.6feeef40
jmp 0x7012eeee
lea edi, [eax + 1]
sub eax, 2
mov ebx, dword [esp + 0x38]
cmovns edi, eax
sar edi, 2
jmp 0x7012f294
mov edx, 4
mov ecx, ebx
shl edx, cl
mov dword [esp + 0x4c], edx
jmp 0x7012ef23
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0xc], 2
mov dword [esp + 4], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 8], 0
jmp 0x7012e7f0