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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x4bb98c]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0xdc], eax
mov eax, dword [ebp + 0x18]
push esi
push edi
xor edi, edi
dec eax
cmp eax, 4
mov edx, 1
jl 0x470851
mov eax, 0xfffffffc
sub eax, ebx
mov dword [esp + 0x18], eax
mov eax, 4
sub eax, ebx
mov dword [esp + 0x14], eax
mov eax, 0xc
sub eax, ebx
mov dword [esp + 0x10], eax
mov eax, 0xfffffff4
xor esi, esi
sub eax, ebx
lea ecx, [ebx + 0x14]
mov dword [esp + 0x4c], eax
fld dword [ecx - 8]
fcomp dword [esi + ebx + 4]
fnstsw ax
test ah, 5
jp 0x4707fa
mov eax, dword [esp + 0x4c]
mov edi, edx
lea esi, [eax + ecx]
fld dword [ecx]
fcomp dword [esi + ebx + 4]
fnstsw ax
test ah, 5
jp 0x470811
mov eax, dword [esp + 0x18]
lea edi, [edx + 1]
lea esi, [eax + ecx]
fld dword [ecx + 8]
fcomp dword [esi + ebx + 4]
fnstsw ax
test ah, 5
jp 0x470829
mov eax, dword [esp + 0x14]
lea edi, [edx + 2]
lea esi, [eax + ecx]
fld dword [ecx + 0x10]
fcomp dword [esi + ebx + 4]
fnstsw ax
test ah, 5
jp 0x470841
mov eax, dword [esp + 0x10]
lea edi, [edx + 3]
lea esi, [eax + ecx]
mov eax, dword [ebp + 0x18]
add edx, 4
add eax, 0xfffffffd
add ecx, 0x20
cmp edx, eax
jl 0x4707e3
cmp edx, dword [ebp + 0x18]
jge 0x470882
lea esi, [edi*8]
lea ecx, [ebx + edx*8 + 4]
fld dword [ecx]
fcomp dword [esi + ebx + 4]
fnstsw ax
test ah, 5
jp 0x470877
mov edi, edx
lea esi, [edx*8]
mov eax, dword [ebp + 0x18]
inc edx
add ecx, 8
cmp edx, eax
jl 0x470861
lea esi, [edi - 1]
test esi, esi
jge 0x470890
mov ecx, dword [ebp + 0x18]
add esi, ecx
jmp 0x470899
mov eax, dword [ebp + 0x18]
cmp esi, eax
jl 0x470899
sub esi, eax
fld dword [ebx + esi*8]
mov dword [esp + 0x14], esi
call fcn.00461da0
fld dword [ebx + edi*8]
mov dword [esp + 0x10], eax
call fcn.00461da0
fld dword [ebx + esi*8 + 4]
fsub dword [ebx + edi*8 + 4]
mov dword [esp + 0x18], eax
lea eax, [ebx + edi*8 + 4]
mov dword [esp + 0x4c], eax
call fcn.00461da0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
cmp ecx, edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], ecx
jle 0x4708ec
mov dword [esp + 0x48], 0xffffffff
jmp 0x4708fc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x48], 1
sub ecx, edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x3c], ecx
mov ecx, dword [edx + esi*8]
mov edx, dword [edx + edi*8]
cmp edx, ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0xe0], edx
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], edx
jle 0x470946
sub edx, ecx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xac], 0xffffffff
jmp 0x47095a
sub ecx, edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xac], 1
mov edx, dword [ebp + 0x14]
mov ecx, dword [edx + esi*8 + 4]
mov esi, dword [edx + edi*8 + 4]
cmp esi, ecx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], esi
jle 0x470995
mov edx, esi
sub edx, ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x64], 0xffffffff
jmp 0x4709a3
sub ecx, esi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x64], 1
inc edi
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
jns 0x4709b5
mov edx, dword [ebp + 0x18]
add edi, edx
jmp 0x4709be
mov eax, dword [ebp + 0x18]
cmp edi, eax
jl 0x4709be
sub edi, eax
mov eax, edi
fld dword [ebx + eax*8]
mov dword [esp + 0x10], edi
call fcn.00461da0
mov ecx, dword [esp + 0x10]
fld dword [ebx + ecx*8 + 4]
mov edx, dword [esp + 0x4c]
fsub dword [edx]
mov edi, eax
call fcn.00461da0
mov ecx, dword [esp + 0x18]
cmp ecx, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], ecx
jle 0x470a05
sub ecx, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], 0xffffffff
jmp 0x470a13
sub edi, ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], 1
mov ebx, dword [ebp + 0x14]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0xe0]
mov ecx, dword [ebx + edi*8]
cmp edx, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], edx
jle 0x470a4c
sub edx, ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x7c], 0xffffffff
jmp 0x470a5a
sub ecx, edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x7c], 1
mov ecx, dword [ebx + edi*8 + 4]
cmp esi, ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], esi
jle 0x470a92
sub esi, ecx
mov dword [esp + 0x88], esi
mov dword [esp + 0x94], 0xffffffff
jmp 0x470aa6
sub ecx, esi
mov dword [esp + 0x88], ecx
mov dword [esp + 0x94], 1
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x4c]
fld dword [eax]
call fcn.00461da0
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
cmp ecx, dword [esp + 0x40]
jl 0x470bf4
mov ebx, dword [esp + 0x14]
lea eax, [ebx - 1]
test eax, eax
jge 0x470ae3
mov edx, dword [ebp + 0x18]
add eax, edx
jmp 0x470aec
mov ecx, dword [ebp + 0x18]
cmp eax, ecx
jl 0x470aec
sub eax, ecx
mov edi, dword [ebp + 0x10]
fld dword [edi + eax*8]
mov dword [esp + 0x14], eax
call fcn.00461da0
fld dword [edi + ebx*8]
mov esi, eax
call fcn.00461da0
mov ecx, dword [esp + 0x14]
mov edi, eax
mov eax, dword [ebp + 0x10]
fld dword [eax + ecx*8 + 4]
fsub dword [eax + ebx*8 + 4]
call fcn.00461da0
cmp edi, esi
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], edi
jle 0x470b3b
sub edi, esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x48], 0xffffffff
jmp 0x470b49
sub esi, edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x48], 1
mov esi, dword [ebp + 0x14]
mov edi, dword [esp + 0x14]
mov ecx, dword [esi + ebx*8]
mov edx, dword [esi + edi*8]
cmp ecx, edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], ecx
jle 0x470b8a
sub ecx, edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xac], 0xffffffff
jmp 0x470b9e
sub edx, ecx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xac], 1
mov ecx, dword [esi + ebx*8 + 4]
mov edx, dword [esi + edi*8 + 4]
cmp ecx, edx
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], ecx
jle 0x470bd4
sub ecx, edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x64], 0xffffffff
jmp 0x470be2
sub edx, ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x64], 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
cmp ebx, dword [esp + 0x10]
je 0x4710b6
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x28]
jl 0x470d24
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x18]
lea eax, [ebx + 1]
test eax, eax
jge 0x470c14
add eax, ecx
jmp 0x470c1a
cmp eax, ecx
jl 0x470c1a
sub eax, ecx
mov esi, dword [ebp + 0x10]
mov edx, eax
fld dword [esi + edx*8]
mov dword [esp + 0x10], eax
call fcn.00461da0
fld dword [esi + ebx*8]
mov edi, eax
call fcn.00461da0
mov ecx, dword [esp + 0x10]
mov esi, eax
mov eax, dword [ebp + 0x10]
fld dword [eax + ecx*8 + 4]
fsub dword [eax + ebx*8 + 4]
call fcn.00461da0
cmp esi, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], esi
jle 0x470c6b
sub esi, edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], 0xffffffff
jmp 0x470c79
sub edi, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], 1
mov esi, dword [ebp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, dword [esi + ebx*8]
mov edx, dword [esi + edi*8]
cmp ecx, edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], ecx
jle 0x470cae
sub ecx, edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x7c], 0xffffffff
jmp 0x470cbc
sub edx, ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x7c], 1
mov ecx, dword [esi + ebx*8 + 4]
mov edx, dword [esi + edi*8 + 4]
cmp ecx, edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], ecx
jle 0x470cf8
sub ecx, edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x94], 0xffffffff
jmp 0x470d0c
sub edx, ecx
mov dword [esp + 0x88], edx
mov dword [esp + 0x94], 1
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
cmp ebx, dword [esp + 0x14]
je 0x4710b6
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x470f12
mov edx, dword [ebp + 8]
cmp eax, dword [edx + 4]
jge 0x470f12
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x9c]
mov esi, dword [esp + 0x6c]
sub ecx, edi
cmp edx, esi
mov dword [esp + 0xcc], edx
jle 0x470d6d
mov eax, edx
sub eax, esi
mov dword [esp + 0xdc], 0xffffffff
jmp 0x470d7c
mov eax, esi
sub eax, edx
mov dword [esp + 0xdc], 1
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x84]
cmp esi, ebx
mov edx, ecx
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd8], edx
mov dword [esp + 0xb4], esi
jle 0x470db3
mov eax, esi
sub eax, ebx
mov dword [esp + 0xc4], 0xffffffff
jmp 0x470dc2
mov eax, ebx
sub eax, esi
mov dword [esp + 0xc4], 1
cmp edi, dword [esp + 0x20]
mov dword [esp + 0xb8], eax
mov eax, ecx
mov dword [esp + 0xc0], eax
jge 0x470f0e
lea esp, [esp]
test edi, edi
jl 0x470e81
mov esi, dword [ebp + 8]
cmp edi, dword [esi]
jge 0x470e81
mov eax, dword [esi + 8]
imul eax, dword [esp + 0x18]
mov edx, dword [esi + 0xc]
mov ebx, dword [esp + 0xcc]
add eax, edi
lea esi, [edx + eax*4]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
imul edx, dword [esp + 0xb4]
mov eax, dword [eax + 0xc]
add edx, ebx
mov ebx, dword [ebp + 0x1c]
lea edx, [eax + edx*4]
movzx eax, byte [edx + 3]
imul eax, dword [ebx]
sar eax, 4
cmp eax, 0xfe0
jne 0x470e38
mov edx, dword [edx]
jmp 0x470e71
test eax, eax
je 0x470e73
mov ebx, dword [esi]
pxor mm1, mm1
movd mm0, ebx
punpcklbw mm0, mm1
movd mm2, eax
mov eax, dword [edx]
movq mm3, mm2
punpcklwd mm3, mm2
movq mm2, mm3
punpcklwd mm3, mm2
movd mm2, eax
punpcklbw mm2, mm1
psubsw mm2, mm0
psllw mm2, 4
pmulhw mm2, mm3
paddsw mm0, mm2
packuswb mm0, mm1
movd edx, mm0
mov dword [esi], edx
mov eax, dword [esp + 0xc0]
mov edx, dword [esp + 0xd8]
add edx, dword [esp + 0xd0]
cmp edx, ecx
mov dword [esp + 0xd8], edx
jle 0x470ebd
mov esi, dword [esp + 0xcc]
lea ebx, [ebx]
mov ebx, dword [esp + 0xdc]
sub edx, ecx
add esi, ebx
cmp edx, ecx
jg 0x470ea0
mov dword [esp + 0xd8], edx
mov dword [esp + 0xcc], esi
add eax, dword [esp + 0xb8]
cmp eax, ecx
mov dword [esp + 0xc0], eax
jle 0x470efd
mov esi, dword [esp + 0xb4]
jmp 0x470ee0
mov ebx, dword [esp + 0xc4]
sub eax, ecx
add esi, ebx
cmp eax, ecx
jg 0x470ee0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xb4], esi
mov esi, dword [esp + 0x20]
inc edi
cmp edi, esi
jl 0x470de0
mov edi, dword [esp + 0x38]
emms
jmp 0x470f16
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x20]
add eax, ebx
cmp eax, ecx
mov dword [esp + 0x44], eax
jle 0x470f44
mov edx, dword [esp + 0x48]
sub eax, ecx
add edi, edx
cmp eax, ecx
jg 0x470f30
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], edi
mov eax, dword [esp + 0xa8]
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
add eax, edi
inc ebx
cmp eax, ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0xa8], eax
jle 0x470f9d
mov edx, dword [esp + 0x9c]
jmp 0x470f80
mov edi, dword [esp + 0xac]
sub eax, ecx
add edx, edi
cmp eax, ecx
jg 0x470f80
mov dword [esp + 0xa8], eax
mov dword [esp + 0x9c], edx
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x98]
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
add eax, edi
inc ebx
cmp eax, ecx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x60], eax
jle 0x470fda
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x64]
sub eax, ecx
add edx, edi
cmp eax, ecx
jg 0x470fc6
mov dword [esp + 0x60], eax
mov dword [esp + 0x54], edx
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x50]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add eax, edi
inc ebx
cmp eax, ecx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x2c], eax
jle 0x471014
lea esp, [esp]
mov ebx, dword [esp + 0x30]
sub eax, ecx
add esi, ebx
cmp eax, ecx
jg 0x471000
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
add eax, esi
inc edi
cmp eax, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x78], eax
jle 0x47104b
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x7c]
sub eax, ecx
add edx, ebx
cmp eax, ecx
jg 0x471037
mov dword [esp + 0x78], eax
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x90]
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
add eax, esi
inc edi
cmp eax, ecx
mov dword [esp + 0x68], edi
mov dword [esp + 0x90], eax
jle 0x47109d
mov edx, dword [esp + 0x84]
lea ecx, [ecx]
mov ebx, dword [esp + 0x94]
sub eax, ecx
add edx, ebx
cmp eax, ecx
jg 0x471080
mov dword [esp + 0x90], eax
mov dword [esp + 0x84], edx
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x18]
inc ecx
mov dword [esp + 0x80], ecx
inc eax
jmp 0x470abf
mov ecx, dword [esp + 0xe4]
call fcn.00461d91
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret