Function at 0x1017d700
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1027c634]
sub esp, 0x50
mov eax, dword [eax + 0x14]
cmp byte [eax + 0x11], 0
je 0x1017d9d9
mov eax, dword [0x1027c620]
mov ecx, dword [0x1027db70]
mov eax, dword ds:[eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x1028a218]
cmp eax, dword [ecx + 4]
jg 0x1017d9dd
mov eax, dword [0x1028a208]
mov dword [ebp - 4], eax
test byte [eax + 0x24], 1
je 0x1017d9d9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [eax + 4], 0x843c1eae
mov dword [eax + 0x34], 0x20
mov eax, dword [0x10289da0]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x1017d798
push str.RandomSeed
push str.vstdlib.dll
call edi
push eax
call esi
mov dword [0x10289da0], eax
push 0x21
call eax
add esp, 4
lea eax, [ebp - 0x48]
mov edx, 3
nop word [eax + eax]
mov dword [eax - 8], 0
lea eax, [eax + 0xc]
mov dword [eax - 0x10], 0
mov dword [eax - 0xc], 0
sub edx, 1
jne 0x1017d7b0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
add eax, 0xc
mov dword [ebp - 0x10], eax
call fcn.10187c40
cmp dword [0x10289da4], 0
movss dword [ebp - 4], xmm0
jne 0x1017d800
push str.RandomFloat
push str.vstdlib.dll
call edi
push eax
call esi
mov dword [0x10289da4], eax
sub esp, 8
mov dword [esp + 4], 0x3f000000
mov dword [esp], 0xbf000000
call dword [0x10289da4]
add esp, 8
cmp dword [0x10289da4], 0
fstp dword [ebp - 0xc]
jne 0x1017d83b
push str.RandomFloat
push str.vstdlib.dll
call edi
push eax
call esi
mov dword [0x10289da4], eax
sub esp, 8
mov dword [esp + 4], 0x3f000000
mov dword [esp], 0xbf000000
call dword [0x10289da4]
fstp dword [ebp - 8]
movss xmm0, dword [ebp - 8]
add esp, 8
cmp dword [0x10289da4], 0
addss xmm0, dword [ebp - 0xc]
movss dword [ebp - 0xc], xmm0
jne 0x1017d887
push str.RandomFloat
push str.vstdlib.dll
call edi
push eax
call esi
mov dword [0x10289da4], eax
sub esp, 8
mov dword [esp + 4], 0x3f000000
mov dword [esp], 0xbf000000
call dword [0x10289da4]
add esp, 8
cmp dword [0x10289da4], 0
fstp dword [ebp - 0x14]
jne 0x1017d8c2
push str.RandomFloat
push str.vstdlib.dll
call edi
push eax
call esi
mov dword [0x10289da4], eax
sub esp, 8
mov dword [esp + 4], 0x3f000000
mov dword [esp], 0xbf000000
call dword [0x10289da4]
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x38]
add esp, 8
mov ecx, esi
fstp dword [ebp - 8]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.1018b3e0
movss xmm3, dword [ebp - 4]
lea eax, [ebp - 0x2c]
xorps xmm3, xmmword [0x1022d820]
mulss xmm3, dword [ebp - 0xc]
push ecx
movss xmm0, dword [ebp - 0x44]
lea ecx, [ebp - 0x20]
movss xmm1, dword [ebp - 0x40]
movss xmm5, dword [ebp - 0x50]
movss xmm6, dword [ebp - 0x4c]
movss xmm2, dword [ebp - 0x3c]
movss xmm7, dword [ebp - 0x48]
mulss xmm0, xmm3
push eax
mulss xmm1, xmm3
addss xmm5, xmm0
mulss xmm2, xmm3
movss xmm0, dword [ebp - 8]
addss xmm6, xmm1
addss xmm0, dword [ebp - 0x14]
movss xmm1, dword [ebp - 4]
addss xmm7, xmm2
xorps xmm1, xmmword [0x1022d820]
movss xmm3, dword [ebp - 0x38]
movss xmm2, dword [ebp - 0x34]
mulss xmm0, xmm1
movss xmm1, dword [ebp - 0x30]
mulss xmm3, xmm0
mulss xmm2, xmm0
mulss xmm1, xmm0
addss xmm3, xmm5
addss xmm2, xmm6
addss xmm1, xmm7
movss dword [ebp - 0x20], xmm3
movss dword [ebp - 0x1c], xmm2
movss dword [ebp - 0x18], xmm1
call fcn.1018b740
push str._SPREAD__Compensated
push 0x1027d890
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
call fcn.1005ac80
mov ecx, dword [0x1027c61c]
add esp, 8
mov ecx, dword [ecx]
push dword [ecx + 0x18]
mov ecx, eax
call fcn.10059860
push eax
call fcn.1005aec0
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x1028a218
call fcn.1008f445
add esp, 4
cmp dword [0x1028a218], 0xffffffff
jne 0x1017d74c
push 0x1028a218
mov dword [0x1028a208], 0
call fcn.1008f3f4
add esp, 4
jmp 0x1017d74c