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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
mov eax, dword [0x571180]
xor eax, esp
mov dword [esp + 0x1a4], eax
push esi
mov esi, ecx
push edi
mov dword [esp + 0x38], esi
cmp dword [esi + 0x58], 0
jge 0x45e33b
test byte [esi + 4], 2
lea eax, [esp + 0x70]
mov dword [esp + 0x78], 0xffffffff
lea ecx, [esi + 0x40]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x70], VariantInit
push eax
mov dword [esp + 0x78], 0x1b00d9
je 0x45e32f
mov dword [esp + 0x78], 0x20002
call fcn.00461630
mov eax, dword [esi + 0x40]
dec eax
mov dword [esi + 0x58], eax
mov ecx, dword [esi + 0x14]
mov dword [esi + 8], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
test ecx, ecx
je 0x45e38b
mov eax, dword [0x57bab8]
test eax, eax
je 0x45e382
dec dword [eax + 0x374]
push ecx
call fcn.004cba1d
add esp, 4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x45e3aa
mov eax, dword [0x57bab8]
test eax, eax
je 0x45e3a1
dec dword [eax + 0x374]
push ecx
call fcn.004cba1d
add esp, 4
mov ecx, dword [esi + 0x4c]
xor edi, edi
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x3c], edi
lea edx, [edi + 8]
mov dword [esp + 0x48], ecx
test ecx, ecx
jle 0x45e407
cmp ecx, edx
mov eax, ecx
cmovl eax, edx
test eax, eax
jle 0x45e407
mov ecx, dword [0x57bab8]
test ecx, ecx
je 0x45e3ef
inc dword [ecx + 0x374]
imul eax, eax, 0xc4
push eax
call fcn.004d0775
add esp, 4
mov dword [esp + 0x40], eax
mov edx, 8
mov eax, dword [esi + 0x34]
mov dword [esp + 0x44], eax
test eax, eax
jle 0x45e442
cmp eax, 8
mov ecx, eax
cmovl ecx, edx
test ecx, ecx
jle 0x45e442
mov eax, dword [0x57bab8]
test eax, eax
je 0x45e42d
inc dword [eax + 0x374]
lea eax, [ecx + ecx*2]
shl eax, 3
push eax
call fcn.004d0775
add esp, 4
mov dword [esp + 0x3c], eax
mov edi, eax
imul ecx, dword [esp + 0x48], 0xc4
push ecx
push 0
push dword [esp + 0x48]
call fcn.004c53c0
mov eax, dword [esp + 0x50]
add esp, 0xc
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push edi
call fcn.004c53c0
add esp, 0xc
mov dword [esp + 0x18], 0
cmp dword [esi + 0x4c], 0
jle 0x45e5b4
mov eax, dword [esp + 0x40]
xor edx, edx
add eax, 0xa4
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], eax
mov ecx, dword [esi + 0x54]
add ecx, edx
mov dword [eax - 4], 0xffffffff
xor edx, edx
mov dword [esp + 0x1c], ecx
cmp dword [esi + 0x34], edx
jle 0x45e60e
mov edi, dword [esp + 0x30]
or eax, 0xffffffff
mov ecx, eax
cmp eax, 0xffffffff
jne 0x45e4de
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x3c]
mov eax, dword [eax + 0x74]
cmp eax, dword [ecx + edx*4]
jne 0x45e4d3
mov dword [edi - 4], edx
mov eax, edx
jmp 0x45e4d6
or eax, 0xffffffff
inc edx
mov ecx, eax
cmp edx, dword [esi + 0x34]
jl 0x45e4b6
mov edi, dword [esp + 0x3c]
cmp ecx, 0xffffffff
je 0x45e60e
mov eax, dword [esp + 0x1c]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [eax + 0xc]
call fcn.004546d0
mov ecx, dword [esp + 0x30]
mov edx, esi
add ecx, 0xffffff5c
push eax
mov dword [esp + 0x10], ecx
call fcn.004549a0
add esp, 4
test eax, eax
je 0x45e60e
mov eax, dword [esp + 0xc]
mov edx, 0x54c660
mov esi, dword [esp + 0x30]
mov eax, dword [eax + 0xa0]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 0x30]
test eax, eax
cmovne edx, eax
mov dword [esi - 8], edx
cmp word [edx], 0
je 0x45e56f
nop dword [eax + eax]
movzx eax, word [edx + 2]
test ax, ax
je 0x45e56b
mov ecx, eax
cmp dword [esi], ecx
cmovge ecx, dword [esi]
add edx, 4
mov dword [esi], ecx
cmp word [edx], 0
jne 0x45e550
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
inc dword [edi + ecx*8]
mov ecx, dword [esi]
mov eax, dword [esp + 0x18]
cmp dword [edi + edx*8 + 4], ecx
cmovge ecx, dword [edi + edx*8 + 4]
add esi, 0xc4
mov dword [esp + 0x30], esi
inc eax
mov esi, dword [esp + 0x38]
mov dword [edi + edx*8 + 4], ecx
mov edx, dword [esp + 0x14]
add edx, 0x78
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0x4c]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], edx
jl 0x45e494
mov eax, dword [esp + 0x48]
xor esi, esi
mov dword [esp + 0x18], esi
test eax, eax
jle 0x45e945
mov esi, dword [esp + 0x40]
add esi, 0xa8
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
nop dword [eax + eax]
mov eax, dword [esi - 8]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi - 4]
add ecx, 0x20
sar ecx, 5
mov dword [esp + 0xc], ecx
cmp ecx, eax
jle 0x45e631
test eax, eax
je 0x45e618
cdq
sub eax, edx
mov edx, eax
sar edx, 1
add edx, dword [esi + 8]
jmp 0x45e61d
mov byte [esp + 0x2f], 0
jmp 0x45f7ff
mov edx, 8
cmp edx, ecx
mov eax, ecx
lea ecx, [esi + 4]
cmovg eax, edx
push eax
call fcn.00452690
mov ecx, dword [esp + 0xc]
lea eax, [esi + 4]
mov dword [eax], ecx
lea eax, [ecx*4]
push eax
push 0
push dword [esi + 0xc]
call fcn.004c53c0
mov edx, dword [esp + 0x2c]
add esp, 0xc
lea eax, [edx*8 + 0xc]
add eax, edi
mov dword [esp + 0x1c], eax
cmp dword [eax], 0
jne 0x45e6ca
mov ecx, dword [edi + edx*8 + 4]
mov edx, dword [eax + 4]
add ecx, 0x20
sar ecx, 5
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc], edx
cmp ecx, edx
jle 0x45e6ab
test edx, edx
je 0x45e68d
mov eax, edx
cdq
sub eax, edx
mov edx, eax
sar edx, 1
add edx, dword [esp + 0xc]
jmp 0x45e692
mov edx, 8
cmp edx, ecx
mov eax, ecx
mov ecx, dword [esp + 0x1c]
cmovg eax, edx
push eax
call fcn.00452690
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
lea eax, [ecx*4]
push eax
mov eax, dword [esp + 0x20]
push 0
push dword [eax + 8]
call fcn.004c53c0
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [esi - 0xc]
mov dword [esp + 0x1c], eax
cmp word [eax], 0
je 0x45e7a0
nop dword [eax + eax]
movzx ecx, word [eax + 2]
test cx, cx
je 0x45e798
movzx edi, word [eax]
cmp edi, ecx
ja 0x45e77f
mov eax, dword [esp + 0x3c]
mov esi, edi
mov ecx, edi
sar esi, 5
and ecx, 0x1f
mov dword [esp + 0xc], ecx
mov edx, dword [eax + edx*8 + 0x14]
mov eax, 1
shl eax, cl
test dword [edx + esi*4], eax
jne 0x45e76a
mov ecx, dword [esp + 0x14]
mov edx, edi
lea ecx, [ecx - 0xa8]
call fcn.00454eb0
test eax, eax
je 0x45e76a
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x3c]
inc dword [eax]
inc dword [edx + ecx*8 + 8]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0xc]
mov eax, dword [ecx + esi*4]
bts eax, edx
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
mov ecx, dword [eax + ecx*8 + 0x14]
mov eax, dword [ecx + esi*4]
bts eax, edx
inc dword [esp + 0x18]
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x1c]
inc edi
mov edx, dword [esp + 0x20]
movzx eax, word [eax + 2]
cmp edi, eax
jbe 0x45e6f8
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
add eax, 4
mov dword [esp + 0x1c], eax
cmp word [eax], 0
jne 0x45e6e0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x3c]
add esi, 0xc4
sub dword [esp + 0x10], 1
mov dword [esp + 0x14], esi
jne 0x45e5e0
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
add esi, 0xb8
mov dword [esp + 0x20], eax
mov edi, dword [esi - 0x10]
cmp edi, dword [esi + 4]
jle 0x45e832
mov eax, dword [0x57bab8]
test eax, eax
je 0x45e7de
inc dword [eax + 0x374]
lea eax, [edi*4]
push eax
call fcn.004d0775
mov edx, dword [esi + 8]
add esp, 4
mov dword [esp + 0xc], eax
test edx, edx
je 0x45e82c
mov ecx, dword [esi]
shl ecx, 2
push ecx
push edx
push eax
call fcn.004c5520
mov ecx, dword [esi + 8]
add esp, 0xc
test ecx, ecx
je 0x45e81f
mov eax, dword [0x57bab8]
test eax, eax
je 0x45e81f
dec dword [eax + 0x374]
push ecx
call fcn.004cba1d
mov eax, dword [esp + 0x10]
add esp, 4
mov dword [esi + 8], eax
mov dword [esi + 4], edi
mov ecx, dword [esi - 4]
mov eax, dword [esi - 0xc]
mov dword [esp + 0x14], ecx
lea eax, [ecx + eax*4]
mov dword [esp + 0x1c], eax
cmp ecx, eax
jae 0x45e8f6
mov edx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x30], eax
mov ecx, dword [ecx]
mov dword [esp + 0x4c], ecx
test ecx, ecx
je 0x45e8dc
xor edx, edx
mov edi, 1
mov dword [esp + 0x10], edx
nop word [eax + eax]
test edi, ecx
je 0x45e8cc
mov ecx, dword [esi + 4]
and eax, 0xffffffe0
add eax, edx
mov dword [esp + 0x28], eax
mov eax, dword [esi]
cmp eax, ecx
jne 0x45e8b2
lea edx, [eax + 1]
mov dword [esp + 0xc], edx
test ecx, ecx
je 0x45e8a0
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [esp + 0xc]
sar eax, 1
add eax, ecx
jmp 0x45e8a5
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.00452690
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], edx
inc dword [esi]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x4c]
inc edx
rol edi, 1
mov dword [esp + 0x10], edx
cmp edx, 0x20
jb 0x45e870
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add eax, 0x20
add ecx, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], ecx
cmp ecx, edx
jb 0x45e855
mov ecx, dword [esi - 4]
test ecx, ecx
je 0x45e92a
mov eax, dword [0x57bab8]
mov dword [esi - 8], 0
mov dword [esi - 0xc], 0
test eax, eax
je 0x45e91a
dec dword [eax + 0x374]
push ecx
call fcn.004cba1d
add esp, 4
mov dword [esi - 4], 0
add esi, 0xc4
sub dword [esp + 0x20], 1
jne 0x45e7c7
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
jmp 0x45e947
xor esi, esi
cmp dword [esp + 0x44], 0
jle 0x45e9a6
lea eax, [edi + 0x14]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x10], eax
nop dword [eax]
mov ecx, dword [eax]
test ecx, ecx
je 0x45e996
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov eax, dword [0x57bab8]
test eax, eax
je 0x45e983
dec dword [eax + 0x374]
push ecx
call fcn.004cba1d
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [eax], 0
add eax, 0x18
mov dword [esp + 0x10], eax
sub edi, 1
jne 0x45e960
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x45e9ca
mov eax, dword [0x57bab8]
test eax, eax
je 0x45e9b9
dec dword [eax + 0x374]
push edi
call fcn.004cba1d
add esp, 4
mov dword [esp + 0x3c], 0
xor edi, edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x1c], edi
test esi, esi
jle 0x45ea43
cmp esi, 8
mov eax, esi
mov ecx, 8
cmovl eax, ecx
test eax, eax
jle 0x45ea49
mov ecx, dword [0x57bab8]
test ecx, ecx
je 0x45e9f9
inc dword [ecx + 0x374]
shl eax, 4
push eax
call fcn.004d0775
mov edx, dword [0x57bab8]
add esp, 4
cmp esi, 8
mov dword [esp + 0x30], eax
mov edi, eax
mov ecx, esi
mov eax, 8
cmovl ecx, eax
test edx, edx
je 0x45ea28
inc dword [edx + 0x374]
lea eax, [ecx*8]
sub eax, ecx
shl eax, 2
push eax
call fcn.004d0775
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x45ea49
xor edi, edi
mov dword [esp + 0x30], edi
mov eax, esi
shl eax, 4
push eax
push 0
push edi
call fcn.004c53c0
add esp, 0xc
lea eax, [esi*8]
sub eax, esi
shl eax, 2
push eax
push 0
push dword [esp + 0x24]
call fcn.004c53c0
mov edx, dword [esp + 0x54]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x24], eax
add esp, 0xc
mov dword [esp + 0x44], eax
mov dword [esp + 0x14], ecx
test edx, edx
jle 0x45ee1e
mov esi, dword [esp + 0x40]
xor edi, edi
add esi, 0x98
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0xc], edx
nop dword [eax]
mov edx, dword [esi + 0x10]
test edx, edx
je 0x45ee02
mov eax, dword [esp + 0x44]
add dword [esp + 0x44], edx
add dword [esp + 0x14], edx
shl eax, 4
add eax, dword [esp + 0x30]
mov dword [esi - 4], eax
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x38]
mov dword [esi], ecx
mov edx, dword [eax + 0x54]
mov eax, dword [edx + edi + 0x10]
add edx, edi
mov dword [esi - 0x1c], eax
mov eax, dword [esi + 0x28]
mov dword [esi - 0x14], eax
mov eax, dword [esi + 0x20]
mov dword [esi - 0x18], 0
mov dword [esi - 0x10], eax
mov dword [esi - 0xc], ecx
mov al, byte [edx + 0x14]
mov byte [esi - 8], al
mov al, byte [edx + 0x18]
mov byte [esi - 7], al
movss xmm1, dword [edx + 0x10]
comiss xmm1, dword [0x550938]
mov dword [esp + 0x54], edx
jbe 0x45eb7f
mov edi, dword [esi - 0x94]
mov eax, dword [esi - 0x7c]
movzx edx, byte [eax + edi + 5]
movzx ecx, byte [eax + edi + 4]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
mov ecx, dword [esp + 0x20]
movsx esi, dx
mov eax, dword [ecx - 0x7c]
movzx edx, byte [eax + edi + 7]
movzx ecx, byte [eax + edi + 6]
mov eax, 0x100
mov edi, dword [esp + 0x10]
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movsx eax, dx
sub esi, eax
movd xmm0, esi
mov esi, dword [esp + 0x20]
jmp 0x45eba5
mov edx, dword [esi - 0x84]
mov eax, dword [esi - 0x94]
xorps xmm1, xmmword [0x5514c0]
movzx ecx, byte [edx + eax + 0x13]
movzx eax, byte [edx + eax + 0x12]
shl eax, 8
add ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mov eax, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x4c], ecx
mov edx, dword [eax + 0x10]
divss xmm1, xmm0
movss dword [esp + 0x28], xmm1
cmp dword [esi + 0x20], ecx
jle 0x45edfa
movzx eax, dx
xor edi, edi
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], eax
nop word [eax + eax]
mov edx, dword [esi + 0x28]
mov edx, dword [edx + ecx*4]
lea ecx, [esi - 0x98]
call fcn.00454eb0
mov ecx, dword [esp + 0x54]
mov edx, eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x9c], 0
movd xmm0, dword [ecx + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm1
movss dword [esp + 0x58], xmm0
movd xmm0, dword [ecx + 0x18]
lea ecx, [esp + 0xa0]
push ecx
cvtdq2ps xmm0, xmm0
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0x2c]
mulss xmm0, xmm1
push ecx
lea ecx, [esi - 0x98]
movss dword [esp + 0x70], xmm0
call fcn.004552c0
add esp, 0x10
test eax, eax
jne 0x45ec6e
mov dword [esp + 0x20], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
jmp 0x45ed87
xorps xmm0, xmm0
sub esp, 8
cvtsi2ss xmm0, dword [esp + 0x28]
mulss xmm0, dword [esp + 0x60]
addss xmm0, dword [0x550938]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x70], xmm0
fld qword [esp + 0x70]
fstp qword [esp]
call fcn.004e7b30
fstp qword [esp + 0x70]
movsd xmm0, qword [esp + 0x70]
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [esp + 0xa8]
cvtpd2ps xmm0, xmm0
mulss xmm1, dword [esp + 0x68]
cvttss2si eax, xmm0
xorps xmm0, xmm0
subss xmm0, xmm1
mov dword [esp + 0x70], eax
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x28], xmm0
fld qword [esp + 0x28]
fstp qword [esp]
call fcn.004e7b30
fstp qword [esp + 0x28]
movsd xmm0, qword [esp + 0x28]
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
xorps xmm0, xmm0
cvtsi2ss xmm0, dword [esp + 0xac]
mov dword [esp + 0x28], eax
mulss xmm0, dword [esp + 0x60]
addss xmm0, dword [0x550938]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x60], xmm0
fld qword [esp + 0x60]
fstp qword [esp]
call fcn.004e4c70
fstp qword [esp + 0x60]
movsd xmm0, qword [esp + 0x60]
xorps xmm1, xmm1
cvtsi2ss xmm1, dword [esp + 0xa4]
cvtpd2ps xmm0, xmm0
mulss xmm1, dword [esp + 0x68]
cvttss2si eax, xmm0
xorps xmm0, xmm0
subss xmm0, xmm1
mov dword [esp + 0x60], eax
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x68], xmm0
fld qword [esp + 0x68]
fstp qword [esp]
call fcn.004e4c70
fstp qword [esp + 0x68]
movsd xmm0, qword [esp + 0x68]
add esp, 8
cvtpd2ps xmm0, xmm0
cvttss2si eax, xmm0
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
sub ecx, eax
mov eax, dword [esi - 4]
dec cx
movss xmm1, dword [esp + 0x28]
add cx, word [edx + 0x14]
add cx, word [esp + 0x58]
mov word [eax + edi + 4], cx
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x20]
mov eax, dword [esi - 4]
dec cx
add cx, word [edx + 0x18]
add cx, word [esp + 0x60]
mov word [eax + edi + 6], cx
mov eax, dword [esi - 4]
movzx ecx, word [eax + edi + 6]
movzx eax, word [eax + edi + 4]
add edi, 0x10
imul ecx, eax
mov eax, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [esp + 0x4c]
inc ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x4c], ecx
cmp ecx, dword [esi + 0x20]
jl 0x45ebe0
mov edi, dword [esp + 0x10]
jmp 0x45edfe
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add esi, 0xc4
add edi, 0x78
sub dword [esp + 0xc], 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], edi
jne 0x45eab0
mov edi, dword [esp + 0x38]
mov ecx, dword [edi + 0xc]
mov dword [edi + 0x20], 0
test ecx, ecx
jg 0x45ee92
movd xmm0, eax
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x45ee49
sqrtsd xmm0, xmm0
jmp 0x45ee4e
call fcn.004e7a30
cvtsd2ss xmm0, xmm0
cvttss2si eax, xmm0
inc eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x550b80]
jb 0x45ee6e
mov ecx, 0x1000
jmp 0x45ee92
comiss xmm0, dword [0x550b7c]
jb 0x45ee7e
mov ecx, 0x800
jmp 0x45ee92
comiss xmm0, dword [0x550b70]
mov ecx, 0x200
mov eax, 0x400
cmovae ecx, eax
push 0x2c
lea eax, [esp + 0x74]
mov dword [edi + 0x1c], ecx
push 0
push eax
call fcn.004c53c0
mov eax, dword [edi + 0x10]
add esp, 0xc
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [0x57bab8]
test eax, eax
je 0x45eec3
inc dword [eax + 0x374]
push 0x30
call fcn.004d0775
mov ecx, dword [0x57bab8]
mov esi, eax
mov eax, dword [esp + 0x10]
add esp, 4
sub eax, dword [esp + 0x28]
mov dword [esp + 0x20], esi
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x45eeef
inc dword [ecx + 0x374]
shl eax, 3
push eax
call fcn.004d0775
add esp, 4
test esi, esi
je 0x45ef78
test eax, eax
je 0x45ef66
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x78], edx
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x34]
push edx
push eax
mov dword [esp + 0xa0], eax
mov eax, 0x8000
sub eax, ecx
mov dword [esp + 0x8c], ecx
push eax
mov ecx, esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x98], 1
mov dword [esp + 0x9c], 1
mov dword [esp + 0x94], 0
call fcn.00453a50
add esp, 0xc
jmp 0x45ef9d
mov eax, dword [0x57bab8]
test eax, eax
je 0x45ef75
dec dword [eax + 0x374]
push esi
jmp 0x45ef8d
test eax, eax
je 0x45ef95
mov ecx, dword [0x57bab8]
test ecx, ecx
je 0x45ef8c
dec dword [ecx + 0x374]
push eax
call fcn.004cba1d
add esp, 4
mov eax, dword [esp + 0x74]
mov dword [esp + 0x20], eax
mov esi, dword [edi + 0x40]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
test esi, esi
jle 0x45efde
cmp esi, 8
mov ecx, esi
mov edx, 8
cmovl ecx, edx
test ecx, ecx
jle 0x45efde
mov eax, dword [0x57bab8]
test eax, eax
je 0x45efce
inc dword [eax + 0x374]
shl ecx, 4
push ecx
call fcn.004d0775
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, esi
shl ecx, 4
push ecx
push 0
push eax
call fcn.004c53c0
add esp, 0xc
cmp dword [edi + 0x40], 0
jle 0x45f028
mov edx, dword [esp + 0x14]
xor ecx, ecx
add edx, 6
xor esi, esi
mov eax, dword [edi + 0x48]
lea ecx, [ecx + 0x1c]
inc esi
lea edx, [edx + 0x10]
movzx eax, word [ecx + eax - 0x18]
mov word [edx - 0x12], ax
mov eax, dword [edi + 0x48]
movzx eax, word [ecx + eax - 0x16]
mov word [edx - 0x10], ax
cmp esi, dword [edi + 0x40]
jl 0x45f000
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
push esi
call fcn.00453f20
add esp, 4
test esi, esi
jle 0x45f093
mov edx, dword [esp + 0x14]
xor esi, esi
mov eax, dword [esp + 0x18]
add edx, 0xa
nop word [eax + eax]
cmp dword [edx + 2], 0
je 0x45f084
mov ecx, dword [edi + 0x48]
movzx eax, word [edx - 2]
mov word [esi + ecx + 8], ax
mov ecx, dword [edi + 0x48]
movzx eax, word [edx]
mov word [esi + ecx + 0xa], ax
movzx eax, word [edx]
movzx ecx, word [edx - 4]
add ecx, eax
mov eax, dword [esp + 0x18]
cmp dword [edi + 0x20], ecx
cmovge ecx, dword [edi + 0x20]
mov dword [edi + 0x20], ecx
add esi, 0x1c
add edx, 0x10
sub eax, 1
mov dword [esp + 0x18], eax
jne 0x45f050
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45f0b4
mov ecx, dword [0x57bab8]
test ecx, ecx
je 0x45f0ab
dec dword [ecx + 0x374]
push eax
call fcn.004cba1d
add esp, 4
mov esi, dword [esp + 0x48]
test esi, esi
jle 0x45f133
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x48]
add esi, 0xa8
mov dword [esp + 0x28], eax
nop
mov eax, dword [esi]
test eax, eax
je 0x45f122
mov edx, dword [esi - 0x14]
mov ecx, dword [esp + 0x20]
push eax
call fcn.00453f20
xor ecx, ecx
add esp, 4
mov dword [esp + 0xc], ecx
cmp dword [esi], ecx
jle 0x45f122
xor edx, edx
mov eax, dword [esi - 0x14]
cmp dword [eax + edx + 0xc], 0
je 0x45f116
movzx ecx, word [eax + edx + 0xa]
movzx eax, word [eax + edx + 6]
add ecx, eax
cmp dword [edi + 0x20], ecx
cmovge ecx, dword [edi + 0x20]
mov dword [edi + 0x20], ecx
mov ecx, dword [esp + 0xc]
inc ecx
add edx, 0x10
mov dword [esp + 0xc], ecx
cmp ecx, dword [esi]
jl 0x45f0f2
add esi, 0xc4
sub dword [esp + 0x28], 1
jne 0x45f0d0
mov esi, dword [esp + 0x48]
test byte [edi + 4], 1
mov eax, dword [edi + 0x20]
jne 0x45f161
lea ecx, [eax - 1]
mov eax, ecx
sar eax, 1
or ecx, eax
mov eax, ecx
sar eax, 2
or ecx, eax
mov eax, ecx
sar eax, 4
or ecx, eax
mov eax, ecx
sar eax, 8
or ecx, eax
mov eax, ecx
sar eax, 0x10
or eax, ecx
mov ecx, dword [edi + 0x1c]
inc eax
movss xmm1, dword [0x5509c8]
movaps xmm2, xmm1
mov dword [edi + 0x20], eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
imul ecx, eax
divss xmm2, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [0x57bab8]
movss dword [edi + 0x24], xmm2
divss xmm1, xmm0
movss dword [edi + 0x28], xmm1
test eax, eax
je 0x45f1a5
inc dword [eax + 0x374]
push ecx
call fcn.004d0775
mov ecx, dword [edi + 0x20]
add esp, 4
imul ecx, dword [edi + 0x1c]
mov dword [edi + 0x14], eax
push ecx
push 0
push eax
call fcn.004c53c0
mov eax, dword [edi + 0x14]
add esp, 0xc
mov dword [esp + 0x94], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x7c], eax
test esi, esi
jle 0x45f370
mov ecx, dword [esp + 0x40]
xor eax, eax
mov dword [esp + 0x4c], eax
mov edx, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x54], esi
mov esi, dword [edi + 0x54]
add esi, eax
cmp dword [ecx + 0xa8], 0
je 0x45f34c
push dword [ecx + 0x94]
lea eax, [ecx + 0x7c]
mov edx, ecx
push ecx
push eax
lea ecx, [esp + 0x7c]
call fcn.0045a840
movss xmm1, dword [esi + 0x44]
add esp, 0xc
ucomiss xmm1, dword [0x5509c8]
movss dword [esp + 0x34], xmm1
lahf
test ah, 0x44
jnp 0x45f336
xor esi, esi
nop word [eax + eax]
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x5512d0]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.004c3990
movss xmm1, dword [esp + 0x34]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [esp + esi + 0xa8], dl
inc esi
cmp esi, 0x100
jb 0x45f240
mov ecx, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x10], eax
mov edx, dword [ecx + 0x94]
cmp dword [ecx + 0xa8], eax
jle 0x45f33a
lea ecx, [edx + 4]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
nop dword [eax]
cmp dword [ecx + 8], 0
je 0x45f31e
mov eax, dword [edi + 0x1c]
movzx edx, word [ecx + 6]
movzx esi, word [ecx]
imul edx, eax
mov dword [esp + 0xc], eax
movzx eax, word [ecx + 4]
add edx, eax
add edx, dword [edi + 0x14]
movzx edi, word [ecx + 2]
test edi, edi
je 0x45f312
mov eax, dword [esp + 0xc]
nop dword [eax]
xor ecx, ecx
test esi, esi
je 0x45f307
nop word [eax + eax]
movzx eax, byte [edx + ecx]
mov al, byte [esp + eax + 0xa8]
mov byte [edx + ecx], al
inc ecx
cmp ecx, esi
jl 0x45f2f0
mov eax, dword [esp + 0xc]
dec edi
add edx, eax
test edi, edi
jg 0x45f2e0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x38]
inc eax
add ecx, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ecx
cmp eax, dword [edx + 0xa8]
jl 0x45f2b0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x54]
mov dword [ecx + 0x94], 0
add eax, 0x78
add ecx, 0xc4
sub edx, 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x54], edx
jne 0x45f1f1
mov esi, dword [esp + 0x74]
jmp 0x45f374
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x98], 0
je 0x45f38d
mov eax, dword [0x57bab8]
test eax, eax
je 0x45f38d
dec dword [eax + 0x374]
push dword [esp + 0x98]
call fcn.004cba1d
add esp, 4
test esi, esi
je 0x45f3af
mov eax, dword [0x57bab8]
test eax, eax
je 0x45f3af
dec dword [eax + 0x374]
push esi
call fcn.004cba1d
mov ecx, dword [esp + 0x34]
add esp, 4
test ecx, ecx
je 0x45f3e0
mov eax, dword [0x57bab8]
test eax, eax
je 0x45f3cf
dec dword [eax + 0x374]
push ecx
call fcn.004cba1d
add esp, 4
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x48]
test eax, eax
jle 0x45f7ad
mov ecx, dword [esp + 0x40]
xor edx, edx
movss xmm2, dword [0x550994]
add ecx, 4
mov dword [esp + 0x18], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], eax
jmp 0x45f414
mov edi, dword [esp + 0x38]
cmp dword [ecx + 0xa4], 0
je 0x45f73d
mov esi, dword [ecx]
mov eax, dword [edi + 0x54]
mov edi, dword [ecx + 0x18]
add eax, edx
mov dword [esp + 0x34], eax
mov eax, dword [eax + 0x74]
movzx ecx, byte [edi + esi + 4]
movzx edx, byte [edi + esi + 5]
mov dword [esp + 0x28], eax
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
add dx, cx
movzx ecx, byte [edi + esi + 6]
movsx eax, dx
movzx edx, byte [edi + esi + 7]
mov esi, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov eax, 0x100
cwde
movsx ecx, cx
movss xmm1, dword [esi + 0x10]
imul ecx, eax
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x28]
add dx, cx
movsx ecx, dx
sub eax, ecx
mov dword [esp + 0x50], ecx
cmp byte [esi + 0x3c], 0
movd xmm0, eax
lea eax, [edi + 0x4c]
cvtdq2ps xmm0, xmm0
mov dword [esp + 0x68], eax
divss xmm1, xmm0
movss dword [esp + 0x34], xmm1
jne 0x45f581
mov ecx, edi
call fcn.0045fc30
mov eax, dword [esi + 0x10]
xor ecx, ecx
mov dword [edi + 0x10], eax
xorps xmm5, xmm5
xor eax, eax
mov edx, dword [esp + 0x38]
mov dword [edi + 0x3c], esi
movd xmm0, ecx
mov ecx, dword [esp + 0x50]
movd xmm3, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], 0
movd xmm1, ecx
punpckldq xmm1, xmm3
movd xmm2, eax
punpckldq xmm2, xmm0
movd xmm0, ecx
xor ecx, ecx
cvtdq2ps xmm0, xmm0
mov dword [edi + 0x38], edx
punpckldq xmm2, xmm1
comiss xmm0, xmm5
movd xmm0, eax
cvtdq2ps xmm0, xmm0
seta cl
xor eax, eax
cvtdq2ps xmm4, xmm2
lea ecx, [ecx*2 - 1]
movss xmm2, dword [esp + 0x34]
comiss xmm0, xmm5
mov dword [esp + 0x34], 0
movd xmm0, dword [esp + 0x50]
movaps xmm1, xmm2
movd xmm3, dword [esp + 0x34]
unpcklps xmm2, xmm1
seta al
mulps xmm4, xmm2
movd xmm1, ecx
lea eax, [eax*2 - 1]
punpckldq xmm1, xmm3
movd xmm2, eax
mov eax, dword [esp + 0x68]
punpckldq xmm2, xmm0
punpckldq xmm2, xmm1
cvtdq2ps xmm0, xmm2
movss xmm2, dword [0x550994]
addps xmm4, xmm0
cvttps2dq xmm0, xmm4
cvtdq2ps xmm0, xmm0
movss dword [eax], xmm0
shufps xmm0, xmm0, 0x55
movss dword [edi + 0x50], xmm0
movss xmm0, dword [eax]
inc word [edi + 0x40]
addss xmm0, xmm2
mov ecx, dword [esp + 0x44]
movss xmm1, dword [esi + 0x28]
movss dword [esp + 0x68], xmm1
mov dword [esp + 0x10], 0
cmp dword [ecx + 0xa4], 0
cvttss2si eax, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
addss xmm0, dword [esi + 0x2c]
movss dword [esp + 0x34], xmm0
jle 0x45f739
xor edi, edi
nop dword [eax]
mov eax, dword [ecx + 0xbc]
mov ecx, dword [ecx + 0x94]
mov edx, dword [esp + 0x10]
movss xmm7, dword [esi + 0x34]
movss xmm0, dword [ecx + edi + 0x10]
comiss xmm7, xmm0
mov eax, dword [eax + edx*4]
mov dword [esp + 0x50], eax
ja 0x45f600
movss xmm7, dword [esi + 0x38]
minss xmm7, xmm0
mov edx, dword [esp + 0x38]
movaps xmm6, xmm1
ucomiss xmm0, xmm7
lahf
test ah, 0x44
jnp 0x45f630
cmp byte [esi + 0x1c], 0
movaps xmm6, xmm7
subss xmm6, xmm0
mulss xmm6, xmm2
je 0x45f62c
cvttss2si eax, xmm6
movd xmm6, eax
cvtdq2ps xmm6, xmm6
addss xmm6, xmm1
movd xmm0, dword [edx + 0x1c]
sub esp, 0x1c
movss xmm3, dword [0x5509c8]
movss xmm2, dword [0x5509c8]
movzx eax, word [ecx + edi]
cvtdq2ps xmm0, xmm0
movd xmm5, eax
divss xmm3, xmm0
movzx eax, word [ecx + edi + 2]
movd xmm0, dword [edx + 0x20]
cvtdq2ps xmm0, xmm0
movd xmm4, eax
movzx eax, word [ecx + edi + 4]
divss xmm2, xmm0
movd xmm1, eax
movzx eax, word [ecx + edi + 6]
cvtdq2ps xmm4, xmm4
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
mulss xmm0, xmm2
mulss xmm4, xmm2
movss xmm2, dword [ecx + edi + 8]
mulss xmm1, xmm3
movss dword [esp + 0x18], xmm7
movss dword [esp + 0x14], xmm0
movss xmm0, dword [ecx + edi + 0x18]
movss dword [esp + 0x10], xmm1
movss dword [esp + 0xc], xmm4
xorps xmm4, xmm4
addss xmm0, xmm4
cvtdq2ps xmm5, xmm5
addss xmm0, dword [esp + 0x50]
mulss xmm5, xmm3
addss xmm2, xmm4
movss xmm3, dword [ecx + edi + 0xc]
addss xmm3, xmm4
movss dword [esp + 8], xmm5
movss dword [esp + 4], xmm0
addss xmm2, xmm6
movss xmm0, dword [ecx + edi + 0x14]
mov ecx, dword [esp + 0x44]
addss xmm0, xmm4
addss xmm3, dword [esp + 0x50]
addss xmm0, xmm6
movss dword [esp], xmm0
push dword [esp + 0x6c]
call fcn.00460120
mov eax, dword [esp + 0x10]
add edi, 0x1c
mov ecx, dword [esp + 0x44]
inc eax
movss xmm1, dword [esp + 0x68]
movss xmm2, dword [0x550994]
mov dword [esp + 0x10], eax
cmp eax, dword [ecx + 0xa4]
jl 0x45f5d0
mov edx, dword [esp + 0x18]
add ecx, 0xc4
add edx, 0x78
sub dword [esp + 0x4c], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x18], edx
jne 0x45f410
mov esi, dword [esp + 0x40]
add esi, 0xb4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x45f782
mov eax, dword [0x57bab8]
test eax, eax
je 0x45f779
dec dword [eax + 0x374]
push ecx
call fcn.004cba1d
add esp, 4
mov ecx, dword [esi]
test ecx, ecx
je 0x45f7a0
mov eax, dword [0x57bab8]
test eax, eax
je 0x45f797
dec dword [eax + 0x374]
push ecx
call fcn.004cba1d
add esp, 4
add esi, 0xc4
sub dword [esp + 0x48], 1
jne 0x45f763
mov ecx, dword [esp + 0x38]
call fcn.0045f860
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x2f], 1
test ecx, ecx
je 0x45f7db
mov eax, dword [0x57bab8]
test eax, eax
je 0x45f7d2
dec dword [eax + 0x374]
push ecx
call fcn.004cba1d
add esp, 4
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x45f7fb
mov eax, dword [0x57bab8]
test eax, eax
je 0x45f7f2
dec dword [eax + 0x374]
push ecx
call fcn.004cba1d
add esp, 4
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x45f81b
mov eax, dword [0x57bab8]
test eax, eax
je 0x45f812
dec dword [eax + 0x374]
push edi
call fcn.004cba1d
add esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x45f83c
mov ecx, dword [0x57bab8]
test ecx, ecx
je 0x45f833
dec dword [ecx + 0x374]
push eax
call fcn.004cba1d
add esp, 4
mov ecx, dword [esp + 0x1ac]
mov al, byte [esp + 0x2f]
pop edi
pop esi
xor ecx, esp
call fcn.004c2e59
mov esp, ebp
pop ebp
ret