Function at 0x4cdbd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54ec0d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
cmp ecx, 0xffffffff
movq qword [ebp - 0x54], xmm0
mov eax, dword [ebp - 0x54]
cmovne eax, ecx
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x54], eax
xor eax, eax
cmp ecx, 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
push esi
setne al
mov dword [ebp - 0x10], 0xffffffff
dec eax
mov dword [ebp - 0x20], eax
xor eax, eax
cmp ecx, 0xffffffff
mov ecx, dword [0x5cc61c]
push edi
setne al
mov dword [ebp + 8], eax
cmp ecx, 0xffffffff
jne 0x4cdc42
mov edi, eax
mov dword [ebp - 0x14], edi
jmp 0x4cdca3
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ecx
call edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], esi
test eax, eax
je 0x4cdca1
mov eax, dword [0x5cc61c]
cmp eax, 0xffffffff
jne 0x4cdc63
xor ecx, ecx
jmp 0x4cdc6d
push eax
call edi
mov ecx, eax
mov eax, dword [0x5cc61c]
cmp byte [ecx + 0x38], 0
mov dword [ebp - 0x14], esi
je 0x4cdca1
mov dword [ebp - 0x18], esi
cmp eax, 0xffffffff
jne 0x4cdc8f
xor eax, eax
lea edi, [esi + 1]
mov dword [ebp - 0x14], edi
mov eax, dword [eax + 0x34]
mov dword [ebp + esi*4 - 0x54], eax
jmp 0x4cdca3
push eax
call edi
lea edi, [esi + 1]
mov dword [ebp - 0x14], edi
mov eax, dword [eax + 0x34]
mov dword [ebp + esi*4 - 0x54], eax
jmp 0x4cdca3
mov edi, esi
xor esi, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp + 0x14]
and eax, dword [ebp + 0x18]
mov dword [ebp - 4], esi
cmp eax, 0xffffffff
je 0x4cdd34
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp + 0xc]
call fcn.004ce550
mov eax, dword [ebp - 0x34]
cmp eax, 0x14
jbe 0x4cdd14
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4cdd34
lea eax, [ebp + 0xc]
push eax
call fcn.004cd950
add esp, 4
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], edx
push 0
push 0
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
test eax, eax
je 0x4cdd34
mov edx, edi
mov dword [ebp + edi*4 - 0x54], esi
inc edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edi
jmp 0x4cdd37
cmp byte [ebp + 0x1c], 0
jne 0x4cdd34
push 0
push eax
lea ecx, [ebp - 0x74]
call fcn.004ccba0
movups xmm0, xmmword [eax]
movups xmmword [ebp + 0xc], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp + 0x1c], xmm0
or edx, 0xffffffff
mov byte [ebp + 0xb], 0
xor edi, edi
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
cmp edx, 0xffffffff
jne 0x4cde38
mov eax, dword [ebp + 0x14]
and eax, dword [ebp + 0x18]
cmp eax, edx
jne 0x4cdd61
mov byte [ebp - 0x28], 1
lea edi, [edx - 1]
jmp 0x4cde2a
cmp byte [ebp + 0x1c], 0
je 0x4cddd3
mov ecx, dword [0x7c2744]
test ecx, ecx
jne 0x4cdd98
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, 0x4cd180
cmovne ecx, eax
mov dword [0x7c2744], ecx
call ecx
sub eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
sbb edx, dword [ebp + 0x10]
cmp edx, ecx
ja 0x4cddc6
mov edi, dword [ebp + 0x14]
jb 0x4cddb0
cmp eax, edi
jae 0x4cddc6
sub edi, eax
sbb ecx, edx
jne 0x4cddbb
cmp edi, 0xfffffffe
jbe 0x4cde23
mov byte [ebp - 0x28], 1
mov edi, 0xfffffffe
jmp 0x4cde27
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov edi, dword [ebp - 0x38]
jmp 0x4cde23
lea eax, [ebp - 0x30]
push fcn.004ceda0
push eax
call fcn.0043eed0
mov eax, dword [ebp - 0x2c]
add esp, 8
cmp eax, dword [ebp + 0x28]
jg 0x4cde21
jl 0x4cddf6
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 0x24]
jae 0x4cde21
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0x24]
call fcn.0043cbc0
push 0
push 0x3e8
push dword [eax + 4]
push dword [eax]
call fcn.00514120
mov edi, eax
add edi, 1
adc edx, 0
jmp 0x4cddb4
xor edi, edi
mov byte [ebp - 0x28], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov byte [ebp + 0xb], al
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4cde94
cmp edx, 0xffffffff
mov eax, edi
push 0
mov edx, 0xffffffff
cmovne eax, edx
push eax
push 0
lea eax, [ebp - 0x54]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
cmp eax, dword [ebp - 0x14]
jae 0x4cde9e
cmp eax, dword [ebp - 0x20]
je 0x4cdeba
cmp eax, dword [ebp - 0x18]
je 0x4cdedc
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x4cdea1
test esi, esi
je 0x4cde82
cmp esi, 0xffffffff
je 0x4cde82
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x4cde9b
push edi
jmp 0x4cde9c
push edi
call eax
mov edx, dword [ebp - 0x10]
cmp byte [ebp + 0x1c], 0
je 0x4cdeaf
add dword [ebp + 0x14], 2
adc dword [ebp + 0x18], 0xffffffff
cmp byte [ebp + 0xb], 0
je 0x4cde72
jmp 0x4cdd3d
test esi, esi
je 0x4cdeca
cmp esi, 0xffffffff
je 0x4cdeca
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004cd930
lea ecx, [eax + 0x34]
call fcn.00417320
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x5c7db0
lea eax, [ebp + 0xb]
push eax
call fcn.00518295
int3