Function at 0x4e8db0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x44
test al, al
fld dword [esp + 0x48]
fdiv dword [edi + 0x30]
push ebx
push ebp
push esi
mov dword [esp + 0x54], 0
fstp dword [esp + 0x10]
fld dword [esp + 0x58]
fdiv dword [edi + 0x34]
fstp dword [esp + 0x58]
jne 0x4e8de0
mov dword [esp + 0x54], 0xff7fffff
mov ecx, dword [edi + 0x58]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x24], eax
jle 0x4e8fef
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
lea esp, [esp]
mov ecx, dword [esp + 0x14]
mov ebp, dword [edi + 4]
mov eax, dword [esp + 0x18]
mov esi, dword [edi + 8]
fld dword [esi + eax + 0x2a8]
add ebp, ecx
mov ecx, dword [ebp + 0x70]
fild dword [ebp + 0x70]
add esi, eax
test ecx, ecx
mov eax, dword [esi + 0x2a4]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
jge 0x4e8e37
fadd dword [0x715568]
fsub dword [0x70deb0]
fmul dword [ebp + 0x88]
fsubr st(1)
fcomp dword [esp + 0x58]
fnstsw ax
test ah, 0x41
jp 0x4e8fbd
fld dword [esp + 0x58]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 0x41
jp 0x4e8fbf
fld dword [esp + 0x10]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 1
jne 0x4e8fbf
mov edx, dword [ebp + 0x6c]
fild dword [ebp + 0x6c]
test edx, edx
jge 0x4e8e8a
fadd dword [0x715568]
fsub dword [0x70deb0]
fmul dword [ebp + 0x84]
fadd dword [esp + 0x1c]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
jne 0x4e8fbf
mov al, byte [ebp + 0xa0]
test al, al
jne 0x4e8f62
jmp 0x4e8ec0
mov al, byte [esp + 0x5c]
test al, al
je 0x4e8f58
mov eax, dword [0x728c28]
cmp eax, 0xffffffff
mov esi, dword [edi + 0x88]
mov ebx, dword [esi + 0xc0]
je 0x4e8ef9
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4e8ef9
or edx, 0xffffffff
mov ecx, ebx
call fcn.004fc390
jmp 0x4e8f02
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0xc0]
push eax
mov dword [esi + 0x70], 0
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [edi + 0x88]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], 0
call fcn.005174e0
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [ebp + 0xa0]
test al, al
mov esi, dword [esp + 0x20]
je 0x4e8ec0
mov al, byte [ebp + 0xa0]
test al, al
je 0x4e8fbf
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x44]
mov dword [esp + 0x38], ecx
push eax
lea ecx, [esp + 0x3c]
mov eax, ebp
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 0
call fcn.00514750
fld dword [esi + 0x290]
fmul dword [edi + 0x44]
fsubp st(1)
fcom dword [esp + 0x54]
fnstsw ax
test ah, 0x41
jne 0x4e8fbd
mov edx, dword [esp + 0x44]
fstp dword [esp + 0x54]
mov eax, dword [esp + 0x48]
lea ecx, [edi + 0x6c]
mov dword [ecx], edx
mov edx, dword [esp + 0x4c]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
jmp 0x4e8fbf
fstp st(0)
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [edi + 0x58]
inc eax
add esi, 0x124
add edx, 0x2cc
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
jl 0x4e8e00
fld dword [esp + 0x54]
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0xc