Function at 0x4aa7f0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4d2418
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x506040]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x506040]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5c]
or ebp, 0xffffffff
xorps xmm0, xmm0
mov dword [esp + 0x28], 0xffffffff
xor edi, edi
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x20], ebp
movdqu xmmword [esp + 0x38], xmm0
cmp eax, 0xffffffff
je 0x4aa85a
mov dword [esp + 0x28], edi
mov edi, 1
mov dword [esp + 0x38], eax
mov eax, dword [0x506018]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x4aa8a7
push eax
call ebx
test eax, eax
je 0x4aa8a7
mov eax, dword [0x506018]
cmp eax, 0xffffffff
jne 0x4aa87f
xor ecx, ecx
jmp 0x4aa889
push eax
call ebx
mov ecx, eax
mov eax, dword [0x506018]
cmp byte [ecx + 0x38], 0
je 0x4aa8a7
mov dword [esp + 0x24], edi
cmp eax, 0xffffffff
jne 0x4aa89c
xor eax, eax
jmp 0x4aa89f
push eax
call ebx
mov eax, dword [eax + 0x34]
mov dword [esp + edi*4 + 0x38], eax
inc edi
xor esi, esi
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x68]
and eax, dword [esp + 0x6c]
mov dword [esp + 0x54], esi
cmp eax, 0xffffffff
je 0x4aa968
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x64]
call fcn.004ab030
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
je 0x4aa968
mov eax, 0xcccccccd
mov ebx, 0x20
mul dword [esp + 0x1c]
lea eax, [esp + 0x60]
shr edx, 4
cmp edx, ebx
push eax
cmova ebx, edx
call fcn.004aa390
mov ecx, dword [0x50ece4]
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
test ecx, ecx
jne 0x4aa943
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, 0x4a99f0
cmovne ecx, eax
mov dword [0x50ece4], ecx
push ebx
push 0
push 0
push 0
push 0
lea eax, [esp + 0x2c]
push eax
push esi
call ecx
test eax, eax
setne al
test al, al
je 0x4aa968
mov ebp, edi
mov dword [esp + 0x20], edi
mov dword [esp + edi*4 + 0x38], esi
inc edi
cmp ebp, 0xffffffff
mov byte [esp + 0x17], 0
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
setne cl
xor ebx, ebx
mov byte [esp + 0x16], cl
or edx, 0xffffffff
test cl, cl
jne 0x4aa9aa
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x64]
call fcn.004ab030
or edx, 0xffffffff
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov al, cl
mov dword [esp + 0x18], ecx
mov cl, byte [esp + 0x16]
mov byte [esp + 0x17], al
test edi, edi
je 0x4aaa19
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 0x4aaa23
cmp eax, dword [esp + 0x28]
je 0x4aaa76
cmp eax, dword [esp + 0x24]
je 0x4aaa44
cmp eax, dword [esp + 0x20]
jne 0x4aaa23
mov dword [esp + 0x54], 0xffffffff
test esi, esi
je 0x4aa9f8
cmp esi, 0xffffffff
je 0x4aa9f8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004ba66b
add esp, 0x44
ret
test ebx, ebx
jne 0x4aaa20
push ebx
jmp 0x4aaa21
push ebx
call ebp
cmp byte [esp + 0x70], 0
je 0x4aaa34
add dword [esp + 0x68], 2
adc dword [esp + 0x6c], 0xffffffff
cmp byte [esp + 0x17], 0
je 0x4aa9e0
mov cl, byte [esp + 0x16]
jmp 0x4aa97f
mov eax, dword [0x506018]
cmp eax, 0xffffffff
jne 0x4aaa52
xor eax, eax
jmp 0x4aaa59
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x4fe5ac
lea eax, [esp + 0x1a]
mov byte [esp + 0x1a], 0
push eax
call sub.MSVCR120.dll__CxxThrowException
mov dword [esp + 0x54], 0xffffffff
test esi, esi
je 0x4aaa8e
cmp esi, 0xffffffff
je 0x4aaa8e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4aa9fa