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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ebad7
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x210
mov eax, dword [0x68e500]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x1b0], ecx
cmp dword [edi + 0x468], 0
jge 0x489306
test byte [edi], 2
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0x1d0], 0xffffffff
lea ecx, [edi + 0x48]
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 0
push eax
mov dword [ebp - 0x1d4], 0x1b00f5
je 0x4892f7
mov dword [ebp - 0x1d4], 0x20002
call fcn.00488670
mov eax, dword [edi + 0x48]
dec eax
mov dword [edi + 0x468], eax
cmp dword [edi + 0x46c], 0
jge 0x489373
test byte [edi], 4
jne 0x489373
lea eax, [ebp - 0x1d4]
mov dword [ebp - 0x1d0], 0xffffffff
push eax
lea ecx, [edi + 0x48]
mov dword [ebp - 0x1cc], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1d4], 0x400041
call fcn.00488670
mov eax, dword [edi + 0x48]
dec eax
mov dword [edi + 0x46c], eax
mov ecx, edi
mov dword [edi + 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
call fcn.00486070
xor eax, eax
mov byte [ebp - 0x15d], 0
mov dword [ebp - 0x1f0], 0
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x1ec], eax
mov dword [ebp - 4], eax
xor esi, esi
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x198], esi
mov dword [ebp - 0x1e0], esi
mov byte [ebp - 4], 1
lea edx, [eax + 8]
mov ecx, dword [edi + 0x54]
mov dword [ebp - 0x1a4], ecx
test ecx, ecx
jle 0x489445
cmp ecx, edx
mov eax, ecx
cmovl eax, edx
mov dword [ebp - 0x164], eax
test eax, eax
jle 0x489445
mov ecx, dword [0x693270]
test ecx, ecx
je 0x489416
inc dword [ecx + 0xb0]
imul eax, eax, 0x54
push eax
call fcn.005b115b
mov ecx, dword [ebp - 0x164]
add esp, 4
mov dword [ebp - 0x1f0], ecx
mov edx, 8
mov ecx, dword [ebp - 0x1a4]
mov dword [ebp - 0x18c], eax
mov dword [ebp - 0x1ec], eax
mov dword [ebp - 0x1f4], ecx
mov ecx, dword [edi + 0x3c]
mov dword [ebp - 0x174], ecx
test ecx, ecx
jle 0x4894a9
cmp ecx, 8
mov eax, ecx
cmovl eax, edx
mov dword [ebp - 0x164], eax
test eax, eax
jle 0x4894a9
mov ecx, dword [0x693270]
test ecx, ecx
je 0x48947a
inc dword [ecx + 0xb0]
lea eax, [eax + eax*2]
shl eax, 3
push eax
call fcn.005b115b
mov ecx, dword [ebp - 0x174]
mov esi, eax
mov eax, dword [ebp - 0x164]
add esp, 4
mov dword [ebp - 0x198], esi
mov dword [ebp - 0x1e0], esi
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 0x1e8], ecx
imul ecx, dword [ebp - 0x1a4], 0x54
push ecx
push 0
push dword [ebp - 0x18c]
call fcn.005acba0
mov eax, dword [ebp - 0x174]
add esp, 0xc
lea eax, [eax + eax*2]
shl eax, 3
push eax
push 0
push esi
call fcn.005acba0
add esp, 0xc
mov dword [ebp - 0x180], 0
cmp dword [edi + 0x54], 0
jle 0x489632
mov edi, dword [ebp - 0x18c]
xor edx, edx
mov ecx, dword [ebp - 0x170]
add edi, 0x34
mov dword [ebp - 0x194], edx
mov dword [ebp - 0x190], edi
mov eax, dword [ecx + 0x5c]
add eax, edx
mov dword [edi - 4], 0xffffffff
xor edx, edx
mov dword [ebp - 0x17c], eax
cmp dword [ecx + 0x3c], edx
jle 0x48969b
mov esi, dword [ebp - 0x190]
or edi, 0xffffffff
mov ecx, edi
cmp edi, 0xffffffff
jne 0x489569
mov ecx, dword [ebp - 0x170]
or edi, edi
mov eax, dword [eax + 0x74]
mov ecx, dword [ecx + 0x44]
cmp eax, dword [ecx + edx*4]
jne 0x489555
mov dword [esi - 4], edx
mov edi, edx
mov eax, dword [ebp - 0x170]
inc edx
mov ecx, edi
cmp edx, dword [eax + 0x3c]
mov eax, dword [ebp - 0x17c]
jl 0x489536
mov esi, dword [ebp - 0x198]
cmp ecx, 0xffffffff
je 0x48969b
push dword [ebx + 8]
mov edi, dword [ebp - 0x190]
push eax
push dword [ebp - 0x1b0]
lea ecx, [edi - 0x34]
call fcn.00488820
test al, al
je 0x48969b
mov ecx, dword [ebp - 0x17c]
mov edx, 0x67a038
mov eax, dword [ecx + 0x40]
shr eax, 8
and al, 1
or byte [ebp - 0x15d], al
mov eax, dword [edi - 4]
lea eax, [eax + eax*2]
mov dword [ebp - 0x164], eax
mov eax, dword [ecx + 0x30]
test eax, eax
cmovne edx, eax
mov dword [edi - 8], edx
cmp dword [edx], 0
je 0x4895e6
nop dword [eax]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x4895e6
cmp dword [edi], ecx
cmovge ecx, dword [edi]
add edx, 8
mov dword [edi], ecx
cmp dword [edx], 0
jne 0x4895d0
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 0x180]
inc dword [esi + edx*8]
mov ecx, dword [edi]
cmp dword [esi + edx*8 + 4], ecx
cmovge ecx, dword [esi + edx*8 + 4]
inc eax
mov dword [esi + edx*8 + 4], ecx
add edi, 0x54
mov ecx, dword [ebp - 0x170]
mov edx, dword [ebp - 0x194]
add edx, 0x78
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x190], edi
mov dword [ebp - 0x194], edx
cmp eax, dword [ecx + 0x54]
jl 0x489510
mov eax, dword [ebp - 0x1a4]
xor edi, edi
mov dword [ebp - 0x190], edi
test eax, eax
jle 0x489a3a
mov edx, dword [ebp - 0x18c]
add edx, 0x44
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x178], edx
nop dword [eax]
mov eax, dword [edx - 0x14]
mov edi, dword [edx - 0x10]
add edi, 0x20
sar edi, 5
lea eax, [eax + eax*2]
mov dword [ebp - 0x16c], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x164], eax
cmp edi, eax
jle 0x4896d2
test eax, eax
je 0x4896a7
cdq
sub eax, edx
mov edx, dword [ebp - 0x178]
mov ecx, eax
sar ecx, 1
add ecx, dword [ebp - 0x164]
jmp 0x4896ac
mov byte [ebp - 0x15d], 0
jmp 0x48a853
mov ecx, 8
add edx, 0xfffffff8
mov eax, edi
cmp ecx, edi
mov dword [ebp - 0x164], edx
cmovg eax, ecx
mov ecx, edx
push eax
call fcn.00480c60
mov edx, dword [ebp - 0x178]
mov eax, dword [ebp - 0x164]
jmp 0x4896d5
lea eax, [edx - 8]
mov dword [eax], edi
lea eax, [edi*4]
push eax
push 0
push dword [edx]
call fcn.005acba0
mov eax, dword [ebp - 0x16c]
add esp, 0xc
lea ecx, [eax*8 + 0xc]
add ecx, esi
mov dword [ebp - 0x17c], ecx
cmp dword [ecx], 0
jne 0x48976a
mov edi, dword [esi + eax*8 + 4]
mov eax, dword [ecx + 4]
add edi, 0x20
sar edi, 5
mov dword [ebp - 0x164], eax
cmp edi, eax
jle 0x48974d
test eax, eax
je 0x48972f
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [ebp - 0x164]
jmp 0x489734
mov ecx, 8
cmp ecx, edi
mov eax, edi
cmovg eax, ecx
mov ecx, dword [ebp - 0x17c]
push eax
call fcn.00480c60
mov ecx, dword [ebp - 0x17c]
lea eax, [edi*4]
mov dword [ecx], edi
push eax
push 0
push dword [ecx + 8]
call fcn.005acba0
mov eax, dword [ebp - 0x16c]
add esp, 0xc
mov edx, dword [ebp - 0x178]
mov ecx, dword [edx - 0x18]
mov dword [ebp - 0x17c], ecx
cmp dword [ecx], 0
je 0x489853
mov esi, dword [ecx + 4]
test esi, esi
je 0x48984d
mov edi, dword [ecx]
cmp edi, esi
jg 0x489835
nop word [eax + eax]
mov ecx, edi
mov edx, 1
and ecx, 0x1f
mov esi, edi
shl edx, cl
mov ecx, dword [ebp - 0x198]
sar esi, 5
mov dword [ebp - 0x164], edx
mov eax, dword [ecx + eax*8 + 0x14]
test dword [eax + esi*4], edx
jne 0x489819
mov eax, dword [ebp - 0x178]
push edi
push dword [eax - 0x2c]
call fcn.004b48f0
mov edx, dword [ebp - 0x178]
add esp, 8
test eax, eax
je 0x48981f
inc dword [edx - 0xc]
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0x198]
inc dword [ecx + eax*8 + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x164]
mov edx, dword [ebp - 0x198]
or dword [eax + esi*4], ecx
mov eax, dword [ebp - 0x16c]
mov eax, dword [edx + eax*8 + 0x14]
or dword [eax + esi*4], ecx
inc dword [ebp - 0x190]
mov edx, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x17c]
inc edi
mov eax, dword [ebp - 0x16c]
cmp edi, dword [ecx + 4]
jle 0x4897a0
mov eax, dword [ebp - 0x16c]
add ecx, 8
mov dword [ebp - 0x17c], ecx
cmp dword [ecx], 0
jne 0x489782
mov esi, dword [ebp - 0x198]
add edx, 0x54
sub dword [ebp - 0x180], 1
mov dword [ebp - 0x178], edx
jne 0x489660
mov esi, dword [ebp - 0x18c]
mov ecx, dword [ebp - 0x1a4]
add esi, 0x50
mov dword [ebp - 0x1a0], esi
mov dword [ebp - 0x184], ecx
mov edi, dword [esi - 0x18]
cmp edi, dword [esi - 4]
jle 0x4898ef
mov eax, dword [0x693270]
test eax, eax
je 0x48989b
inc dword [eax + 0xb0]
mov eax, edi
shl eax, 5
push eax
call fcn.005b115b
mov edx, dword [esi]
add esp, 4
mov dword [ebp - 0x164], eax
test edx, edx
je 0x4898ea
mov ecx, dword [esi - 8]
shl ecx, 5
push ecx
push edx
push eax
call fcn.005ac620
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
je 0x4898db
mov eax, dword [0x693270]
test eax, eax
je 0x4898db
dec dword [eax + 0xb0]
push ecx
call fcn.005b0eba
mov eax, dword [ebp - 0x164]
add esp, 4
mov dword [esi], eax
mov dword [esi - 4], edi
mov edx, dword [esi - 0xc]
mov eax, dword [esi - 0x14]
mov dword [ebp - 0x180], edx
lea eax, [edx + eax*4]
mov dword [ebp - 0x1b0], eax
cmp edx, eax
jae 0x4899e2
xor ecx, ecx
mov dword [ebp - 0x194], ecx
mov eax, dword [edx]
mov dword [ebp - 0x164], eax
test eax, eax
je 0x4899c4
xor edx, edx
mov edi, 1
mov dword [ebp - 0x17c], edx
test eax, edi
je 0x4899ac
mov eax, dword [esi - 4]
and ecx, 0xffffffe0
add ecx, edx
xorps xmm0, xmm0
movups xmmword [ebp - 0x1c8], xmm0
mov dword [ebp - 0x1c0], ecx
mov ecx, dword [esi - 8]
cmp ecx, eax
jne 0x48997f
inc ecx
test eax, eax
je 0x489963
cdq
sub eax, edx
sar eax, 1
add eax, dword [esi - 4]
jmp 0x489968
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
lea ecx, [esi - 8]
call fcn.0048a9f0
mov edx, dword [ebp - 0x17c]
xorps xmm0, xmm0
mov eax, dword [esi - 8]
mov ecx, dword [esi]
shl eax, 5
movups xmmword [ecx + eax], xmm0
movups xmm0, xmmword [ebp - 0x1c8]
movups xmmword [ecx + eax + 0x10], xmm0
inc dword [esi - 8]
mov esi, dword [ebp - 0x1a0]
mov eax, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x194]
inc edx
rol edi, 1
mov dword [ebp - 0x17c], edx
cmp edx, 0x20
jb 0x489931
mov edx, dword [ebp - 0x180]
add edx, 4
add ecx, 0x20
mov dword [ebp - 0x180], edx
mov dword [ebp - 0x194], ecx
cmp edx, dword [ebp - 0x1b0]
jb 0x489914
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x489a16
mov eax, dword [0x693270]
mov dword [esi - 0x10], 0
mov dword [esi - 0x14], 0
test eax, eax
je 0x489a06
dec dword [eax + 0xb0]
push ecx
call fcn.005b0eba
add esp, 4
mov dword [esi - 0xc], 0
add esi, 0x54
sub dword [ebp - 0x184], 1
mov dword [ebp - 0x1a0], esi
jne 0x489884
mov esi, dword [ebp - 0x198]
mov edi, dword [ebp - 0x190]
jmp 0x489a3c
xor edi, edi
cmp dword [ebp - 0x174], 0
jle 0x489aa0
lea eax, [esi + 0x14]
mov esi, dword [ebp - 0x174]
mov dword [ebp - 0x17c], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x489a8c
mov dword [eax - 4], 0
mov dword [eax - 8], 0
mov eax, dword [0x693270]
test eax, eax
je 0x489a77
dec dword [eax + 0xb0]
push ecx
call fcn.005b0eba
mov eax, dword [ebp - 0x17c]
add esp, 4
mov dword [eax], 0
add eax, 0x18
mov dword [ebp - 0x17c], eax
sub esi, 1
jne 0x489a54
mov esi, dword [ebp - 0x198]
test esi, esi
je 0x489ade
mov eax, dword [0x693270]
mov dword [ebp - 0x1e4], 0
mov dword [ebp - 0x1e8], 0
test eax, eax
je 0x489ac7
dec dword [eax + 0xb0]
push esi
call fcn.005b0eba
add esp, 4
xor eax, eax
mov dword [ebp - 0x198], eax
mov dword [ebp - 0x1e0], eax
xor eax, eax
mov dword [ebp - 0x210], 0
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x20c], eax
test edi, edi
jle 0x489b3b
cmp edi, 8
mov esi, edi
mov ecx, 8
cmovl esi, ecx
test esi, esi
jle 0x489b3b
mov eax, dword [0x693270]
test eax, eax
je 0x489b1a
inc dword [eax + 0xb0]
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.005b115b
add esp, 4
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x210], esi
lea ecx, [edi + edi*2]
mov dword [ebp - 0x214], edi
shl ecx, 3
push ecx
push 0
push eax
call fcn.005acba0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov byte [ebp - 4], 7
mov eax, dword [0x693270]
test eax, eax
je 0x489b7a
inc dword [eax + 0xb0]
push 0x40000
call fcn.005b115b
mov ecx, dword [0x693270]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x489b99
inc dword [ecx + 0xb0]
push 0x20
call fcn.005b115b
movss xmm0, dword [0x67ac8c]
xor ecx, ecx
mov dword [ebp - 0x190], eax
xor edi, edi
mov dword [ebp - 0x11c], eax
add esp, 4
mov dword [eax], esi
mov eax, 1
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x120], 8
mov dword [ebp - 0x1ac], ecx
mov dword [ebp - 0x1a8], edi
test eax, eax
jle 0x489f37
mov esi, dword [ebp - 0x18c]
xor edx, edx
mov dword [ebp - 0x188], eax
add esi, 0x48
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x19c], edx
nop
mov ecx, dword [eax + 0x5c]
add ecx, edx
cmp dword [esi - 0x10], 0
je 0x489f04
mov edx, dword [ebp - 0x17c]
lea eax, [edi + edi*2]
add edi, dword [esi - 0x10]
mov dword [ebp - 0x1a8], edi
lea eax, [edx + eax*8]
mov dword [esi - 0x20], eax
movss xmm1, dword [ecx + 0x44]
ucomiss xmm1, xmm0
movss dword [ebp - 0x164], xmm1
lahf
test ah, 0x44
jnp 0x489ca0
mov byte [ebp - 0x165], 1
xor edi, edi
movd xmm0, edi
mov eax, edi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x67aea0]
cvtpd2ps xmm0, xmm0
mulss xmm0, xmm1
call fcn.005aaf30
movss xmm1, dword [ebp - 0x164]
mov edx, 0xff
cmp eax, edx
movzx ecx, al
cmovbe edx, ecx
mov byte [ebp + edi - 0x118], dl
inc edi
cmp edi, 0x100
jb 0x489c56
jmp 0x489ca7
mov byte [ebp - 0x165], 0
cmp dword [esi], 0
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x1a0], 0
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x194], ecx
jle 0x489f04
xor ecx, ecx
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x184], ecx
nop dword [eax + eax]
mov edi, dword [esi + 8]
add edi, ecx
push dword [edi + 0x18]
push dword [esi - 0x30]
call fcn.004b48f0
add esp, 8
test eax, eax
je 0x489ed3
push dword [esi - 0x28]
push eax
push dword [esi - 0x30]
call fcn.004b5260
add esp, 0xc
test eax, eax
jne 0x489ed3
test byte [esi - 0x2c], 0x20
mov eax, dword [esi - 0x30]
mov eax, dword [eax + 0x54]
mov dword [ebp - 0x180], eax
je 0x489d33
push eax
call fcn.004bc5f0
mov eax, dword [ebp - 0x180]
add esp, 4
test byte [esi - 0x2c], 0x40
je 0x489d42
push eax
call fcn.004bc6e0
add esp, 4
mov eax, dword [ebp - 0x180]
add eax, 0x18
je 0x489ed3
mov eax, dword [esi - 0x30]
push dword [esi - 0x24]
mov eax, dword [eax + 0x54]
push eax
mov dword [ebp - 0x164], eax
call fcn.004b76f0
add esp, 8
test eax, eax
jne 0x489ed3
mov eax, dword [esi - 0x30]
mov eax, dword [eax + 0x54]
add eax, 0x4c
mov dword [ebp - 0x180], eax
mov ecx, dword [eax + 4]
mov dword [edi], ecx
mov eax, dword [eax]
mov dword [ebp - 0x16c], eax
mov dword [edi + 4], eax
mov eax, dword [esi - 0x30]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x64]
mov dword [edi + 8], eax
mov eax, dword [esi - 0x30]
mov eax, dword [eax + 0x54]
mov eax, dword [eax + 0x68]
neg eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x164]
mov eax, dword [eax + 0x40]
add eax, 0x3f
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
mov edx, dword [ebp - 0x174]
sar eax, 6
movd xmm0, eax
mov eax, dword [ebp - 0x180]
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x10], xmm0
cmp byte [eax + 0x12], 7
sete al
mov byte [edi + 0x14], al
mov eax, dword [ebp - 0x16c]
imul eax, ecx
shl eax, 2
mov dword [ebp - 0x16c], eax
add eax, edx
cmp eax, 0x40000
jle 0x489e5b
xor eax, eax
mov dword [ebp - 0x174], eax
mov eax, dword [0x693270]
test eax, eax
je 0x489e16
inc dword [eax + 0xb0]
push 0x40000
call fcn.005b115b
add esp, 4
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x164]
lea ecx, [ebp - 0x124]
push eax
call fcn.00480d50
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x124]
mov edx, dword [ebp - 0x174]
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x1b4], ecx
jmp 0x489e67
mov eax, dword [ebp - 0x190]
mov ecx, dword [ebp - 0x1b4]
mov ecx, dword [eax + ecx*4 - 4]
lea eax, [ebp - 0x118]
add ecx, edx
add edx, dword [ebp - 0x16c]
mov dword [ebp - 0x174], edx
xor edx, edx
cmp byte [ebp - 0x165], dl
mov dword [edi + 0x1c], ecx
cmove eax, edx
push eax
push dword [edi]
push ecx
push dword [ebp - 0x180]
call fcn.00488a20
mov edx, dword [ebp - 0x178]
mov eax, dword [esi - 0x20]
mov ecx, dword [edi]
add ecx, dword [ebp - 0x194]
mov dword [eax + edx + 4], ecx
mov eax, dword [esi - 0x20]
mov ecx, dword [edi + 4]
add ecx, dword [ebp - 0x194]
mov dword [eax + edx + 8], ecx
mov ecx, dword [esi - 0x20]
mov eax, dword [ecx + edx + 8]
imul eax, dword [ecx + edx + 4]
add dword [ebp - 0x1ac], eax
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 0x184]
inc eax
add dword [ebp - 0x178], 0x18
add ecx, 0x20
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x184], ecx
cmp eax, dword [esi]
jl 0x489ce0
mov eax, dword [ebp - 0x170]
mov edx, dword [ebp - 0x19c]
add esi, 0x54
movss xmm0, dword [0x67ac8c]
add edx, 0x78
sub dword [ebp - 0x188], 1
mov edi, dword [ebp - 0x1a8]
mov dword [ebp - 0x19c], edx
jne 0x489c10
mov ecx, dword [ebp - 0x1ac]
movd xmm0, ecx
xorps xmm1, xmm1
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
ucomisd xmm1, xmm0
ja 0x489f50
sqrtsd xmm0, xmm0
jmp 0x489f55
call fcn.005e35f0
mov edi, dword [ebp - 0x170]
cvtsd2ss xmm0, xmm0
mov eax, dword [edi + 8]
mov dword [edi + 0x28], 0
cvttss2si ecx, xmm0
inc ecx
test eax, eax
jg 0x489fad
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x67ad9c]
jb 0x489f89
mov eax, 0x1000
jmp 0x489fad
comiss xmm0, dword [0x67ad98]
jb 0x489f99
mov eax, 0x800
jmp 0x489fad
comiss xmm0, dword [0x67ad8c]
mov eax, 0x200
mov ecx, 0x400
cmovae eax, ecx
mov ecx, edi
mov dword [ecx + 0x24], eax
xor ecx, ecx
sub eax, dword [edi + 0xc]
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x200], ecx
test eax, eax
jle 0x48a014
cmp eax, 8
mov esi, eax
mov edx, 8
cmovl esi, edx
test esi, esi
jle 0x48a014
mov eax, dword [0x693270]
test eax, eax
je 0x489ff1
inc dword [eax + 0xb0]
lea eax, [esi + esi*2]
shl eax, 2
push eax
call fcn.005b115b
mov ecx, eax
mov dword [ebp - 0x204], esi
mov eax, dword [ebp - 0x164]
add esp, 4
mov dword [ebp - 0x200], ecx
mov edx, dword [edi + 0x24]
sub edx, dword [edi + 0xc]
push eax
push ecx
mov ecx, 0x8000
mov dword [ebp - 0x208], eax
sub ecx, dword [edi + 0xc]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.00488ee0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x16c], eax
mov esi, dword [ebp - 0x170]
mov edi, dword [esi + 0x48]
mov dword [ebp - 0x174], edi
test edi, edi
jle 0x48a089
cmp edi, 8
mov ecx, edi
mov edx, 8
cmovl ecx, edx
test ecx, ecx
jle 0x48a089
mov eax, dword [0x693270]
test eax, eax
je 0x48a074
inc dword [eax + 0xb0]
lea eax, [ecx + ecx*2]
shl eax, 3
push eax
call fcn.005b115b
add esp, 4
mov dword [ebp - 0x16c], eax
lea ecx, [edi + edi*2]
shl ecx, 3
push ecx
push 0
push eax
call fcn.005acba0
add esp, 0xc
cmp dword [esi + 0x48], 0
jle 0x48a0d8
mov edx, dword [ebp - 0x16c]
xor ecx, ecx
add edx, 8
xor edi, edi
nop
mov eax, dword [esi + 0x50]
lea ecx, [ecx + 0x1c]
inc edi
lea edx, [edx + 0x18]
movzx eax, word [eax + ecx - 0x1c]
mov dword [edx - 0x1c], eax
mov eax, dword [esi + 0x50]
movzx eax, word [eax + ecx - 0x1a]
mov dword [edx - 0x18], eax
cmp edi, dword [esi + 0x48]
jl 0x48a0b0
mov edi, dword [ebp - 0x174]
mov edx, dword [ebp - 0x16c]
lea ecx, [ebp - 0x15c]
push edi
call fcn.00481f10
add esp, 4
test edi, edi
jle 0x48a145
mov edx, dword [ebp - 0x16c]
xor edi, edi
mov eax, dword [ebp - 0x174]
add edx, 0x10
cmp dword [edx + 4], 0
je 0x48a134
mov eax, dword [esi + 0x50]
movzx ecx, word [edx - 4]
mov word [eax + edi + 4], cx
mov eax, dword [esi + 0x50]
movzx ecx, word [edx]
mov word [eax + edi + 6], cx
mov ecx, dword [edx - 8]
add ecx, dword [edx]
cmp dword [esi + 0x28], ecx
mov eax, dword [ebp - 0x174]
cmovge ecx, dword [esi + 0x28]
mov dword [esi + 0x28], ecx
add edi, 0x1c
add edx, 0x18
sub eax, 1
mov dword [ebp - 0x174], eax
jne 0x48a102
mov eax, dword [ebp - 0x16c]
test eax, eax
je 0x48a168
mov ecx, dword [0x693270]
test ecx, ecx
je 0x48a15f
dec dword [ecx + 0xb0]
push eax
call fcn.005b0eba
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x1a4]
test eax, eax
jle 0x48a1e1
mov esi, dword [ebp - 0x18c]
add esi, 0x38
mov dword [ebp - 0x1a8], eax
mov eax, dword [esi]
test eax, eax
je 0x48a1cf
mov edx, dword [esi - 0x10]
lea ecx, [ebp - 0x15c]
push eax
call fcn.00489070
xor edi, edi
add esp, 4
cmp dword [esi], edi
jle 0x48a1cf
xor edx, edx
mov eax, dword [esi - 0x10]
cmp dword [edx + eax + 0x14], 0
je 0x48a1c7
mov ecx, dword [edx + eax + 0x10]
add ecx, dword [edx + eax + 8]
mov eax, dword [ebp - 0x170]
cmp dword [eax + 0x28], ecx
cmovge ecx, dword [eax + 0x28]
mov dword [eax + 0x28], ecx
inc edi
add edx, 0x18
cmp edi, dword [esi]
jl 0x48a1a5
add esi, 0x54
sub dword [ebp - 0x1a8], 1
jne 0x48a185
mov esi, dword [ebp - 0x170]
test byte [esi], 1
mov eax, dword [esi + 0x28]
jne 0x48a20e
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
movss xmm2, dword [0x67ac8c]
lea edi, [eax + 1]
mov eax, dword [esi + 0x24]
movaps xmm1, xmm2
mov dword [esi + 0x28], edi
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, edi
cvtdq2ps xmm0, xmm0
imul edi, eax
cmp byte [ebp - 0x15d], 0
divss xmm2, xmm0
mov eax, dword [0x693270]
movss dword [esi + 0x2c], xmm1
movss dword [esi + 0x30], xmm2
je 0x48a26b
shl edi, 2
test eax, eax
je 0x48a260
inc dword [eax + 0xb0]
push edi
call fcn.005b115b
mov dword [esi + 0x20], eax
jmp 0x48a27e
test eax, eax
je 0x48a275
inc dword [eax + 0xb0]
push edi
call fcn.005b115b
mov dword [esi + 0x1c], eax
add esp, 4
push edi
push 0
push eax
call fcn.005acba0
mov ecx, dword [ebp - 0x1a4]
xor al, al
add esp, 0xc
mov byte [ebp - 0x165], al
test ecx, ecx
jle 0x48a6d5
mov eax, dword [ebp - 0x18c]
xor edx, edx
add eax, 8
mov dword [ebp - 0x1b0], edx
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x164], ecx
cmp dword [eax + 0x30], 0
je 0x48a6ae
mov ecx, dword [esi + 0x5c]
movss xmm0, dword [eax - 4]
add ecx, edx
movss dword [ebp - 0x1b8], xmm0
movss xmm0, dword [eax]
mov dword [ebp - 0x1a8], ecx
cmp byte [ecx + 0x3c], 0
mov edx, dword [ecx + 0x74]
mov dword [ebp - 0x1ac], edx
movss dword [ebp - 0x19c], xmm0
lea eax, [edx + 0x58]
lea edi, [edx + 0x38]
mov dword [ebp - 0x188], eax
jne 0x48a34c
mov ecx, edx
call fcn.00486e40
mov edx, dword [ebp - 0x1ac]
mov ecx, dword [ebp - 0x1a8]
movss xmm0, dword [ebp - 0x1b8]
mov eax, dword [ecx + 0x10]
mov dword [edx + 0x10], eax
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp - 0x188]
mov dword [edx + 0x34], ecx
mov dword [edx + 0x30], esi
movss dword [eax], xmm0
movss xmm0, dword [ebp - 0x19c]
movss dword [edx + 0x5c], xmm0
movss xmm0, dword [eax]
addss xmm0, dword [0x67ac54]
inc word [edi]
movss xmm2, dword [ecx + 0x28]
movss dword [ebp - 0x178], xmm2
mov dword [ebp - 0x1b8], 0
cvttss2si eax, xmm0
movd xmm1, eax
mov eax, dword [esi + 0xc]
cvtdq2ps xmm1, xmm1
mov dword [ebp - 0x1f8], eax
mov eax, dword [ebp - 0x180]
cmp dword [eax + 0x30], 0
addss xmm1, dword [ecx + 0x2c]
movss dword [ebp - 0x174], xmm1
jle 0x48a69b
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 0x194], edx
mov edi, dword [eax + 0x48]
mov eax, dword [eax + 0x20]
add edi, edx
add eax, ecx
cmp dword [eax + 4], 0
jne 0x48a3cd
cmp dword [eax + 8], 0
je 0x48a665
mov edx, dword [eax + 0xc]
sub esp, 0x20
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x1f8]
movd xmm0, dword [edi + 8]
movd xmm7, dword [edi + 0xc]
add edx, dword [ebp - 0x1f8]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x184], eax
mov eax, dword [edi]
movd xmm3, dword [ebp - 0x184]
cvtdq2ps xmm0, xmm0
mov dword [ebp - 0x188], edx
movd xmm6, eax
add eax, edx
addss xmm0, xmm2
movd xmm4, edx
cvtdq2ps xmm7, xmm7
movd xmm2, eax
mov eax, dword [ebp - 0x184]
addss xmm7, xmm1
movd xmm1, dword [esi + 0x24]
add eax, ecx
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm6, xmm6
cvtdq2ps xmm4, xmm4
cvtdq2ps xmm2, xmm2
movss dword [ebp - 0x19c], xmm0
addss xmm6, xmm0
movd xmm0, dword [esi + 0x28]
divss xmm4, xmm1
divss xmm2, xmm1
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm3, xmm3
divss xmm1, xmm0
divss xmm3, xmm0
movss xmm0, dword [edi + 0x10]
movd xmm5, ecx
mov ecx, dword [ebp - 0x1ac]
cvtdq2ps xmm5, xmm5
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x18], xmm1
addss xmm5, xmm7
movss dword [esp + 0x14], xmm2
movss dword [esp + 0x10], xmm3
movss xmm3, dword [ebp - 0x19c]
movss dword [esp + 0xc], xmm4
movss dword [esp + 8], xmm5
movss dword [esp + 4], xmm6
movss dword [esp], xmm7
push dword [edi + 0x18]
push dword [ebp - 0x1a8]
call fcn.004874d0
cmp byte [edi + 0x14], 0
mov ecx, dword [ebp - 0x1ac]
mov eax, dword [ecx + 0x20]
mov ecx, dword [ecx + 0x28]
lea eax, [eax + eax*4]
je 0x48a4e4
or dword [ecx + eax*8 - 0x28], 1
mov byte [ebp - 0x165], 1
mov ecx, dword [ebp - 0x170]
mov eax, dword [esi + 0x24]
mov esi, dword [edi + 0x1c]
mov edx, dword [edi]
mov ecx, dword [ecx + 0x1c]
mov dword [ebp - 0x19c], eax
imul eax, dword [ebp - 0x184]
mov dword [ebp - 0x16c], esi
test ecx, ecx
je 0x48a5a1
add eax, ecx
add eax, dword [ebp - 0x188]
cmp dword [edi + 4], 0
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x188], 0
jle 0x48a64f
lea ecx, [edx*4]
mov dword [ebp - 0x1dc], ecx
nop
xor ecx, ecx
test edx, edx
jle 0x48a572
add esi, 3
nop dword [eax]
mov edx, dword [ebp - 0x184]
lea esi, [esi + 4]
mov al, byte [esi - 4]
mov byte [ecx + edx], al
inc ecx
mov edx, dword [edi]
cmp ecx, edx
jl 0x48a550
mov eax, dword [ebp - 0x184]
mov esi, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0x188]
add eax, dword [ebp - 0x19c]
inc ecx
add esi, dword [ebp - 0x1dc]
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x16c], esi
cmp ecx, dword [edi + 4]
jl 0x48a540
jmp 0x48a64f
mov esi, dword [ebp - 0x170]
mov ecx, dword [ebp - 0x188]
add ecx, eax
mov dword [ebp - 0x188], 0
cmp dword [edi + 4], 0
mov eax, dword [esi + 0x20]
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x184], ecx
jle 0x48a655
mov eax, dword [ebp - 0x19c]
shl eax, 2
mov dword [ebp - 0x19c], eax
lea eax, [edx*4]
mov dword [ebp - 0x1fc], eax
mov eax, dword [ebp - 0x16c]
xor esi, esi
test edx, edx
jle 0x48a625
sub eax, dword [ebp - 0x184]
mov dword [ebp - 0x1dc], eax
mov eax, dword [eax + ecx]
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
inc esi
mov edx, dword [edi]
mov eax, dword [ebp - 0x1dc]
cmp esi, edx
jl 0x48a603
mov eax, dword [ebp - 0x16c]
mov ecx, dword [ebp - 0x184]
mov esi, dword [ebp - 0x188]
add ecx, dword [ebp - 0x19c]
inc esi
add eax, dword [ebp - 0x1fc]
mov dword [ebp - 0x188], esi
mov dword [ebp - 0x184], ecx
mov dword [ebp - 0x16c], eax
cmp esi, dword [edi + 4]
jl 0x48a5f1
mov esi, dword [ebp - 0x170]
movss xmm2, dword [ebp - 0x178]
movss xmm1, dword [ebp - 0x174]
mov ecx, dword [ebp - 0x1b8]
mov eax, dword [ebp - 0x180]
inc ecx
add dword [ebp - 0x194], 0x20
add dword [ebp - 0x1a0], 0x18
mov edx, dword [ebp - 0x194]
cmp ecx, dword [eax + 0x30]
mov dword [ebp - 0x1b8], ecx
mov ecx, dword [ebp - 0x1a0]
jl 0x48a3b3
mov edx, dword [ebp - 0x1b0]
mov ecx, dword [ebp - 0x164]
mov dword [eax + 0x20], 0
add eax, 0x54
add edx, 0x78
sub ecx, 1
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x1b0], edx
mov dword [ebp - 0x164], ecx
jne 0x48a2c0
mov al, byte [ebp - 0x165]
xor edi, edi
mov byte [esi + 0x19], al
cmp dword [ebp - 0x1b4], edi
jle 0x48a716
mov esi, dword [ebp - 0x190]
mov ecx, dword [esi + edi*4]
test ecx, ecx
je 0x48a6fe
mov eax, dword [0x693270]
test eax, eax
je 0x48a6fe
dec dword [eax + 0xb0]
push ecx
call fcn.005b0eba
inc edi
add esp, 4
cmp edi, dword [ebp - 0x1b4]
jl 0x48a6e8
mov esi, dword [ebp - 0x170]
mov edi, dword [ebp - 0x1a4]
test edi, edi
jle 0x48a795
mov esi, dword [ebp - 0x18c]
add esi, 0x18
nop dword [eax]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x48a74f
mov eax, dword [0x693270]
test eax, eax
je 0x48a746
dec dword [eax + 0xb0]
push ecx
call fcn.005b0eba
add esp, 4
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x48a76e
mov eax, dword [0x693270]
test eax, eax
je 0x48a765
dec dword [eax + 0xb0]
push ecx
call fcn.005b0eba
add esp, 4
mov byte [ebp - 4], 8
mov eax, dword [esi]
test eax, eax
je 0x48a787
push eax
call fcn.004b4470
add esp, 4
mov dword [esi], 0
add esi, 0x54
sub edi, 1
jne 0x48a730
mov esi, dword [ebp - 0x170]
mov edi, dword [ebp - 0x18c]
test edi, edi
je 0x48a7d9
mov eax, dword [0x693270]
mov dword [ebp - 0x1f0], 0
mov dword [ebp - 0x1f4], 0
test eax, eax
je 0x48a7c2
dec dword [eax + 0xb0]
push edi
call fcn.005b0eba
add esp, 4
xor edi, edi
mov dword [ebp - 0x18c], edi
mov dword [ebp - 0x1ec], edi
mov ecx, esi
call fcn.00486ab0
mov byte [ebp - 0x15d], 1
mov ecx, dword [ebp - 0x200]
test ecx, ecx
je 0x48a809
mov eax, dword [0x693270]
test eax, eax
je 0x48a800
dec dword [eax + 0xb0]
push ecx
call fcn.005b0eba
add esp, 4
mov ecx, dword [ebp - 0x190]
test ecx, ecx
je 0x48a82b
mov eax, dword [0x693270]
test eax, eax
je 0x48a822
dec dword [eax + 0xb0]
push ecx
call fcn.005b0eba
add esp, 4
mov ecx, dword [ebp - 0x17c]
test ecx, ecx
je 0x48a84d
mov eax, dword [0x693270]
test eax, eax
je 0x48a844
dec dword [eax + 0xb0]
push ecx
call fcn.005b0eba
add esp, 4
mov esi, dword [ebp - 0x198]
test esi, esi
je 0x48a86f
mov eax, dword [0x693270]
test eax, eax
je 0x48a866
dec dword [eax + 0xb0]
push esi
call fcn.005b0eba
add esp, 4
mov eax, dword [ebp - 0x18c]
test eax, eax
je 0x48a892
mov ecx, dword [0x693270]
test ecx, ecx
je 0x48a889
dec dword [ecx + 0xb0]
push eax
call fcn.005b0eba
add esp, 4
mov al, byte [ebp - 0x15d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005aa453
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret