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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
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 + 0x14], ecx
xor esi, esi
lea ecx, [ecx]
mov eax, dword [edi + 0x1c]
mov ecx, dword [esi + eax]
push ecx
call fcn.00402940
mov dword [esp + esi + 0x100], eax
add esi, 4
add esp, 4
cmp esi, 0x24
jl 0x409ce0
fld dword [0x6442b4]
fld dword [edi + 0x24]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x409d27
fld dword [0x5f6988]
fdiv dword [edi + 0x24]
call fcn.004fae80
mov esi, 1
sub esi, eax
jmp 0x409d2c
mov esi, 1
fld dword [edi + 0x28]
call fcn.004fae80
xor ecx, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
pxor mm0, mm0
mov dword [esp + 0x30], ecx
mov dx, 0xff
movq qword [esp + 0xa0], mm0
movq qword [esp + 0x88], mm0
movd mm0, edx
mov dword [esp + 0x34], ecx
movq mm1, mm0
punpcklwd mm1, mm0
mov dword [esp + 0x38], ecx
movq mm0, mm1
mov dword [esp + 0x3c], ecx
punpcklwd mm1, mm0
movq qword [esp + 0x98], mm1
lea edx, [esp + 0xb0]
mov dword [esp + 0x40], ecx
nop
mov edi, dword [esp + ecx + 0xfc]
movd mm0, edi
pshufw mm0, mm0, 0
movq qword [edx], mm0
add ecx, 4
add edx, 8
cmp ecx, 0x24
jl 0x409d90
movd mm0, esi
pshufw mm0, mm0, 0
movq qword [esp + 0x90], mm0
movd mm0, eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x78]
push edx
dec eax
push eax
dec ebx
push ebx
push 1
pshufw mm0, mm0, 0
push 1
movq qword [esp + 0xbc], mm0
call fcn.0043d610
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x8c]
push ecx
mov edx, ecx
push ebx
push edx
call fcn.0043d880
lea eax, [esp + 0x140]
push eax
lea ecx, [esp + 0x9c]
push ebx
push ecx
call fcn.00405d90
mov esi, dword [ebp + 0x14]
add esp, 0x2c
test eax, eax
jle 0x409e75
lea edi, [esp + 0x120]
mov dword [esp + 0x14], eax
nop
mov edx, esi
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x64], ecx
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x60]
push edx
push edi
push ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
call fcn.0043f5c0
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
add esp, 0xc
push eax
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x54]
push edx
push edi
push eax
call fcn.00404cf0
mov eax, dword [esp + 0x14]
add edi, 0x10
dec eax
mov dword [esp + 0x14], eax
jne 0x409e20
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 + 0x7c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0xc]
push eax
push ebx
mov dword [esp + 0x68], ecx
call fcn.0043f5c0
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 + 0x88]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 8]
push edx
push eax
mov dword [esp + 0x88], esi
call fcn.00444df0
sar dword [esp + 0x34], 2
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x6c]
mov dword [esp + 0x90], eax
mov eax, dword [ebp + 0x10]
push edx
push eax
call fcn.00444df0
mov ecx, dword [esp + 0x68]
sar ecx, 2
add esp, 0x24
test esi, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14], 0
jle 0x40a25b
jmp 0x409f20
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x74]
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 + 0x24], esi
lea esi, [eax + 8]
mov dword [esp + 0x28], edi
mov edi, dword [eax + ecx*4]
mov dword [esp + 0x2c], edi
mov edi, dword [eax + ecx*4 + 4]
mov dword [esp + 0x38], ebx
mov ebx, dword [eax + ecx*8 + 4]
mov dword [esp + 0x30], edi
mov edi, dword [eax + ecx*4 + 8]
mov dword [esp + 0x3c], ebx
mov ebx, dword [eax + ecx*8 + 8]
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 8
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], ebx
jne 0x409fcb
xor ecx, ecx
mov dword [esp + 0x10], ecx
lea ebx, [ebx]
mov eax, dword [esp + ecx*4 + 0x20]
mov edx, eax
and edx, 0xff000000
cmp edx, 0xff000000
je 0x409fbd
push eax
call fcn.00444c70
mov ecx, dword [esp + 0x14]
mov dword [esp + ecx*4 + 0x24], eax
mov ebx, dword [esp + 0x44]
mov edi, dword [esp + 0x38]
add esp, 4
inc ecx
cmp ecx, 9
mov dword [esp + 0x10], ecx
jl 0x409f90
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x48]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x10], ecx
jle 0x40a237
jmp 0x409fe3
mov edx, dword [esp + 0x20]
test edx, edx
movq mm0, qword [esp + 0xa0]
movq mm1, qword [esp + 0x88]
je 0x40a005
movd mm0, edx
punpcklbw mm0, mm1
pmullw mm0, qword [esp + 0xb0]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40a01e
movd mm2, eax
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xb8]
paddw mm0, mm2
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40a037
movd mm2, eax
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xc0]
paddw mm0, mm2
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x40a050
movd mm2, eax
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xc8]
paddw mm0, mm2
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40a069
movd mm2, eax
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xd0]
paddw mm0, mm2
test edi, edi
je 0x40a07e
movd mm2, edi
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xd8]
paddw mm0, mm2
mov edx, dword [esp + 0x38]
test edx, edx
je 0x40a097
movd mm2, edx
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xe0]
paddw mm0, mm2
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x40a0b0
movd mm2, edx
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xe8]
paddw mm0, mm2
test ebx, ebx
je 0x40a0c5
movd mm2, ebx
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xf0]
paddw mm0, mm2
pmulhw mm0, qword [esp + 0x90]
paddw mm0, qword [esp + 0xa8]
mov edx, dword [ebp + 0x10]
cmp dword [edx + 4], 8
pmaxsw mm0, mm1
pminsw mm0, qword [esp + 0x98]
jne 0x40a162
mov edx, dword [esp + 0x4c]
cmp byte [edx + 0x2c], 0
je 0x40a0f8
shr eax, 0x18
jmp 0x40a0fc
pextrw eax, mm0, 3
cmp eax, 0xff
je 0x40a162
test eax, eax
jne 0x40a114
mov eax, dword [esp + 0x18]
mov dword [eax + ecx*4], 0
jmp 0x40a174
movd mm2, eax
pshufw mm2, mm2, 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0xff0000
movq mm3, qword [esp + 0x60]
por mm0, mm3
pmullw mm0, mm2
mov dx, 1
movd mm2, edx
movq mm3, mm2
punpcklwd mm3, mm2
movq mm2, mm3
punpcklwd mm3, mm2
movq mm2, mm0
psrlw mm2, 8
paddw mm0, mm2
paddw mm0, mm3
psrlw mm0, 8
packuswb mm0, mm1
movd eax, mm0
jmp 0x40a16d
packuswb mm0, mm1
movd eax, mm0
or eax, 0xff000000
mov edx, dword [esp + 0x18]
mov dword [edx + ecx*4], eax
mov eax, dword [esp + 0x48]
dec eax
cmp ecx, eax
je 0x40a226
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
add esi, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0x30], edi
mov edi, dword [esi + eax*4]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esi + eax*8]
cmp dword [edx + 4], 8
jne 0x40a226
mov eax, dword [esp + 0x28]
mov edx, eax
and edx, 0xff000000
cmp edx, 0xff000000
je 0x40a1ea
push eax
call fcn.00444c70
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x28], eax
mov eax, edi
and eax, 0xff000000
cmp eax, 0xff000000
je 0x40a207
push edi
call fcn.00444c70
mov ecx, dword [esp + 0x14]
add esp, 4
mov edi, eax
mov edx, ebx
and edx, 0xff000000
cmp edx, 0xff000000
je 0x40a226
push ebx
call fcn.00444c70
mov ecx, dword [esp + 0x14]
add esp, 4
mov ebx, eax
mov eax, dword [esp + 0x48]
inc ecx
cmp ecx, eax
mov dword [esp + 0x10], ecx
jl 0x409fdf
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
lea edx, [eax + ecx*4]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x70]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
jl 0x409f20
emms
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14