Function at 0x1002c080
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edx]
push esi
mov dword [esp + 8], ecx
mov ecx, edx
push edi
mov eax, dword [eax + 0x378]
call eax
mov esi, eax
test esi, esi
je 0x1002c6eb
mov ecx, dword fs:[0x2c]
mov edx, dword [0x10055d50]
mov edi, dword [ecx + edx*4]
mov ecx, dword [0x1005638c]
cmp ecx, dword [edi + 4]
jle 0x1002c10b
push 0x1005638c
call fcn.100402ff
add esp, 4
cmp dword [0x1005638c], 0xffffffff
jne 0x1002c10b
mov edx, str.0F_B7_81_________50_E8_________83_C4_04_C3
mov ecx, str.client.dll
call fcn.100400a0
push 0x1005638c
mov dword [0x100563c0], eax
mov dword [0x100563c4], 0
call fcn.100402b5
add esp, 4
mov eax, dword [0x100563c0]
mov ecx, esi
call eax
test eax, eax
je 0x1002c6eb
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x5e8]
call eax
mov ecx, dword [esp + 0xc]
movzx eax, byte [ecx + 0x34]
inc eax
mov dword [esp + 0xc], eax
mov eax, dword [0x10056498]
cmp eax, dword [edi + 4]
jle 0x1002c181
push 0x10056498
call fcn.100402ff
add esp, 4
cmp dword [0x10056498], 0xffffffff
jne 0x1002c181
push str.RandomSeed
push str.vstdlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10056498
mov dword [0x100564a0], eax
call fcn.100402b5
add esp, 4
push dword [esp + 0xc]
call dword [0x100564a0]
mov eax, dword [0x100564a4]
add esp, 4
cmp eax, dword [edi + 4]
jle 0x1002c1da
push 0x100564a4
call fcn.100402ff
add esp, 4
cmp dword [0x100564a4], 0xffffffff
jne 0x1002c1da
push str.RandomFloat
push str.vstdlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100564a4
mov dword [0x100564a8], eax
call fcn.100402b5
add esp, 4
sub esp, 8
mov dword [esp + 4], 0x40c90fdb
mov dword [esp], 0
call dword [0x100564a8]
mov eax, dword [esi]
add esp, 8
fstp dword [esp + 0x10]
mov ecx, esi
mov eax, dword [eax + 0x5e0]
mov dword [esp + 0xc], eax
call dword [esp + 0xc]
mov eax, dword [0x100564a4]
fstp dword [esp + 0xc]
cmp eax, dword [edi + 4]
jle 0x1002c25b
push 0x100564a4
call fcn.100402ff
add esp, 4
cmp dword [0x100564a4], 0xffffffff
jne 0x1002c25b
push str.RandomFloat
push str.vstdlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100564a4
mov dword [0x100564a8], eax
call fcn.100402b5
add esp, 4
movss xmm0, dword [esp + 0xc]
sub esp, 8
movss dword [esp + 4], xmm0
mov dword [esp], 0
call dword [0x100564a8]
movss xmm0, dword [esp + 0x18]
add esp, 8
cvtps2pd xmm0, xmm0
fstp dword [esp + 0x18]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x18]
movss dword [esp + 0x14], xmm0
movss xmm0, dword [esp + 0x10]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
cmp word [0x100563b8], 0
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x18]
movss dword [esp + 0x24], xmm0
jne 0x1002c2d4
mov ecx, 0xfc40137f
call fcn.1002bf00
mov word [0x100563b8], ax
cmp word [0x100563d4], 0
jne 0x1002c2ee
mov ecx, 0x4ee6d885
call fcn.1002bf00
mov word [0x100563d4], ax
mov eax, dword [0x100564a4]
cmp eax, dword [edi + 4]
jle 0x1002c33a
push 0x100564a4
call fcn.100402ff
add esp, 4
cmp dword [0x100564a4], 0xffffffff
jne 0x1002c33a
push str.RandomFloat
push str.vstdlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100564a4
mov dword [0x100564a8], eax
call fcn.100402b5
add esp, 4
sub esp, 8
mov dword [esp + 4], 0x40c90fdb
mov dword [esp], 0
call dword [0x100564a8]
mov eax, dword [esi]
add esp, 8
fstp dword [esp + 0x10]
mov ecx, esi
mov eax, dword [eax + 0x5e4]
mov dword [esp + 0xc], eax
call dword [esp + 0xc]
mov eax, dword [0x100564a4]
fstp dword [esp + 0xc]
cmp eax, dword [edi + 4]
jle 0x1002c3bb
push 0x100564a4
call fcn.100402ff
add esp, 4
cmp dword [0x100564a4], 0xffffffff
jne 0x1002c3bb
push str.RandomFloat
push str.vstdlib.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100564a4
mov dword [0x100564a8], eax
call fcn.100402b5
add esp, 4
movss xmm0, dword [esp + 0xc]
sub esp, 8
movss dword [esp + 4], xmm0
mov dword [esp], 0
call dword [0x100564a8]
movss xmm0, dword [esp + 0x18]
add esp, 8
cvtps2pd xmm0, xmm0
fstp dword [esp + 0x18]
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_cos_precise
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x18]
addss xmm0, dword [esp + 0x14]
movss dword [esp + 0x30], xmm0
movss xmm0, dword [esp + 0x10]
cvtps2pd xmm0, xmm0
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sin_precise
mov esi, dword [esp + 0x1c]
cvtsd2ss xmm0, xmm0
mulss xmm0, dword [esp + 0x18]
addss xmm0, dword [esp + 0x24]
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esi + 4]
mulss xmm0, dword [0x1004fe4c]
movss dword [esp + 0x14], xmm0
call fcn.100020d0
movss dword [esp + 0x28], xmm0
movss xmm0, dword [esp + 0x14]
call fcn.10002090
movss dword [esp + 0x20], xmm0
movss xmm0, dword [esi]
mulss xmm0, dword [0x1004fe4c]
movss dword [esp + 0x14], xmm0
call fcn.100020d0
movss dword [esp + 0x10], xmm0
movss xmm0, dword [esp + 0x14]
call fcn.10002090
movaps xmm2, xmm0
movss xmm0, dword [esi + 8]
mulss xmm0, dword [0x1004fe4c]
movss dword [esp + 0x24], xmm2
movss dword [esp + 0x14], xmm0
call fcn.100020d0
movss dword [esp + 0x2c], xmm0
movss xmm0, dword [esp + 0x14]
call fcn.10002090
movss xmm7, dword [esp + 0x2c]
movaps xmm1, xmm0
movss xmm6, dword [esp + 0x10]
movaps xmm5, xmm1
mulss xmm5, dword [0x1004ff90]
movss xmm3, dword [esp + 0x28]
xorps xmm3, xmmword [0x10050480]
movss xmm2, dword [esp + 0x24]
movaps xmm4, xmm3
mulss xmm2, dword [esp + 0x20]
movss dword [esp + 0x14], xmm1
movaps xmm1, xmm7
mulss xmm1, xmm6
mulss xmm4, xmm5
mulss xmm5, dword [esp + 0x20]
movaps xmm0, xmm1
mulss xmm1, dword [esp + 0x28]
mulss xmm0, dword [esp + 0x20]
subss xmm5, xmm1
movss dword [esp + 0x1c], xmm2
movss xmm2, dword [esp + 0x24]
mulss xmm2, dword [esp + 0x28]
subss xmm4, xmm0
movss xmm1, dword [esp + 0x14]
movss dword [esp + 0x2c], xmm5
movaps xmm5, xmm7
mulss xmm5, dword [0x1004ff90]
mulss xmm1, xmm6
movss dword [esp + 0x18], xmm2
movaps xmm2, xmm6
xorps xmm2, xmmword [0x10050480]
mulss xmm5, dword [esp + 0x24]
movaps xmm0, xmm1
mulss xmm0, dword [esp + 0x20]
movss dword [esp + 0x10], xmm2
mulss xmm1, dword [esp + 0x28]
movss xmm2, dword [0x1004feb0]
movss xmm6, dword [esp + 0x1c]
mulss xmm3, xmm7
mulss xmm7, dword [esp + 0x20]
subss xmm0, xmm3
movss xmm3, dword [esp + 0x14]
mulss xmm3, dword [esp + 0x24]
subss xmm1, xmm7
movss xmm7, dword [esp + 0x30]
mulss xmm4, xmm7
mulss xmm0, dword [esp + 0xc]
mulss xmm1, dword [esp + 0xc]
mulss xmm3, dword [esp + 0xc]
mulss xmm4, xmm2
mulss xmm0, xmm2
subss xmm6, xmm4
mulss xmm5, xmm7
movss xmm4, dword [esp + 0x18]
mulss xmm1, xmm2
subss xmm6, xmm0
mulss xmm5, xmm2
movss xmm0, dword [esp + 0x2c]
mulss xmm0, xmm7
movss xmm7, dword [esp + 0x10]
subss xmm7, xmm5
mulss xmm3, xmm2
mulss xmm0, xmm2
movss dword [esp + 0x1c], xmm6
subss xmm7, xmm3
subss xmm4, xmm0
movaps xmm0, xmm6
mulss xmm0, xmm6
movss dword [esp + 0x10], xmm7
subss xmm4, xmm1
movaps xmm1, xmm4
movss dword [esp + 0x18], xmm4
mulss xmm1, xmm4
addss xmm1, xmm0
movaps xmm0, xmm7
mulss xmm0, xmm7
addss xmm1, xmm0
cvtps2pd xmm0, xmm1
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x1002c642
sqrtsd xmm0, xmm0
jmp 0x1002c647
call sub.api_ms_win_crt_math_l1_1_0.dll__libm_sse2_sqrt_precise
movss xmm1, dword [0x1004feb0]
lea ecx, [esp + 0x34]
cvtsd2ss xmm0, xmm0
mov edx, esi
movss xmm3, dword [0x10050480]
addss xmm0, dword [0x1004fe30]
divss xmm1, xmm0
movaps xmm0, xmm1
mulss xmm0, dword [esp + 0x1c]
xorps xmm0, xmm3
movss dword [esp + 0x34], xmm0
movaps xmm0, xmm1
mulss xmm0, dword [esp + 0x18]
mulss xmm1, dword [esp + 0x10]
xorps xmm0, xmm3
movss dword [esp + 0x38], xmm0
xorps xmm1, xmm3
movss dword [esp + 0x3c], xmm1
call fcn.1003fc80
movss xmm1, dword [esi]
movss xmm0, dword [0x1004ff30]
comiss xmm1, xmm0
ja 0x1002c6c6
movss xmm0, dword [0x1004ff98]
comiss xmm0, xmm1
ja 0x1002c6c6
movaps xmm0, xmm1
sub esp, 8
movss dword [esi], xmm0
movss xmm0, dword [esi + 4]
mov dword [esp + 4], 0x43b40000
movss dword [esp], xmm0
call dword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_remainderf]
fstp dword [esi + 4]
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret