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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 8]
push ebx
mov ebx, dword [eax + 4]
push esi
mov esi, dword [eax]
push edi
mov edi, ecx
mov ecx, dword [eax + 0xc]
sub ecx, edx
sub ebx, esi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x10], ecx
xor esi, esi
lea ecx, [ecx]
mov eax, dword [edi + 0x14]
mov ecx, dword [esi + eax]
push ecx
call fcn.004024b0
mov dword [esp + esi + 0x138], eax
add esi, 4
add esp, 4
cmp esi, 0x24
jl 0x409610
fld dword [0x53a780]
fld dword [edi + 0x1c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x409657
fld dword [0x53a8d0]
fdiv dword [edi + 0x1c]
call fcn.004ab830
mov esi, 1
sub esi, eax
jmp 0x40965c
mov esi, 1
fld dword [edi + 0x20]
call fcn.004ab830
xor ecx, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
pxor mm0, mm0
mov dword [esp + 0x40], ecx
movq qword [esp + 0x98], mm0
movq qword [esp + 0x78], mm0
lea edx, [esp + 0xa8]
mov dword [esp + 0x44], ecx
mov edi, dword [esp + ecx + 0x134]
movd mm0, edi
pshufw mm0, mm0, 0
movq qword [edx], mm0
add ecx, 4
add edx, 8
cmp ecx, 0x24
jl 0x4096a1
movd mm0, esi
pshufw mm0, mm0, 0
movq qword [esp + 0xa0], mm0
movd mm0, eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x68]
push edx
dec eax
push eax
dec ebx
push ebx
push 1
pshufw mm0, mm0, 0
push 1
movq qword [esp + 0xa4], mm0
call fcn.004365d0
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x7c]
push ecx
mov edx, ecx
push ebx
push edx
call fcn.00436840
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x8c]
push ebx
push ecx
call fcn.004057b0
mov esi, dword [ebp + 0x14]
add esp, 0x2c
test eax, eax
jle 0x409797
lea edi, [esp + 0xf0]
mov dword [esp + 0x10], eax
lea ecx, [ecx]
mov edx, esi
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x80], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x84], ecx
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x80]
push edx
push edi
push ebx
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], ecx
call fcn.00438350
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
add esp, 0xc
push eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push edi
push eax
call fcn.00404720
mov eax, dword [esp + 0x10]
add edi, 0x10
dec eax
mov dword [esp + 0x10], eax
jne 0x409730
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov dword [esp + 0x54], edx
lea edx, [esp + 0x50]
mov dword [esp + 0x58], eax
push edx
lea eax, [esp + 0x6c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0xc]
push eax
push ebx
mov dword [esp + 0x68], ecx
call fcn.00438350
mov ecx, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
sub esi, ecx
sub eax, edx
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x78]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 8]
push edx
push eax
mov dword [esp + 0x7c], esi
call fcn.0043d720
sar dword [esp + 0x34], 2
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x6c]
mov dword [esp + 0x7c], eax
mov eax, dword [ebp + 0x10]
push edx
push eax
call fcn.0043d720
mov ecx, dword [esp + 0x44]
sar ecx, 2
add esp, 0x24
test esi, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], 0
jle 0x409b69
nop
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x60]
lea edx, [ecx - 1]
mov ecx, dword [esp + 0x1c]
imul edx, ecx
mov esi, dword [eax + edx*4]
lea eax, [eax + edx*4 - 4]
mov edi, dword [eax + 8]
mov ebx, dword [eax + ecx*8]
mov edx, dword [eax]
mov dword [esp + 0x28], esi
lea esi, [eax + 8]
mov dword [esp + 0x2c], edi
mov edi, dword [eax + ecx*4]
mov dword [esp + 0x30], edi
mov edi, dword [eax + ecx*4 + 4]
mov dword [esp + 0x3c], ebx
mov ebx, dword [eax + ecx*8 + 4]
mov dword [esp + 0x34], edi
mov edi, dword [eax + ecx*4 + 8]
mov dword [esp + 0x40], ebx
mov ebx, dword [eax + ecx*8 + 8]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 8
mov dword [esp + 0x24], edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], ebx
jne 0x4098db
xor ecx, ecx
mov dword [esp + 0x14], ecx
lea ebx, [ebx]
mov eax, dword [esp + ecx*4 + 0x24]
mov edx, eax
and edx, 0xff000000
cmp edx, 0xff000000
je 0x4098cd
push eax
call fcn.0043d5a0
mov ecx, dword [esp + 0x18]
mov dword [esp + ecx*4 + 0x28], eax
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x3c]
add esp, 4
inc ecx
cmp ecx, 9
mov dword [esp + 0x14], ecx
jl 0x4098a0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x14], ecx
jle 0x409b45
jmp 0x409900
mov edx, dword [esp + 0x24]
jmp 0x409900
test edx, edx
movq mm0, qword [esp + 0x98]
movq mm1, qword [esp + 0x78]
je 0x40991f
movd mm0, edx
punpcklbw mm0, mm1
pmullw mm0, qword [esp + 0xa8]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x409938
movd mm2, eax
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xb0]
paddw mm0, mm2
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x409951
movd mm2, eax
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xb8]
paddw mm0, mm2
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40996a
movd mm2, eax
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xc0]
paddw mm0, mm2
mov eax, dword [esp + 0x34]
test eax, eax
je 0x409983
movd mm2, eax
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xc8]
paddw mm0, mm2
test edi, edi
je 0x409998
movd mm2, edi
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xd0]
paddw mm0, mm2
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x4099b1
movd mm2, edx
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xd8]
paddw mm0, mm2
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4099ca
movd mm2, edx
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xe0]
paddw mm0, mm2
test ebx, ebx
je 0x4099df
movd mm2, ebx
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xe8]
paddw mm0, mm2
pmulhw mm0, qword [esp + 0xa0]
paddw mm0, qword [esp + 0x90]
mov edx, dword [ebp + 0x10]
cmp dword [edx + 4], 8
pmaxsw mm0, mm1
pminsw mm0, qword [0x53a8c8]
jne 0x409a6f
mov edx, dword [esp + 0x4c]
cmp byte [edx + 0x24], 0
je 0x409a11
shr eax, 0x18
jmp 0x409a15
pextrw eax, mm0, 3
cmp eax, 0xff
jne 0x409a30
mov edx, dword [esp + 0x18]
packuswb mm0, mm1
movd eax, mm0
or eax, 0xff000000
mov dword [edx + ecx*4], eax
jmp 0x409a82
test eax, eax
jne 0x409a41
mov eax, dword [esp + 0x18]
mov dword [eax + ecx*4], 0
jmp 0x409a82
movd mm2, eax
pshufw mm2, mm2, 0
por mm0, qword [0x53a8c0]
pmullw mm0, mm2
movq mm2, mm0
psrlw mm2, 8
paddw mm0, mm2
paddw mm0, qword [0x53a8b8]
psrlw mm0, 8
packuswb mm0, mm1
movd edx, mm0
jmp 0x409a7b
packuswb mm0, mm1
movd edx, mm0
or edx, 0xff000000
mov eax, dword [esp + 0x18]
mov dword [eax + ecx*4], edx
mov eax, dword [esp + 0x48]
dec eax
cmp ecx, eax
je 0x409b34
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x34]
add esi, 4
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
mov edx, dword [esi]
mov dword [esp + 0x34], edi
mov edi, dword [esi + eax*4]
mov dword [esp + 0x40], ebx
mov ebx, dword [esi + eax*8]
mov eax, dword [ebp + 8]
mov dword [esp + 0x2c], edx
cmp dword [eax + 4], 8
jne 0x409b34
mov eax, dword [esp + 0x2c]
mov edx, eax
and edx, 0xff000000
cmp edx, 0xff000000
je 0x409af8
push eax
call fcn.0043d5a0
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x2c], eax
mov eax, edi
and eax, 0xff000000
cmp eax, 0xff000000
je 0x409b15
push edi
call fcn.0043d5a0
mov ecx, dword [esp + 0x18]
add esp, 4
mov edi, eax
mov edx, ebx
and edx, 0xff000000
cmp edx, 0xff000000
je 0x409b34
push ebx
call fcn.0043d5a0
mov ecx, dword [esp + 0x18]
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x48]
inc ecx
cmp ecx, eax
mov dword [esp + 0x14], ecx
jl 0x4098ef
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
lea edx, [eax + ecx*4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x64]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
jl 0x409830
emms
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14