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

Disassembly:
sub esp, 0x94
mov ecx, dword [0x6815a8]
mov eax, ecx
push esi
push edi
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x94], eax
cmp byte [edi + 0x67], 0
je 0x4a19ce
movups xmm0, xmmword [eax + 0x3fa0]
mov esi, dword [eax + 0x3fb0]
push edi
movups xmmword [esp + 0x3c], xmm0
call fcn.004a0360
mov eax, dword [esp + 0x98]
add esp, 4
movups xmm0, xmmword [esp + 0x38]
movups xmmword [eax + 0x3fa0], xmm0
mov dword [eax + 0x3fb0], esi
mov ecx, dword [0x6815a8]
mov eax, dword [eax + 0x3f04]
mov dword [esp + 0x78], eax
cmp byte [eax + 0xc8], 0
jne 0x4a1a52
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x4a1a0b
mov eax, dword [eax + 0x88]
push eax
mov dword [esp + 0x9c], eax
call fcn.004770c0
mov ecx, dword [esp + 0x9c]
add esp, 4
jmp 0x4a1a28
mov ecx, dword [ecx + 0x3f04]
push 0
push dword [esp + 0xa8]
call fcn.00474d40
mov ecx, eax
mov dword [esp + 0x98], ecx
mov edx, dword [esp + 0xa8]
test edx, edx
je 0x4a1a5d
cmp byte [edx], 0
jne 0x4a1a5d
push 0x18
push 0
push ecx
lea eax, [esp + 0x44]
xorps xmm0, xmm0
push eax
movups xmmword [esp + 0x48], xmm0
call fcn.00476c90
add esp, 0x10
pop edi
xor al, al
pop esi
add esp, 0x94
ret
mov eax, dword [esp + 0xac]
test eax, 0x100000
je 0x4a1a78
mov dword [esp + 0xa8], 0
jmp 0x4a1a88
test edx, edx
jne 0x4a1a88
or eax, 0x100000
mov dword [esp + 0xac], eax
test ecx, ecx
je 0x4a1aac
mov edx, dword [edi]
xor eax, eax
test edx, edx
jle 0x4a1aac
lea esi, [edi + 8]
mov dword [esp + 0x84], esi
mov esi, dword [esi]
cmp dword [esi], ecx
je 0x4a1af4
inc eax
add esi, 0x30
cmp eax, edx
jl 0x4a1aa0
lea eax, [edi + 8]
mov dword [esp + 0x84], eax
lea ecx, [esp + 8]
call fcn.00499460
push eax
mov ecx, edi
call fcn.004a30a0
mov eax, dword [edi]
mov edx, dword [esp + 0x84]
mov byte [esp + 0xa3], 1
lea ecx, [eax + eax*2]
mov esi, dword [edx]
shl ecx, 4
add esi, 0xffffffd0
add esi, ecx
mov ecx, dword [esp + 0x98]
mov dword [esi], ecx
mov byte [edi + 0x69], 1
jmp 0x4a1b03
mov byte [esp + 0xa3], 0
test esi, esi
je 0x4a1ab6
lea edx, [edi + 8]
mov ecx, esi
mov eax, 0x2aaaaaab
sub ecx, dword [edx]
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0xa8], 0
mov word [edi + 0x6c], ax
setne al
movzx eax, al
push eax
push dword [esp + 0xa8]
lea eax, [esp + 0x64]
push eax
call fcn.004a1860
mov ecx, dword [esp + 0xa0]
add esp, 0xc
mov dword [esi + 0x20], 0xbf800000
test byte [ecx + 0x3fa0], 1
je 0x4a1b65
movss xmm0, dword [ecx + 0x3fa4]
movss dword [esi + 0x20], xmm0
jmp 0x4a1b6b
movss xmm0, dword [esp + 0x5c]
cmp byte [esp + 0xa3], 0
je 0x4a1b7a
movss dword [esi + 0x18], xmm0
movss dword [esi + 0x1c], xmm0
mov ax, word [edi + 0x6a]
mov word [esi + 0x28], ax
inc word [edi + 0x6a]
mov eax, dword [ecx + 0x3ea0]
mov edx, dword [edi + 0x24]
mov dword [esp + 0x68], eax
inc edx
mov eax, dword [edi + 0xc]
shr eax, 0x15
and eax, 0xffffff01
mov dword [esp + 0x6c], edx
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0xc]
inc eax
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xac]
shr eax, 0x15
and eax, 0xffffff01
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x68]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0xac]
mov dword [esi + 4], eax
mov eax, dword [esp + 0xb0]
mov dword [esi + 8], eax
test eax, eax
je 0x4a1bf2
mov dword [esi + 0x24], 0xffffffff
jmp 0x4a1c3d
mov ecx, dword [edi + 0x84]
mov edx, dword [esp + 0xa4]
lea eax, [ecx - 1]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x24], ecx
lea ecx, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4a1c10
sub edx, ecx
mov ecx, dword [esp + 0xa4]
lea eax, [ecx + 1]
add eax, edx
push eax
push ecx
lea ecx, [edi + 0x84]
call fcn.004862a0
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x6c]
cmp byte [esp + 0x70], 0
jne 0x4a1c8c
mov eax, dword [esp + 0x68]
cmp dword [esp + 0x8c], eax
jge 0x4a1c73
test byte [edi + 0xc], 2
je 0x4a1c73
cmp dword [edi + 0x18], 0
jne 0x4a1c73
cmp edx, eax
jge 0x4a1c67
cmp dword [edi + 0x14], 0
jne 0x4a1c73
mov eax, dword [esp + 0x98]
mov dword [edi + 0x18], eax
jmp 0x4a1c7a
mov eax, dword [esp + 0x98]
test byte [esp + 0xac], 2
je 0x4a1c8c
cmp dword [edi + 0x14], eax
je 0x4a1c8c
mov dword [edi + 0x18], eax
mov edx, dword [esp + 0x98]
lea eax, [edi + 0x14]
cmp dword [edi + 0x1c], edx
mov dword [esp + 0x80], eax
sete byte [esp + 0x74]
jne 0x4a1cad
mov byte [edi + 0x68], 1
jmp 0x4a1d00
cmp dword [eax], 0
jne 0x4a1d00
mov ecx, dword [esp + 0x68]
cmp dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x80], eax
jge 0x4a1d00
cmp dword [esp + 0xb0], 0
mov dword [esp + 0x80], eax
jne 0x4a1d00
cmp dword [edi], 1
mov dword [esp + 0x80], eax
jne 0x4a1d00
test byte [edi + 0xc], 2
mov dword [esp + 0x80], eax
jne 0x4a1d00
mov byte [esp + 0x74], 1
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x68]
cmp dword [esp + 0x8c], eax
jge 0x4a1d4f
cmp dword [esp + 0x6c], eax
jge 0x4a1d1d
cmp byte [esp + 0xa3], 0
je 0x4a1d4f
push 0x18
push 0
push edx
lea eax, [esp + 0x44]
xorps xmm0, xmm0
push eax
movups xmmword [esp + 0x48], xmm0
call fcn.00476c90
add esp, 0x10
cmp byte [esp + 0x70], 0
jne 0x4a1a52
mov al, byte [esp + 0x74]
pop edi
pop esi
add esp, 0x94
ret
mov eax, dword [esp + 0x80]
cmp dword [eax], edx
jne 0x4a1d63
mov eax, dword [ecx + 0x3ea0]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x78]
lea ecx, [edi + 0x28]
mov edx, dword [esi + 4]
movss xmm2, dword [esi + 0x18]
movss xmm1, dword [esi + 0x14]
movss xmm0, dword [eax + 0x108]
movss dword [esp + 0x6c], xmm0
movss xmm0, dword [eax + 0x10c]
movss dword [esp + 0x48], xmm0
and edx, 0xc0
jne 0x4a1dab
subss xmm1, dword [edi + 0x48]
cvttss2si eax, xmm1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movss xmm4, dword [esp + 0x60]
mov eax, 4
addss xmm1, dword [ecx]
movss xmm3, dword [ecx + eax]
mov eax, dword [esp + 0x78]
addss xmm2, xmm1
addss xmm3, dword [0x671fe8]
movss dword [eax + 0x108], xmm1
movss dword [eax + 0x10c], xmm3
addss xmm4, xmm3
movss dword [esp + 0x4c], xmm1
movss dword [esp + 0x50], xmm3
movss dword [esp + 0x54], xmm2
movss dword [esp + 0x58], xmm4
test edx, edx
jne 0x4a1e72
movss xmm5, dword [edi + 0x58]
comiss xmm5, xmm1
ja 0x4a1e0f
comiss xmm2, dword [edi + 0x5c]
jbe 0x4a1e72
subss xmm3, dword [0x672010]
movss xmm0, dword [edi + 0x5c]
maxss xmm1, xmm5
push 1
lea eax, [esp + 0x60]
mov byte [esp + 0x97], 1
push eax
lea eax, [esp + 0x48]
movss dword [esp + 0x64], xmm0
push eax
movss dword [esp + 0x6c], xmm4
movss dword [esp + 0x4c], xmm1
movss dword [esp + 0x50], xmm3
call fcn.0047c580
movss xmm4, dword [esp + 0x64]
add esp, 0xc
movss xmm2, dword [esp + 0x54]
movss xmm3, dword [esp + 0x50]
movss xmm1, dword [esp + 0x4c]
mov eax, dword [esp + 0x78]
jmp 0x4a1e7a
mov byte [esp + 0x93], 0
movss xmm0, dword [eax + 0x120]
subss xmm2, xmm1
movss dword [esp + 0xa0], xmm0
subss xmm4, xmm3
movss xmm0, dword [eax + 0x124]
mov eax, dword [esp + 0x94]
movss dword [esp + 0x60], xmm0
push ecx
movss dword [esp + 0x44], xmm2
movss xmm0, dword [eax + 0x3894]
lea eax, [esp + 0x44]
movss dword [esp], xmm0
push eax
movss dword [esp + 0x4c], xmm4
call fcn.00476f50
mov eax, dword [esp + 0x80]
movss xmm0, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa0]
push 0
movss dword [eax + 0x120], xmm0
movss xmm0, dword [esp + 0x6c]
push 0
movss dword [eax + 0x124], xmm0
lea eax, [esp + 0x5c]
push ecx
push eax
call fcn.00476c90
add esp, 0x18
test al, al
jne 0x4a1f4a
cmp byte [esp + 0x93], al
je 0x4a1f1d
call fcn.0047c350
mov eax, dword [esp + 0x78]
movss xmm0, dword [esp + 0x6c]
pop edi
pop esi
movss dword [eax + 0x108], xmm0
movss xmm0, dword [esp + 0x40]
movss dword [eax + 0x10c], xmm0
mov al, byte [esp + 0x6c]
add esp, 0x94
ret
mov eax, dword [esp + 0x70]
movzx ecx, al
mov eax, dword [esp + 0x94]
inc ecx
shl ecx, 4
or ecx, 0x1000
mov dword [esp + 0xa0], ecx
cmp byte [eax + 0x4294], 0
je 0x4a1fcc
cmp dword [eax + 0x42b4], 0xffffffff
je 0x4a1fb6
lea ecx, [eax + 0x42b8]
mov eax, str._IMWINDOW
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a1fa6
test dl, dl
je 0x4a1fa2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a1fa6
add eax, 2
add ecx, 2
test dl, dl
jne 0x4a1f86
xor eax, eax
jmp 0x4a1fab
sbb eax, eax
or eax, 1
mov ecx, dword [esp + 0xa0]
test eax, eax
je 0x4a1fcc
mov eax, dword [esp + 0x84]
or ecx, 0x200
mov dword [esp + 0x84], eax
jmp 0x4a1fd3
mov eax, dword [esp + 0x84]
mov dword [esp + 0x60], eax
lea eax, [esp + 0xa3]
push ecx
push eax
lea eax, [esp + 0x93]
push eax
push dword [esp + 0xa4]
lea eax, [esp + 0x5c]
push eax
call fcn.0049a1c0
mov ecx, dword [esp + 0xac]
add esp, 0x14
mov byte [esp + 0x7d], al
test al, al
je 0x4a2015
cmp byte [esp + 0x70], 0
jne 0x4a2015
mov dword [edi + 0x18], ecx
cmp byte [esp + 0xa3], 0
mov eax, dword [esp + 0x94]
je 0x4a2048
mov edx, dword [esp + 0xb0]
test edx, edx
je 0x4a2048
cmp dword [eax + 0x3f40], ecx
jne 0x4a2050
cmp byte [eax + 0x3f4c], 0
je 0x4a2048
mov dword [eax + 0x3f5c], edx
cmp dword [eax + 0x3f40], ecx
je 0x4a2055
call fcn.004808e0
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x4a2095
mov eax, dword [eax + 0x388]
test eax, eax
je 0x4a2095
cmp dword [eax + 0x18], 0
jne 0x4a2095
test dword [eax + 0x10], 0x400
jne 0x4a2095
cmp dword [eax + 0x24], 1
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x84], ecx
jne 0x4a2095
mov al, 1
mov dword [esp + 0x84], ecx
jmp 0x4a2097
xor al, al
cmp byte [esp + 0xa3], 0
je 0x4a236f
test al, al
je 0x4a20d3
push ecx
mov dword [esp], 0
push 0
call fcn.00476960
add esp, 8
test al, al
je 0x4a20d3
push dword [esp + 0xb0]
call fcn.00481dc0
add esp, 4
jmp 0x4a236f
mov eax, dword [esp + 0x8c]
cmp eax, dword [esp + 0x68]
jl 0x4a236f
push ecx
mov dword [esp], 0xbf800000
push 0
call fcn.00476960
add esp, 8
test al, al
je 0x4a236f
mov eax, dword [esp + 0x94]
xor edx, edx
mov ecx, dword [esp + 0xb0]
xorps xmm5, xmm5
xorps xmm3, xmm3
cmp byte [eax + 0x4294], dl
jne 0x4a21d0
test byte [edi + 0xc], 1
jne 0x4a212e
test ecx, ecx
je 0x4a236f
movss xmm2, dword [eax + 0xb4]
comiss xmm5, xmm2
jbe 0x4a2176
movss xmm1, dword [eax + 0xd58]
movss xmm0, dword [esp + 0x4c]
comiss xmm0, xmm1
jbe 0x4a2176
push dword [eax + 0xd5c]
subss xmm0, xmm1
push dword [eax + 0xd58]
push esi
push edi
movss dword [esp + 0x9c], xmm0
call fcn.004a11a0
add esp, 0x10
or edx, 0xffffffff
jmp 0x4a21b6
comiss xmm2, xmm5
jbe 0x4a21d0
movss xmm0, dword [eax + 0xd58]
movss xmm1, dword [esp + 0x54]
comiss xmm0, xmm1
jbe 0x4a21d0
push dword [eax + 0xd5c]
subss xmm0, xmm1
push dword [eax + 0xd58]
push esi
push edi
movss dword [esp + 0x9c], xmm0
call fcn.004a11a0
add esp, 0x10
mov edx, 1
mov ecx, dword [esp + 0xb0]
xorps xmm5, xmm5
mov eax, dword [esp + 0x94]
movss xmm3, dword [esp + 0x8c]
test ecx, ecx
je 0x4a236f
test byte [ecx + 8], 4
jne 0x4a236f
cmp byte [eax + 0x4294], 0
je 0x4a21fe
mov ecx, dword [esp + 0x98]
cmp dword [eax + 0x42ac], ecx
je 0x4a22e1
movss xmm2, dword [eax + 0x3c98]
xor cl, cl
movss xmm1, dword [eax + 0x36d0]
movaps xmm0, xmm2
andps xmm1, xmmword [0x6722d0]
addss xmm0, xmm2
movaps xmm4, xmm2
mulss xmm4, dword [0x54b4b8]
subss xmm1, xmm0
mulss xmm1, dword [0x54715c]
comiss xmm5, xmm1
ja 0x4a2249
movaps xmm5, xmm2
mulss xmm5, dword [0x672034]
minss xmm5, xmm1
movss xmm0, dword [eax + 0xd5c]
movss xmm1, dword [esp + 0x50]
mulss xmm2, dword [0x5471a4]
subss xmm1, xmm0
movzx eax, cl
mov ecx, 1
subss xmm0, dword [esp + 0x58]
addss xmm2, xmm5
maxss xmm1, xmm0
comiss xmm1, xmm2
cmovae eax, ecx
comiss xmm3, xmm4
mov dword [esp + 0x8c], eax
jbe 0x4a22d9
test edx, edx
jns 0x4a22ad
mov eax, dword [esp + 0x84]
mov ecx, esi
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
jmp 0x4a22d0
jle 0x4a22d9
mov eax, dword [esp + 0x84]
mov ecx, esi
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
mov eax, dword [edi]
sar edx, 3
dec eax
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, eax
je 0x4a22e1
mov eax, dword [esp + 0x8c]
test al, al
je 0x4a236f
push dword [esp + 0xb0]
mov eax, dword [esp + 0x98]
push eax
call fcn.0046cb60
mov ecx, dword [esp + 0xb8]
mov eax, dword [esp + 0x9c]
push ecx
mov dword [eax + 0x3f14], ecx
push dword [ecx + 0x84]
call fcn.00480330
mov ecx, dword [esp + 0xa4]
add esp, 0x10
mov eax, dword [ecx + 0x3f14]
movss xmm0, dword [ecx + 0x3f54]
movss xmm1, dword [eax + 0x40]
subss xmm1, dword [esp + 0x4c]
movss xmm2, dword [eax + 0x44]
subss xmm2, dword [esp + 0x50]
mov byte [ecx + 0x3f4e], 1
subss xmm0, xmm1
movss dword [ecx + 0x3f54], xmm0
movss xmm0, dword [ecx + 0x3f58]
subss xmm0, xmm2
movss dword [ecx + 0x3f58], xmm0
call fcn.00480480
cmp byte [esp + 0xa3], 0
mov eax, dword [esp + 0x78]
mov eax, dword [eax + 0x288]
mov dword [esp + 0x8c], eax
jne 0x4a23bf
cmp byte [esp + 0x8b], 0
jne 0x4a23bf
cmp byte [esp + 0x74], 0
mov ecx, dword [esp + 0x64]
je 0x4a23ae
movzx eax, cl
xor eax, 1
lea eax, [eax*2 + 0x23]
jmp 0x4a23c4
test cl, cl
mov eax, 0x24
mov edx, 0x21
cmovne eax, edx
jmp 0x4a23c4
mov eax, 0x22
push ecx
mov dword [esp], 0x3f800000
push eax
call fcn.00474aa0
push eax
push dword [esp + 0xb8]
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0xa0]
call fcn.004a15c0
push 1
push dword [esp + 0xb4]
lea eax, [esp + 0x6c]
push eax
call fcn.0047dd40
push 0x20
call fcn.004766c0
add esp, 0x28
test al, al
je 0x4a243d
push 0
push 1
call fcn.004768d0
add esp, 8
test al, al
jne 0x4a242a
push 1
call fcn.00476ab0
add esp, 4
test al, al
je 0x4a243d
cmp byte [esp + 0x70], 0
mov eax, dword [esp + 0x98]
jne 0x4a2444
mov dword [edi + 0x18], eax
jmp 0x4a2444
mov eax, dword [esp + 0x98]
test byte [edi + 0xc], 8
je 0x4a2452
or dword [esp + 0xac], 4
cmp dword [esp + 0xa8], 0
je 0x4a247c
mov ecx, dword [esp + 0xb0]
test ecx, ecx
je 0x4a246a
mov eax, dword [ecx + 4]
push eax
push 0
push str.CLOSE
call fcn.00474e40
add esp, 0xc
jmp 0x4a247e
xor eax, eax
lea ecx, [esp + 0x7e]
mov dword [esp + 0x64], eax
push ecx
lea ecx, [esp + 0x83]
push ecx
push dword [esp + 0x7c]
push eax
push dword [esp + 0xa8]
lea eax, [esp + 0x60]
push dword [esp + 0xb8]
push dword [edi + 0x78]
push dword [edi + 0x74]
push dword [esp + 0xcc]
push eax
push dword [esp + 0xb4]
call fcn.004a2600
add esp, 0x2c
cmp byte [esp + 0x7f], 0
je 0x4a2510
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x4a2510
mov byte [eax], 0
test byte [esi + 4], 1
jne 0x4a2506
mov byte [esi + 0x2c], 1
mov eax, dword [edi + 0x1c]
cmp eax, dword [esi]
jne 0x4a2510
mov eax, dword [esp + 0x80]
mov dword [esi + 0xc], 0xffffffff
mov dword [edi + 0x18], 0
mov dword [eax], 0
jmp 0x4a2510
mov eax, dword [esi]
cmp dword [edi + 0x1c], eax
je 0x4a2510
mov dword [edi + 0x18], eax
cmp dword [esp + 0xb0], 0
je 0x4a2541
cmp byte [esp + 0x8b], 0
mov eax, dword [esp + 0x94]
jne 0x4a2537
mov ecx, dword [esp + 0x64]
cmp dword [eax + 0x3f2c], ecx
jne 0x4a2541
or dword [eax + 0x3fbc], 0x80
cmp byte [esp + 0x93], 0
je 0x4a2550
call fcn.0047c350
cmp byte [esp + 0x7e], 0
mov eax, dword [esp + 0x78]
movss xmm0, dword [esp + 0x6c]
movss dword [eax + 0x108], xmm0
movss xmm0, dword [esp + 0x48]
movss dword [eax + 0x10c], xmm0
je 0x4a25e5
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x98]
cmp dword [eax + 0x3f2c], ecx
jne 0x4a25e5
cmp byte [esp + 0xa3], 0
jne 0x4a25e5
movss xmm0, dword [eax + 0x3f3c]
comiss xmm0, dword [eax + 0x5304]
jbe 0x4a25e5
push 0
call fcn.004766c0
add esp, 4
test al, al
je 0x4a25e5
test byte [edi + 0xc], 0x20
jne 0x4a25e5
test byte [esi + 4], 0x10
jne 0x4a25e5
mov esi, dword [esp + 0xa4]
push esi
push 0
push esi
call fcn.00474380
add esp, 8
sub eax, esi
push eax
push str._.s
call fcn.00480f70
add esp, 0xc
cmp byte [esp + 0x70], 0
movzx eax, byte [esp + 0x74]
movzx ecx, byte [esp + 0x7d]
pop edi
cmovne eax, ecx
pop esi
add esp, 0x94
ret