Function at 0x4676b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8618
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x4f2d80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
or edi, 0xffffffff
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], edi
cmp eax, edi
je 0x467701
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x38], eax
lea ebx, [edi + 2]
mov eax, dword [0x4f2074]
cmp eax, edi
je 0x46774a
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x46774a
mov ecx, dword [0x4f2074]
cmp ecx, edi
jne 0x467725
xor eax, eax
jmp 0x46772e
push ecx
call esi
mov ecx, dword [0x4f2074]
cmp byte [eax + 0x48], 0
je 0x46774a
mov dword [ebp - 0x1c], ebx
cmp ecx, edi
jne 0x46773f
xor eax, eax
jmp 0x467742
push ecx
call esi
mov eax, dword [eax + 0x44]
mov dword [ebp + ebx*4 - 0x38], eax
inc ebx
xor edi, edi
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0x14]
and eax, dword [ebp + 0x18]
mov dword [ebp - 4], edi
cmp eax, 0xffffffff
je 0x4677ff
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp + 0xc]
call fcn.004670f0
mov esi, dword [ebp - 0x20]
cmp esi, 0x14
jbe 0x4677c1
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
push eax
lea ecx, [ebp - 0x10]
call fcn.00414030
cmp dword [ebp - 0x10], edi
je 0x4677fc
lea edx, [ebp + 0xc]
push edx
call fcn.004674a0
mov ecx, dword [ebp - 0x10]
add esp, 4
push edi
push edi
push edi
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 0x24]
push eax
push ecx
mov dword [ebp - 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
test eax, eax
je 0x4677fc
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ebx
mov dword [ebp + ebx*4 - 0x38], edx
inc ebx
jmp 0x4677fc
cmp byte [ebp + 0x1c], 0
jne 0x4677ff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x40]
push 0x412570
push eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x48], 1
call fcn.00412b50
mov ecx, 8
lea esi, [ebp - 0x58]
lea edi, [ebp + 0xc]
add esp, 8
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 0x14], 0xffffffff
mov byte [ebp - 0x24], 0
setne byte [ebp + 0xb]
xor esi, esi
lea ecx, [ecx]
cmp byte [ebp + 0xb], 0
jne 0x46782a
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp + 0xc]
call fcn.004670f0
mov edx, dword [eax]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], edx
test ebx, ebx
je 0x46789f
cmp byte [ebp + 0xb], 0
je 0x467839
or eax, 0xffffffff
jmp 0x46783b
mov eax, esi
push eax
push 0
lea eax, [ebp - 0x38]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, ebx
jae 0x4678a6
cmp eax, dword [ebp - 0x18]
je 0x4678c0
cmp eax, dword [ebp - 0x1c]
je 0x4678ff
cmp eax, dword [ebp - 0x14]
jne 0x4678a6
test edi, edi
je 0x46788b
cmp edi, 0xffffffff
je 0x46788b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46788b
push 0x113
push str.d:CB11XMainQImportsOpen_boost_boost_thread_win32_thread_primitives.hpp
push 0x4d832c
call fcn.00496397
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp + 0x1c], 0
je 0x4678b4
add dword [ebp + 0x14], 2
adc dword [ebp + 0x18], 0xffffffff
cmp byte [ebp - 0x24], 0
jne 0x467810
jmp 0x467860
test edi, edi
je 0x4678eb
cmp edi, 0xffffffff
je 0x4678eb
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4678eb
push 0x113
push str.d:CB11XMainQImportsOpen_boost_boost_thread_win32_thread_primitives.hpp
push 0x4d832c
call fcn.00496397
add esp, 0xc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4f2074]
cmp eax, 0xffffffff
jne 0x46790d
xor eax, eax
jmp 0x467914
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x4e9524
lea edx, [ebp + 0xb]
xor al, al
push edx
mov byte [ebp + 0xb], al
call fcn.0049332a
int3