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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x4b792c]
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 0x470291
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 0x47023a
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 0x470251
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 0x470269
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 0x470281
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 0x470223
cmp edx, dword [ebp + 0x18]
jge 0x4702c2
lea esi, [edi*8]
lea ecx, [ebx + edx*8 + 4]
fld dword [ecx]
fcomp dword [esi + ebx + 4]
fnstsw ax
test ah, 5
jp 0x4702b7
mov edi, edx
lea esi, [edx*8]
mov eax, dword [ebp + 0x18]
inc edx
add ecx, 8
cmp edx, eax
jl 0x4702a1
lea esi, [edi - 1]
test esi, esi
jge 0x4702d0
mov ecx, dword [ebp + 0x18]
add esi, ecx
jmp 0x4702d9
mov eax, dword [ebp + 0x18]
cmp esi, eax
jl 0x4702d9
sub esi, eax
fld dword [ebx + esi*8]
mov dword [esp + 0x14], esi
call fcn.0045dbd0
fld dword [ebx + edi*8]
mov dword [esp + 0x10], eax
call fcn.0045dbd0
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.0045dbd0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
cmp ecx, edx
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], ecx
jle 0x47032c
mov dword [esp + 0x48], 0xffffffff
jmp 0x47033c
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 0x470386
sub edx, ecx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xac], 0xffffffff
jmp 0x47039a
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 0x4703d5
mov edx, esi
sub edx, ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x64], 0xffffffff
jmp 0x4703e3
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 0x4703f5
mov edx, dword [ebp + 0x18]
add edi, edx
jmp 0x4703fe
mov eax, dword [ebp + 0x18]
cmp edi, eax
jl 0x4703fe
sub edi, eax
mov eax, edi
fld dword [ebx + eax*8]
mov dword [esp + 0x10], edi
call fcn.0045dbd0
mov ecx, dword [esp + 0x10]
fld dword [ebx + ecx*8 + 4]
mov edx, dword [esp + 0x4c]
fsub dword [edx]
mov edi, eax
call fcn.0045dbd0
mov ecx, dword [esp + 0x18]
cmp ecx, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], ecx
jle 0x470445
sub ecx, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], 0xffffffff
jmp 0x470453
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 0x47048c
sub edx, ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x7c], 0xffffffff
jmp 0x47049a
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 0x4704d2
sub esi, ecx
mov dword [esp + 0x88], esi
mov dword [esp + 0x94], 0xffffffff
jmp 0x4704e6
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.0045dbd0
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x18], eax
cmp ecx, dword [esp + 0x40]
jl 0x470634
mov ebx, dword [esp + 0x14]
lea eax, [ebx - 1]
test eax, eax
jge 0x470523
mov edx, dword [ebp + 0x18]
add eax, edx
jmp 0x47052c
mov ecx, dword [ebp + 0x18]
cmp eax, ecx
jl 0x47052c
sub eax, ecx
mov edi, dword [ebp + 0x10]
fld dword [edi + eax*8]
mov dword [esp + 0x14], eax
call fcn.0045dbd0
fld dword [edi + ebx*8]
mov esi, eax
call fcn.0045dbd0
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.0045dbd0
cmp edi, esi
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], edi
jle 0x47057b
sub edi, esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x48], 0xffffffff
jmp 0x470589
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 0x4705ca
sub ecx, edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xac], 0xffffffff
jmp 0x4705de
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 0x470614
sub ecx, edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x64], 0xffffffff
jmp 0x470622
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 0x470af6
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x28]
jl 0x470764
mov ebx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x18]
lea eax, [ebx + 1]
test eax, eax
jge 0x470654
add eax, ecx
jmp 0x47065a
cmp eax, ecx
jl 0x47065a
sub eax, ecx
mov esi, dword [ebp + 0x10]
mov edx, eax
fld dword [esi + edx*8]
mov dword [esp + 0x10], eax
call fcn.0045dbd0
fld dword [esi + ebx*8]
mov edi, eax
call fcn.0045dbd0
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.0045dbd0
cmp esi, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], esi
jle 0x4706ab
sub esi, edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], 0xffffffff
jmp 0x4706b9
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 0x4706ee
sub ecx, edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x7c], 0xffffffff
jmp 0x4706fc
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 0x470738
sub ecx, edx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x94], 0xffffffff
jmp 0x47074c
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 0x470af6
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x470952
mov edx, dword [ebp + 8]
cmp eax, dword [edx + 4]
jge 0x470952
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 0x4707ad
mov eax, edx
sub eax, esi
mov dword [esp + 0xdc], 0xffffffff
jmp 0x4707bc
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 0x4707f3
mov eax, esi
sub eax, ebx
mov dword [esp + 0xc4], 0xffffffff
jmp 0x470802
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 0x47094e
lea esp, [esp]
test edi, edi
jl 0x4708c1
mov esi, dword [ebp + 8]
cmp edi, dword [esi]
jge 0x4708c1
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 0x470878
mov edx, dword [edx]
jmp 0x4708b1
test eax, eax
je 0x4708b3
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 0x4708fd
mov esi, dword [esp + 0xcc]
lea ebx, [ebx]
mov ebx, dword [esp + 0xdc]
sub edx, ecx
add esi, ebx
cmp edx, ecx
jg 0x4708e0
mov dword [esp + 0xd8], edx
mov dword [esp + 0xcc], esi
add eax, dword [esp + 0xb8]
cmp eax, ecx
mov dword [esp + 0xc0], eax
jle 0x47093d
mov esi, dword [esp + 0xb4]
jmp 0x470920
mov ebx, dword [esp + 0xc4]
sub eax, ecx
add esi, ebx
cmp eax, ecx
jg 0x470920
mov dword [esp + 0xc0], eax
mov dword [esp + 0xb4], esi
mov esi, dword [esp + 0x20]
inc edi
cmp edi, esi
jl 0x470820
mov edi, dword [esp + 0x38]
emms
jmp 0x470956
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 0x470984
mov edx, dword [esp + 0x48]
sub eax, ecx
add edi, edx
cmp eax, ecx
jg 0x470970
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 0x4709dd
mov edx, dword [esp + 0x9c]
jmp 0x4709c0
mov edi, dword [esp + 0xac]
sub eax, ecx
add edx, edi
cmp eax, ecx
jg 0x4709c0
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 0x470a1a
mov edx, dword [esp + 0x54]
mov edi, dword [esp + 0x64]
sub eax, ecx
add edx, edi
cmp eax, ecx
jg 0x470a06
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 0x470a54
lea esp, [esp]
mov ebx, dword [esp + 0x30]
sub eax, ecx
add esi, ebx
cmp eax, ecx
jg 0x470a40
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 0x470a8b
mov edx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x7c]
sub eax, ecx
add edx, ebx
cmp eax, ecx
jg 0x470a77
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 0x470add
mov edx, dword [esp + 0x84]
lea ecx, [ecx]
mov ebx, dword [esp + 0x94]
sub eax, ecx
add edx, ebx
cmp eax, ecx
jg 0x470ac0
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 0x4704ff
mov ecx, dword [esp + 0xe4]
call fcn.0045dbc1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret