Function at 0x45c110
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x47cb58
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49a690]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
or ebp, 0xffffffff
xorps xmm0, xmm0
xor edi, edi
mov dword [esp + 0x38], 0
movq qword [esp + 0x3c], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], ebp
cmp eax, 0xffffffff
je 0x45c17f
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], eax
mov edi, 1
mov eax, dword [0x49a298]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x45c1cc
push eax
call ebx
test eax, eax
je 0x45c1cc
mov eax, dword [0x49a298]
cmp eax, 0xffffffff
jne 0x45c1a4
xor ecx, ecx
jmp 0x45c1ae
push eax
call ebx
mov ecx, eax
mov eax, dword [0x49a298]
cmp byte [ecx + 0x38], 0
je 0x45c1cc
mov dword [esp + 0x1c], edi
cmp eax, 0xffffffff
jne 0x45c1c1
xor eax, eax
jmp 0x45c1c4
push eax
call ebx
mov eax, dword [eax + 0x34]
mov dword [esp + edi*4 + 0x38], eax
inc edi
xor esi, esi
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x64]
and eax, dword [esp + 0x68]
mov dword [esp + 0x50], esi
cmp eax, 0xffffffff
je 0x45c28d
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x60]
call fcn.0045c7f0
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
je 0x45c28d
mov eax, 0xcccccccd
mul dword [esp + 0x2c]
shr edx, 4
mov ebx, 0x20
lea eax, [esp + 0x5c]
cmp edx, ebx
push eax
cmova ebx, edx
call fcn.0045bc70
mov ecx, dword [0x49f7fc]
add esp, 4
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
test ecx, ecx
jne 0x45c268
push str.SetWaitableTimerEx
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x45b720
test eax, eax
cmovne ecx, eax
mov dword [0x49f7fc], ecx
push ebx
push 0
push 0
push 0
push 0
lea eax, [esp + 0x3c]
push eax
push esi
call ecx
test eax, eax
setne al
test al, al
je 0x45c28d
mov ebp, edi
mov dword [esp + 0x20], edi
mov dword [esp + edi*4 + 0x38], esi
inc edi
cmp ebp, 0xffffffff
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
setne cl
mov byte [esp + 0x17], cl
mov byte [esp + 0x58], 0
xor ebx, ebx
or edx, 0xffffffff
test cl, cl
jne 0x45c2cf
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x60]
call fcn.0045c7f0
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov al, cl
mov dword [esp + 0x28], ecx
mov cl, byte [esp + 0x17]
mov byte [esp + 0x58], al
or edx, 0xffffffff
test edi, edi
je 0x45c333
push 0
test cl, cl
mov eax, ebx
cmovne eax, edx
push eax
push 0
lea eax, [esp + 0x44]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
cmp eax, edi
jae 0x45c33d
cmp eax, dword [esp + 0x18]
je 0x45c390
cmp eax, dword [esp + 0x1c]
je 0x45c35e
cmp eax, dword [esp + 0x20]
jne 0x45c33d
mov dword [esp + 0x50], 0xffffffff
test esi, esi
je 0x45c31d
cmp esi, 0xffffffff
je 0x45c31d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
test ebx, ebx
jne 0x45c33a
push ebx
jmp 0x45c33b
push ebx
call ebp
cmp byte [esp + 0x6c], 0
je 0x45c34e
add dword [esp + 0x64], 2
adc dword [esp + 0x68], 0xffffffff
cmp byte [esp + 0x58], 0
je 0x45c305
mov cl, byte [esp + 0x17]
jmp 0x45c2a4
mov eax, dword [0x49a298]
cmp eax, 0xffffffff
jne 0x45c36c
xor eax, eax
jmp 0x45c373
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x491104
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x60], 0
call fcn.0046092b
mov dword [esp + 0x50], 0xffffffff
test esi, esi
je 0x45c3a8
cmp esi, 0xffffffff
je 0x45c3a8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret