Function at 0x409670
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.00402570
mov dword [esp + esi + 0x138], eax
add esi, 4
add esp, 4
cmp esi, 0x24
jl 0x4096a0
fld dword [str..ssl]
fld dword [edi + 0x1c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4096e7
fld dword [0x53d910]
fdiv dword [edi + 0x1c]
call fcn.004ae0e0
mov esi, 1
sub esi, eax
jmp 0x4096ec
mov esi, 1
fld dword [edi + 0x20]
call fcn.004ae0e0
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 0x409731
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.00436f30
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x7c]
push ecx
mov edx, ecx
push ebx
push edx
call fcn.004371a0
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x8c]
push ebx
push ecx
call fcn.00405840
mov esi, dword [ebp + 0x14]
add esp, 0x2c
test eax, eax
jle 0x409827
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.00438cb0
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.00404800
mov eax, dword [esp + 0x10]
add edi, 0x10
dec eax
mov dword [esp + 0x10], eax
jne 0x4097c0
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.00438cb0
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.0043e200
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.0043e200
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 0x409bf9
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 0x40996b
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 0x40995d
push eax
call fcn.0043e080
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 0x409930
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x14], ecx
jle 0x409bd5
jmp 0x409990
mov edx, dword [esp + 0x24]
jmp 0x409990
test edx, edx
movq mm0, qword [esp + 0x98]
movq mm1, qword [esp + 0x78]
je 0x4099af
movd mm0, edx
punpcklbw mm0, mm1
pmullw mm0, qword [esp + 0xa8]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4099c8
movd mm2, eax
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xb0]
paddw mm0, mm2
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4099e1
movd mm2, eax
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xb8]
paddw mm0, mm2
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4099fa
movd mm2, eax
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xc0]
paddw mm0, mm2
mov eax, dword [esp + 0x34]
test eax, eax
je 0x409a13
movd mm2, eax
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xc8]
paddw mm0, mm2
test edi, edi
je 0x409a28
movd mm2, edi
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xd0]
paddw mm0, mm2
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x409a41
movd mm2, edx
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xd8]
paddw mm0, mm2
mov edx, dword [esp + 0x40]
test edx, edx
je 0x409a5a
movd mm2, edx
punpcklbw mm2, mm1
pmullw mm2, qword [esp + 0xe0]
paddw mm0, mm2
test ebx, ebx
je 0x409a6f
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 [str.clear]
jne 0x409aff
mov edx, dword [esp + 0x4c]
cmp byte [edx + 0x24], 0
je 0x409aa1
shr eax, 0x18
jmp 0x409aa5
pextrw eax, mm0, 3
cmp eax, 0xff
jne 0x409ac0
mov edx, dword [esp + 0x18]
packuswb mm0, mm1
movd eax, mm0
or eax, 0xff000000
mov dword [edx + ecx*4], eax
jmp 0x409b12
test eax, eax
jne 0x409ad1
mov eax, dword [esp + 0x18]
mov dword [eax + ecx*4], 0
jmp 0x409b12
movd mm2, eax
pshufw mm2, mm2, 0
por mm0, qword [str.change]
pmullw mm0, mm2
movq mm2, mm0
psrlw mm2, 8
paddw mm0, mm2
paddw mm0, qword [str.reject]
psrlw mm0, 8
packuswb mm0, mm1
movd edx, mm0
jmp 0x409b0b
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 0x409bc4
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 0x409bc4
mov eax, dword [esp + 0x2c]
mov edx, eax
and edx, 0xff000000
cmp edx, 0xff000000
je 0x409b88
push eax
call fcn.0043e080
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x2c], eax
mov eax, edi
and eax, 0xff000000
cmp eax, 0xff000000
je 0x409ba5
push edi
call fcn.0043e080
mov ecx, dword [esp + 0x18]
add esp, 4
mov edi, eax
mov edx, ebx
and edx, 0xff000000
cmp edx, 0xff000000
je 0x409bc4
push ebx
call fcn.0043e080
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 0x40997f
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 0x4098c0
emms
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14