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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x4b592c]
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 0x46e6e1
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 0x46e68a
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 0x46e6a1
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 0x46e6b9
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 0x46e6d1
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 0x46e673
cmp edx, dword [ebp + 0x18]
jge 0x46e712
lea esi, [edi*8]
lea ecx, [ebx + edx*8 + 4]
fld dword [ecx]
fcomp dword [esi + ebx + 4]
fnstsw ax
test ah, 5
jp 0x46e707
mov edi, edx
lea esi, [edx*8]
mov eax, dword [ebp + 0x18]
inc edx
add ecx, 8
cmp edx, eax
jl 0x46e6f1
lea esi, [edi - 1]
test esi, esi
jge 0x46e720
mov ecx, dword [ebp + 0x18]
add esi, ecx
jmp 0x46e729
mov eax, dword [ebp + 0x18]
cmp esi, eax
jl 0x46e729
sub esi, eax
fld dword [ebx + esi*8]
mov dword [esp + 0x14], esi
call fcn.0045c1b0
fld dword [ebx + edi*8]
mov dword [esp + 0x10], eax
call fcn.0045c1b0
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.0045c1b0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
cmp ecx, edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], ecx
jle 0x46e77c
mov dword [esp + 0x48], 0xffffffff
jmp 0x46e78c
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 0x46e7d6
sub edx, ecx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xac], 0xffffffff
jmp 0x46e7ea
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 0x46e825
mov edx, esi
sub edx, ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x64], 0xffffffff
jmp 0x46e833
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 0x46e845
mov edx, dword [ebp + 0x18]
add edi, edx
jmp 0x46e84e
mov eax, dword [ebp + 0x18]
cmp edi, eax
jl 0x46e84e
sub edi, eax
mov eax, edi
fld dword [ebx + eax*8]
mov dword [esp + 0x10], edi
call fcn.0045c1b0
mov ecx, dword [esp + 0x10]
fld dword [ebx + ecx*8 + 4]
mov edx, dword [esp + 0x4c]
fsub dword [edx]
mov edi, eax
call fcn.0045c1b0
mov ecx, dword [esp + 0x18]
cmp ecx, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], ecx
jle 0x46e895
sub ecx, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], 0xffffffff
jmp 0x46e8a3
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 0x46e8dc
sub edx, ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x7c], 0xffffffff
jmp 0x46e8ea
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 0x46e922
sub esi, ecx
mov dword [esp + 0x88], esi
mov dword [esp + 0x94], 0xffffffff
jmp 0x46e936
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.0045c1b0
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
cmp ecx, dword [esp + 0x40]
jl 0x46ea84
mov ebx, dword [esp + 0x14]
lea eax, [ebx - 1]
test eax, eax
jge 0x46e973
mov edx, dword [ebp + 0x18]
add eax, edx
jmp 0x46e97c
mov ecx, dword [ebp + 0x18]
cmp eax, ecx
jl 0x46e97c
sub eax, ecx
mov edi, dword [ebp + 0x10]
fld dword [edi + eax*8]
mov dword [esp + 0x14], eax
call fcn.0045c1b0
fld dword [edi + ebx*8]
mov esi, eax
call fcn.0045c1b0
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.0045c1b0
cmp edi, esi
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], edi
jle 0x46e9cb
sub edi, esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x48], 0xffffffff
jmp 0x46e9d9
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 0x46ea1a
sub ecx, edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xac], 0xffffffff
jmp 0x46ea2e
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 0x46ea64
sub ecx, edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x64], 0xffffffff
jmp 0x46ea72
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 0x46ef46
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x28]
jl 0x46ebb4
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x18]
lea eax, [ebx + 1]
test eax, eax
jge 0x46eaa4
add eax, ecx
jmp 0x46eaaa
cmp eax, ecx
jl 0x46eaaa
sub eax, ecx
mov esi, dword [ebp + 0x10]
mov edx, eax
fld dword [esi + edx*8]
mov dword [esp + 0x10], eax
call fcn.0045c1b0
fld dword [esi + ebx*8]
mov edi, eax
call fcn.0045c1b0
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.0045c1b0
cmp esi, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], esi
jle 0x46eafb
sub esi, edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], 0xffffffff
jmp 0x46eb09
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 0x46eb3e
sub ecx, edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x7c], 0xffffffff
jmp 0x46eb4c
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 0x46eb88
sub ecx, edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x94], 0xffffffff
jmp 0x46eb9c
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 0x46ef46
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x46eda2
mov edx, dword [ebp + 8]
cmp eax, dword [edx + 4]
jge 0x46eda2
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 0x46ebfd
mov eax, edx
sub eax, esi
mov dword [esp + 0xdc], 0xffffffff
jmp 0x46ec0c
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 0x46ec43
mov eax, esi
sub eax, ebx
mov dword [esp + 0xc4], 0xffffffff
jmp 0x46ec52
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 0x46ed9e
lea esp, [esp]
test edi, edi
jl 0x46ed11
mov esi, dword [ebp + 8]
cmp edi, dword [esi]
jge 0x46ed11
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 0x46ecc8
mov edx, dword [edx]
jmp 0x46ed01
test eax, eax
je 0x46ed03
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 0x46ed4d
mov esi, dword [esp + 0xcc]
lea ebx, [ebx]
mov ebx, dword [esp + 0xdc]
sub edx, ecx
add esi, ebx
cmp edx, ecx
jg 0x46ed30
mov dword [esp + 0xd8], edx
mov dword [esp + 0xcc], esi
add eax, dword [esp + 0xb8]
cmp eax, ecx
mov dword [esp + 0xc0], eax
jle 0x46ed8d
mov esi, dword [esp + 0xb4]
jmp 0x46ed70
mov ebx, dword [esp + 0xc4]
sub eax, ecx
add esi, ebx
cmp eax, ecx
jg 0x46ed70
mov dword [esp + 0xc0], eax
mov dword [esp + 0xb4], esi
mov esi, dword [esp + 0x20]
inc edi
cmp edi, esi
jl 0x46ec70
mov edi, dword [esp + 0x38]
emms
jmp 0x46eda6
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 0x46edd4
mov edx, dword [esp + 0x48]
sub eax, ecx
add edi, edx
cmp eax, ecx
jg 0x46edc0
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 0x46ee2d
mov edx, dword [esp + 0x9c]
jmp 0x46ee10
mov edi, dword [esp + 0xac]
sub eax, ecx
add edx, edi
cmp eax, ecx
jg 0x46ee10
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 0x46ee6a
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x64]
sub eax, ecx
add edx, edi
cmp eax, ecx
jg 0x46ee56
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 0x46eea4
lea esp, [esp]
mov ebx, dword [esp + 0x30]
sub eax, ecx
add esi, ebx
cmp eax, ecx
jg 0x46ee90
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 0x46eedb
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x7c]
sub eax, ecx
add edx, ebx
cmp eax, ecx
jg 0x46eec7
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 0x46ef2d
mov edx, dword [esp + 0x84]
lea ecx, [ecx]
mov ebx, dword [esp + 0x94]
sub eax, ecx
add edx, ebx
cmp eax, ecx
jg 0x46ef10
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 0x46e94f
mov ecx, dword [esp + 0xe4]
call fcn.0045c1a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret