Function at 0x4cfc00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x591430]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
cmp ecx, 0xffffffff
movd eax, xmm0
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x40], 0xffffffff
cmovne eax, ecx
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x20], eax
xor eax, eax
cmp ecx, 0xffffffff
setne al
dec eax
mov dword [ebp - 0x50], eax
xor eax, eax
cmp ecx, 0xffffffff
mov ecx, dword [0x591718]
setne al
mov dword [ebp - 0x2c], eax
cmp ecx, 0xffffffff
jne 0x4cfc75
mov edi, eax
jmp 0x4cfcca
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [ebp - 0x2c]
mov edi, esi
mov dword [ebp - 0x2c], edi
test eax, eax
je 0x4cfccd
mov eax, dword [0x591718]
cmp eax, 0xffffffff
jne 0x4cfc96
xor ecx, ecx
jmp 0x4cfca4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [0x591718]
cmp byte [ecx + 0x38], 0
mov dword [ebp - 0x2c], edi
je 0x4cfccd
mov dword [ebp - 0x40], esi
cmp eax, 0xffffffff
jne 0x4cfcb9
xor eax, eax
jmp 0x4cfcc0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 0x34]
lea edi, [esi + 1]
mov dword [ebp + esi*4 - 0x20], eax
mov dword [ebp - 0x2c], edi
xor esi, esi
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp + 0x14]
and eax, dword [ebp + 0x18]
mov dword [ebp - 4], esi
cmp eax, 0xffffffff
je 0x4cfd86
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0xc]
call fcn.004d04c0
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, eax
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x4cfd86
mov eax, 0xcccccccd
mov ecx, 0x20
mul dword [ebp - 0x44]
lea eax, [ebp + 0xc]
shr edx, 4
cmp edx, ecx
push eax
cmova ecx, edx
mov dword [ebp - 0x30], ecx
call fcn.004cf8f0
mov ecx, dword [0x59ac6c]
add esp, 4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
test ecx, ecx
jne 0x4cfd61
push str.SetWaitableTimerEx
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov ecx, 0x4cf240
cmovne ecx, eax
mov dword [0x59ac6c], ecx
push dword [ebp - 0x30]
lea eax, [ebp - 0x3c]
push 0
push 0
push 0
push 0
push eax
push esi
call ecx
test eax, eax
je 0x4cfd86
mov edx, edi
mov dword [ebp + edi*4 - 0x20], esi
inc edi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edi
jmp 0x4cfd89
or edx, 0xffffffff
mov cl, byte [ebp + 0x1c]
xor edi, edi
mov byte [ebp - 0x21], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
cmp edx, 0xffffffff
jne 0x4cfe24
mov eax, dword [ebp + 0x14]
and eax, dword [ebp + 0x18]
cmp eax, edx
je 0x4cfe0d
test cl, cl
je 0x4cfe92
mov ecx, dword [0x595e18]
test ecx, ecx
jne 0x4cfde3
push str.GetTickCount64
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov ecx, 0x43d440
cmovne ecx, eax
mov dword [0x595e18], ecx
call ecx
sub eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
sbb edx, dword [ebp + 0x10]
cmp edx, ecx
ja 0x4cfe7e
mov edi, dword [ebp + 0x14]
jb 0x4cfdff
cmp eax, edi
jae 0x4cfe7e
sub edi, eax
sbb ecx, edx
jne 0x4cfe0a
cmp edi, 0xfffffffe
jbe 0x4cfe89
mov edx, dword [ebp - 0x28]
mov byte [ebp - 0x34], 1
mov edi, 0xfffffffe
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x21], al
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4cff07
cmp edx, 0xffffffff
mov eax, edi
push 0
mov edx, 0xffffffff
cmovne eax, edx
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
cmp eax, dword [ebp - 0x2c]
jae 0x4cff11
cmp eax, dword [ebp - 0x50]
je 0x4cff83
cmp eax, dword [ebp - 0x40]
je 0x4cff61
mov edx, dword [ebp - 0x28]
cmp eax, edx
jne 0x4cff14
mov dword [ebp - 4], 2
jmp 0x4cff34
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x28]
mov byte [ebp - 0x34], 0
jmp 0x4cfe16
lea eax, [ebp - 0x3c]
push 0x418630
push eax
call fcn.00416780
mov eax, dword [ebp - 0x38]
add esp, 8
cmp eax, dword [ebp + 0x28]
jl 0x4cfec3
jg 0x4cfeb5
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp + 0x24]
jb 0x4cfec3
mov edx, dword [ebp - 0x28]
xor edi, edi
mov byte [ebp - 0x34], 0
jmp 0x4cfe16
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp + 0x24]
call fcn.0040f990
push 0
push 0x3e8
push dword [eax + 4]
push dword [eax]
call fcn.004b7ff0
mov edi, eax
add edi, 1
adc edx, 0
jne 0x4cfe0a
cmp edi, 0xfffffffe
ja 0x4cfe0a
mov edx, dword [ebp - 0x28]
mov byte [ebp - 0x34], 0
jmp 0x4cfe16
test edi, edi
jne 0x4cff0e
push edi
jmp 0x4cff0f
push edi
call eax
mov edx, dword [ebp - 0x28]
mov cl, byte [ebp + 0x1c]
test cl, cl
je 0x4cff23
add dword [ebp + 0x14], 2
adc dword [ebp + 0x18], 0xffffffff
cmp byte [ebp - 0x21], 0
jne 0x4cfd92
mov dword [ebp - 4], 3
test esi, esi
je 0x4cff44
cmp esi, 0xffffffff
je 0x4cff44
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b7be0
mov esp, ebp
pop ebp
ret
call fcn.004cf8d0
lea ecx, [eax + 0x34]
call fcn.0043d330
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x568a60
lea eax, [ebp - 0x21]
push eax
call fcn.004d1356
mov dword [ebp - 4], 1
test esi, esi
je 0x4cff9a
cmp esi, 0xffffffff
je 0x4cff9a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4cff46