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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c1df4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ebx
sub esp, 0x58
push esi
mov esi, dword [ebx + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x18], ecx
cmp esi, 1
je 0x1000408c
cmp esi, 2
je 0x1000408c
cmp esi, 3
je 0x1000408c
cmp esi, 4
je 0x1000408c
cmp esi, 5
je 0x1000408c
cmp esi, 6
je 0x1000408c
cmp esi, 7
je 0x1000408c
lea edx, [ecx + 0x38]
mov eax, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], eax
jmp 0x10004144
movss xmm1, dword [0x100d1ed0]
xorps xmm0, xmm0
unpcklps xmm0, xmm1
xorps xmm2, xmm2
movq qword [ecx + 0x8c], xmm0
xorps xmm0, xmm0
unpcklps xmm0, xmm2
mov eax, edi
movq qword [ecx + 0x98], xmm0
xorps xmm0, xmm0
unpcklps xmm0, xmm2
movq qword [ecx + 0xa4], xmm0
mov dword [ecx + 0x94], eax
mov dword [ecx + 0xa0], eax
mov dword [ecx + 0xac], eax
lea eax, [ecx + 0x38]
mov dword [ebp - 0x3c], edi
mov edx, eax
mov dword [ebp - 0x3c], edi
mov dword [ecx + 0x68], 0x186a0
mov dword [ecx + 0x6c], 4
mov dword [ecx + 0x70], 0x3c23d70a
mov dword [ecx + 0x74], 0x3f19999a
mov dword [ecx + 0x78], 0x41f00000
mov dword [ebp - 0x3c], edi
mov dword [ecx + 0xb0], 0x42a00000
mov dword [ebp - 0x24], eax
mov dword [eax], 1
mov dword [ebp - 0x1c], edx
cmp esi, 5
jne 0x10004129
mov dword [eax], 2
jmp 0x10004144
cmp esi, 6
jne 0x10004136
mov dword [eax], 3
jmp 0x10004144
cmp esi, 7
jne 0x10004144
mov dword [eax], 4
lea edx, [ecx + 0x38]
movss xmm2, dword [0x100d1ff0]
cmp dword [ecx + 4], esi
je 0x100041eb
mov dword [ebp - 0x1c], edx
cmp dword [eax], edi
jbe 0x100041e8
mov edi, dword [ebp - 0x24]
lea edx, [ecx + 8]
xor ecx, ecx
mov esi, dword [edx]
test esi, esi
je 0x10004187
nop
mov eax, dword [esi + 0x24]
mov dword [edx], eax
mov eax, dword [edx + 0x10]
mov dword [esi + 0x24], eax
dec dword [edx + 0x20]
mov dword [edx + 0x10], esi
mov esi, dword [edx]
test esi, esi
jne 0x10004170
mov eax, dword [edi]
movaps xmm1, xmm2
mov dword [edx + 0x38], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100d2260]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movd xmm0, ecx
inc ecx
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x100d2260]
cvtpd2ps xmm0, xmm0
mulss xmm1, xmm0
movss dword [edx + 0x50], xmm1
add edx, 4
cmp ecx, dword [edi]
jb 0x10004168
mov ecx, dword [ebp - 0x18]
xor edi, edi
mov esi, dword [ebx + 0xc]
lea eax, [ecx + 0x38]
mov dword [ebp - 0x1c], eax
mov dword [ecx + 4], esi
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
call esi
mov ecx, dword [ebp - 0x18]
sub eax, dword [ecx + 0x50]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100d2260]
cvtpd2ps xmm0, xmm0
mulss xmm0, dword [0x100d1ebc]
movss dword [ebp - 0x24], xmm0
addss xmm0, dword [ecx + 0x3c]
movss dword [ecx + 0x3c], xmm0
call esi
movss xmm0, dword [ebp - 0x24]
mov esi, dword [ebp - 0x18]
addss xmm0, xmm0
mov dword [esi + 0x50], eax
addss xmm0, dword [esi + 0x54]
movss dword [ebp - 0x28], xmm0
movss dword [esi + 0x54], xmm0
mulss xmm0, dword [0x100d1eec]
call fcn.100050e0
addss xmm0, xmm0
call fcn.10005100
mulss xmm0, dword [0x100d1f70]
xorps xmm1, xmm1
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x3c]
unpcklps xmm1, xmm0
movss xmm0, dword [ebp - 0x28]
addss xmm0, xmm0
movq qword [esi + 0x8c], xmm1
mov dword [esi + 0x94], eax
call fcn.100050e0
mulss xmm0, dword [0x100d1f60]
mov edx, esi
mov eax, dword [ebp - 0x1c]
xor esi, esi
mov dword [ebp - 0x14], esi
addss xmm0, dword [edx + 0x78]
movss dword [edx + 0x7c], xmm0
cmp dword [eax], esi
jbe 0x10004978
movss xmm5, dword [ebp - 0x24]
movaps xmm1, xmm5
mulss xmm1, dword [0x100d1fe0]
movss dword [ebp - 0x34], xmm1
nop dword [eax + eax]
movaps xmm0, xmm1
movss xmm1, dword [0x100d1ff0]
addss xmm0, dword [edx + esi*4 + 0x58]
comiss xmm0, xmm1
movss dword [edx + esi*4 + 0x58], xmm0
jb 0x100042ff
nop dword [eax]
subss xmm0, xmm1
comiss xmm0, xmm1
movss dword [edx + esi*4 + 0x58], xmm0
jae 0x100042f0
lea eax, [esi + 2]
lea eax, [edx + eax*4]
mov dword [ebp - 0x20], eax
mov eax, dword [eax]
test eax, eax
je 0x10004409
movss xmm0, dword [edx + 0x3c]
mov edi, eax
subss xmm0, dword [edi + 0x18]
comiss xmm0, dword [edx + 0x74]
jb 0x10004346
mov esi, dword [ebp - 0x20]
mov eax, dword [edi + 0x24]
mov dword [esi], eax
mov esi, dword [ebp - 0x14]
mov eax, dword [edx + esi*4 + 0x18]
mov dword [edi + 0x24], eax
dec dword [edx + esi*4 + 0x28]
mov eax, dword [ebp - 0x20]
mov dword [edx + esi*4 + 0x18], edi
jmp 0x100043ff
movaps xmm0, xmm5
lea eax, [edi + 0x24]
mulss xmm0, dword [edx + 0x9c]
movaps xmm4, xmm5
mov dword [ebp - 0x20], eax
mulss xmm4, dword [edx + 0x98]
movaps xmm1, xmm5
mulss xmm1, dword [edx + 0xa0]
addss xmm0, dword [edi + 0x10]
addss xmm4, dword [edi + 0xc]
addss xmm1, dword [edi + 0x14]
movss dword [edi + 0x10], xmm0
movss dword [edi + 0xc], xmm4
movss dword [edi + 0x14], xmm1
movss xmm3, dword [edx + 0xa8]
movss xmm2, dword [edx + 0xa4]
subss xmm3, xmm0
movss xmm0, dword [edx + 0xac]
subss xmm2, xmm4
subss xmm0, xmm1
mulss xmm3, xmm5
mulss xmm2, xmm5
addss xmm3, dword [edi + 0x10]
mulss xmm0, xmm5
addss xmm2, xmm4
addss xmm0, xmm1
movss dword [edi + 0x10], xmm3
mulss xmm3, xmm5
movss dword [edi + 0xc], xmm2
mulss xmm2, xmm5
movss dword [edi + 0x14], xmm0
addss xmm3, dword [edi + 4]
addss xmm2, dword [edi]
mulss xmm0, xmm5
movss dword [edi + 4], xmm3
addss xmm0, dword [edi + 8]
movss dword [edi], xmm2
movss dword [edi + 8], xmm0
mov eax, dword [eax]
test eax, eax
jne 0x10004312
movss xmm1, dword [edx + 0x3c]
movaps xmm0, xmm1
subss xmm0, dword [edx + esi*4 + 0x40]
comiss xmm0, dword [edx + 0x70]
jbe 0x10004964
movss dword [edx + esi*4 + 0x40], xmm1
cmp dword [edx + 0x6c], 0
mov dword [ebp - 0x28], 0
jbe 0x10004964
mov eax, dword [edx + esi*4 + 0x18]
test eax, eax
je 0x1000444b
mov edi, eax
mov eax, dword [edi + 0x24]
mov dword [edx + esi*4 + 0x18], eax
jmp 0x1000446d
mov eax, dword [edx + esi*4 + 0x28]
cmp eax, dword [edx + 0x68]
jae 0x1000446d
push 0x28
call fcn.1009718a
mov edi, eax
add esp, 4
mov dword [ebp - 0x38], edi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
mov ecx, dword [edx + esi*4 + 0x28]
cmp ecx, dword [edx + 0x68]
jae 0x1000494f
mov eax, dword [edx + esi*4 + 8]
mov dword [edi + 0x24], eax
mov dword [edx + esi*4 + 8], edi
movq xmm0, qword [edx + 0x8c]
movq qword [edi + 0xc], xmm0
mov eax, dword [edx + 0x94]
mov dword [edi + 0x14], eax
movss xmm0, dword [edx + 0xb0]
ucomiss xmm0, dword [0x100d1eb8]
lahf
test ah, 0x44
jnp 0x100044fc
lea eax, [ebp - 0x44]
push eax
call fcn.10005010
mov edx, dword [ebp - 0x18]
movss xmm2, dword [ebp - 0x40]
movss xmm3, dword [ebp - 0x3c]
movss xmm0, dword [edx + 0xb0]
movaps xmm1, xmm0
mulss xmm2, xmm0
mulss xmm1, dword [ebp - 0x44]
addss xmm2, dword [edi + 0x10]
mulss xmm3, xmm0
addss xmm1, dword [edi + 0xc]
addss xmm3, dword [edi + 0x14]
movss dword [edi + 0x10], xmm2
movss dword [edi + 0xc], xmm1
movss dword [edi + 0x14], xmm3
mov eax, dword [edx + 0x3c]
mov dword [edi + 0x18], eax
movss xmm0, dword [edx + esi*4 + 0x58]
mulss xmm0, dword [0x100d1ecc]
movss dword [ebp - 0x20], xmm0
call fcn.100050e0
mulss xmm0, dword [0x100d1fe0]
movaps xmmword [ebp - 0x60], xmm0
movss xmm0, dword [ebp - 0x20]
cvtps2pd xmm0, xmm0
call fcn.100c0df0
mov eax, dword [ebp - 0x18]
xorps xmm1, xmm1
movaps xmm2, xmmword [ebp - 0x60]
xorps xmm3, xmm3
cvtsd2ss xmm1, xmm0
movss xmm0, dword [eax + 0x84]
mulss xmm1, dword [0x100d1fe0]
addss xmm0, xmm3
addss xmm2, dword [eax + 0x80]
addss xmm1, dword [eax + 0x88]
unpcklps xmm2, xmm0
movq qword [edi], xmm2
movss dword [ebp - 0x48], xmm1
mov eax, dword [ebp - 0x48]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
cmp eax, 1
jne 0x1000461f
movss xmm2, dword [0x100d1ed8]
xorps xmm1, xmm1
call fcn.10004fd0
movss xmm2, dword [0x100d1ee0]
xorps xmm1, xmm1
movss dword [ebp - 0x2c], xmm0
call fcn.10004fd0
movss xmm2, dword [0x100d1ef8]
movss xmm1, dword [0x100d1ee4]
movss dword [ebp - 0x20], xmm0
call fcn.10004fd0
movaps xmm1, xmm0
xorps xmm0, xmm0
comiss xmm1, dword [0x100d1f0c]
jb 0x100045db
mov esi, 0xff
jmp 0x10004601
comiss xmm0, xmm1
jb 0x100045e4
xor esi, esi
jmp 0x10004601
mulss xmm1, dword [0x100d1fe8]
addss xmm1, dword [0x100d1eec]
movaps xmm0, xmm1
call fcn.100c0c70
mov esi, eax
xorps xmm0, xmm0
movss xmm2, dword [ebp - 0x20]
comiss xmm2, dword [0x100d1f0c]
jb 0x100048b5
mov dword [ebp - 0x20], 0xff
jmp 0x100048de
cmp eax, 2
jne 0x10004702
movss xmm2, dword [0x100d1f0c]
movss xmm1, dword [0x100d1efc]
call fcn.10004fd0
movss xmm2, dword [0x100d1ee8]
movss xmm1, dword [0x100d1ed8]
movss dword [ebp - 0x30], xmm0
call fcn.10004fd0
movss xmm2, dword [0x100d1ee0]
xorps xmm1, xmm1
movss dword [ebp - 0x2c], xmm0
call fcn.10004fd0
movaps xmm1, xmm0
xorps xmm0, xmm0
comiss xmm1, dword [0x100d1f0c]
jb 0x10004682
mov esi, 0xff
jmp 0x100046a8
comiss xmm0, xmm1
jb 0x1000468b
xor esi, esi
jmp 0x100046a8
mulss xmm1, dword [0x100d1fe8]
addss xmm1, dword [0x100d1eec]
movaps xmm0, xmm1
call fcn.100c0c70
mov esi, eax
xorps xmm0, xmm0
movss xmm2, dword [ebp - 0x2c]
comiss xmm2, dword [0x100d1f0c]
jb 0x100046c7
movss xmm1, dword [ebp - 0x30]
mov dword [ebp - 0x20], 0xff
jmp 0x100048e3
comiss xmm0, xmm2
jb 0x100046dd
movss xmm1, dword [ebp - 0x30]
mov dword [ebp - 0x20], 0
jmp 0x100048e3
mulss xmm2, dword [0x100d1fe8]
addss xmm2, dword [0x100d1eec]
movaps xmm0, xmm2
call fcn.100c0c70
movss xmm1, dword [ebp - 0x30]
mov dword [ebp - 0x20], eax
jmp 0x100048e3
cmp eax, 3
jne 0x10004746
movss xmm2, dword [0x100d1ee4]
xorps xmm1, xmm1
call fcn.10004fd0
movss xmm2, dword [0x100d1f0c]
movss xmm1, dword [0x100d1eec]
movss dword [ebp - 0x2c], xmm0
call fcn.10004fd0
movss xmm2, dword [0x100d1eec]
movss xmm1, dword [0x100d1ed8]
jmp 0x10004858
cmp eax, 4
je 0x1000481e
cmp eax, 5
jne 0x100047db
test esi, esi
jne 0x1000479b
movss xmm2, dword [0x100d1f0c]
movss xmm1, dword [0x100d1efc]
call fcn.10004fd0
movss xmm2, dword [0x100d1ee8]
movss xmm1, dword [0x100d1ed8]
movss dword [ebp - 0x2c], xmm0
call fcn.10004fd0
movss xmm2, dword [0x100d1ee0]
xorps xmm1, xmm1
jmp 0x10004858
cmp esi, 1
jne 0x1000492e
movss xmm2, dword [0x100d1ed8]
xorps xmm1, xmm1
call fcn.10004fd0
movss xmm2, dword [0x100d1ee0]
xorps xmm1, xmm1
movss dword [ebp - 0x2c], xmm0
call fcn.10004fd0
movss xmm2, dword [0x100d1ef8]
movss xmm1, dword [0x100d1ee4]
jmp 0x10004858
cmp eax, 6
jne 0x100047f6
test esi, esi
je 0x1000475c
cmp esi, 1
je 0x10004707
cmp esi, 2
jmp 0x1000479e
cmp eax, 7
jne 0x1000492e
test esi, esi
je 0x1000475c
cmp esi, 1
je 0x10004707
cmp esi, 2
je 0x100047a4
cmp esi, 3
jne 0x1000492e
movss xmm2, dword [0x100d1ee4]
xorps xmm1, xmm1
call fcn.10004fd0
movss xmm2, dword [0x100d1ef8]
movss xmm1, dword [0x100d1eec]
movss dword [ebp - 0x2c], xmm0
call fcn.10004fd0
movss xmm2, dword [0x100d1f0c]
movss xmm1, dword [0x100d1ee8]
movss dword [ebp - 0x30], xmm0
call fcn.10004fd0
movaps xmm1, xmm0
xorps xmm0, xmm0
comiss xmm1, dword [0x100d1f0c]
jb 0x10004878
mov esi, 0xff
jmp 0x1000489e
comiss xmm0, xmm1
jb 0x10004881
xor esi, esi
jmp 0x1000489e
mulss xmm1, dword [0x100d1fe8]
addss xmm1, dword [0x100d1eec]
movaps xmm0, xmm1
call fcn.100c0c70
mov esi, eax
xorps xmm0, xmm0
movss xmm2, dword [ebp - 0x30]
comiss xmm2, dword [0x100d1f0c]
jb 0x100048b5
mov dword [ebp - 0x20], 0xff
jmp 0x100048de
comiss xmm0, xmm2
jb 0x100048c3
mov dword [ebp - 0x20], 0
jmp 0x100048de
mulss xmm2, dword [0x100d1fe8]
addss xmm2, dword [0x100d1eec]
movaps xmm0, xmm2
call fcn.100c0c70
mov dword [ebp - 0x20], eax
movss xmm1, dword [ebp - 0x2c]
comiss xmm1, dword [0x100d1f0c]
jb 0x100048f3
mov eax, 0xff
jmp 0x10004917
xorps xmm0, xmm0
comiss xmm0, xmm1
jb 0x100048ff
xor eax, eax
jmp 0x10004917
mulss xmm1, dword [0x100d1fe8]
addss xmm1, dword [0x100d1eec]
movaps xmm0, xmm1
call fcn.100c0c70
or esi, 0xffffff00
shl esi, 8
or esi, dword [ebp - 0x20]
shl esi, 8
or esi, eax
mov dword [edi + 0x20], esi
mov esi, dword [ebp - 0x14]
movss xmm2, dword [0x100d1f0c]
movss xmm1, dword [0x100d1ee4]
call fcn.10004fd0
mov edx, dword [ebp - 0x18]
movss dword [edi + 0x1c], xmm0
inc dword [edx + esi*4 + 0x28]
mov ecx, dword [ebp - 0x28]
inc ecx
mov dword [ebp - 0x28], ecx
cmp ecx, dword [edx + 0x6c]
jb 0x10004438
movss xmm5, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
inc esi
movss xmm1, dword [ebp - 0x34]
mov dword [ebp - 0x14], esi
cmp esi, dword [eax]
jb 0x100042d0
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8