Function at 0x4a75c0
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4ced98
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x503040]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x503040]
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 0x4a762a
mov dword [esp + 0x28], edi
mov edi, 1
mov dword [esp + 0x38], eax
mov eax, dword [0x503018]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x4a7677
push eax
call ebx
test eax, eax
je 0x4a7677
mov eax, dword [0x503018]
cmp eax, 0xffffffff
jne 0x4a764f
xor ecx, ecx
jmp 0x4a7659
push eax
call ebx
mov ecx, eax
mov eax, dword [0x503018]
cmp byte [ecx + 0x38], 0
je 0x4a7677
mov dword [esp + 0x24], edi
cmp eax, 0xffffffff
jne 0x4a766c
xor eax, eax
jmp 0x4a766f
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 0x4a7738
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x64]
call fcn.004a7e00
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 0x4a7738
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.004a7160
mov ecx, dword [0x50bb04]
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
test ecx, ecx
jne 0x4a7713
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, 0x4a6770
cmovne ecx, eax
mov dword [0x50bb04], 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 0x4a7738
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 0x4a777a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x64]
call fcn.004a7e00
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 0x4a77e9
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 0x4a77f3
cmp eax, dword [esp + 0x28]
je 0x4a7846
cmp eax, dword [esp + 0x24]
je 0x4a7814
cmp eax, dword [esp + 0x20]
jne 0x4a77f3
mov dword [esp + 0x54], 0xffffffff
test esi, esi
je 0x4a77c8
cmp esi, 0xffffffff
je 0x4a77c8
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.004b73db
add esp, 0x44
ret
test ebx, ebx
jne 0x4a77f0
push ebx
jmp 0x4a77f1
push ebx
call ebp
cmp byte [esp + 0x70], 0
je 0x4a7804
add dword [esp + 0x68], 2
adc dword [esp + 0x6c], 0xffffffff
cmp byte [esp + 0x17], 0
je 0x4a77b0
mov cl, byte [esp + 0x16]
jmp 0x4a774f
mov eax, dword [0x503018]
cmp eax, 0xffffffff
jne 0x4a7822
xor eax, eax
jmp 0x4a7829
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x4fad3c
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 0x4a785e
cmp esi, 0xffffffff
je 0x4a785e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4a77ca