Function at 0x10129130
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017b9a8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101c6270]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
xor edi, edi
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0x28], 0xffffffff
movups xmmword [ebp - 0x20], xmm0
cmp eax, 0xffffffff
je 0x1012918b
mov dword [ebp - 0x38], edi
mov edi, 1
mov dword [ebp - 0x20], eax
mov eax, dword [0x101c6334]
cmp eax, 0xffffffff
je 0x101291d7
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x101291d7
mov eax, dword [0x101c6334]
cmp eax, 0xffffffff
jne 0x101291b0
xor ecx, ecx
jmp 0x101291ba
push eax
call esi
mov ecx, eax
mov eax, dword [0x101c6334]
cmp byte [ecx + 0x38], 0
je 0x101291d7
mov dword [ebp - 0x3c], edi
cmp eax, 0xffffffff
jne 0x101291cc
xor eax, eax
jmp 0x101291cf
push eax
call esi
mov eax, dword [eax + 0x34]
mov dword [ebp + edi*4 - 0x20], eax
inc edi
xor esi, esi
mov dword [ebp - 0x40], esi
mov eax, dword [ebp + 0x14]
and eax, dword [ebp + 0x18]
mov dword [ebp - 4], esi
cmp eax, 0xffffffff
je 0x10129292
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp + 0xc]
call fcn.10129450
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, eax
mov dword [ebp - 0x40], esi
test esi, esi
je 0x10129292
mov eax, 0xcccccccd
mov ecx, 0x20
mul dword [ebp - 0x30]
lea eax, [ebp + 0xc]
shr edx, 4
cmp edx, ecx
push eax
cmova ecx, edx
mov dword [ebp - 0x2c], ecx
call fcn.10128da0
mov ecx, dword [0x101cf0fc]
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
test ecx, ecx
jne 0x1012926b
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, 0x101282c0
cmovne ecx, eax
mov dword [0x101cf0fc], ecx
push dword [ebp - 0x2c]
lea eax, [ebp - 0x34]
push 0
push 0
push 0
push 0
push eax
push esi
call ecx
test eax, eax
setne al
test al, al
je 0x10129292
mov ecx, edi
mov dword [ebp + edi*4 - 0x20], esi
mov dword [ebp - 0x28], ecx
inc edi
jmp 0x10129295
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x2c], eax
mov edx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp ecx, 0xffffffff
jne 0x101292cc
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0xc]
call fcn.10129450
mov edx, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 0x21], cl
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
test edi, edi
je 0x10129309
cmp ecx, 0xffffffff
mov ecx, 0xffffffff
push 0
cmovne eax, ecx
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
cmp eax, edi
jae 0x10129313
cmp eax, dword [ebp - 0x38]
je 0x10129354
cmp eax, dword [ebp - 0x3c]
je 0x10129332
mov ecx, dword [ebp - 0x28]
cmp eax, ecx
jne 0x10129316
mov dword [ebp - 4], 2
jmp 0x10129376
test eax, eax
jne 0x10129310
push eax
jmp 0x10129311
push eax
call edx
mov ecx, dword [ebp - 0x28]
cmp byte [ebp + 0x1c], 0
je 0x10129324
add dword [ebp + 0x14], 2
adc dword [ebp + 0x18], 0xffffffff
cmp byte [ebp - 0x21], 0
je 0x1012936f
mov eax, dword [ebp - 0x2c]
jmp 0x1012929e
call fcn.10128d80
lea ecx, [eax + 0x34]
call fcn.1002fc70
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x101c0b44
lea eax, [ebp - 0x21]
push eax
call fcn.1012b92c
mov dword [ebp - 4], 1
test esi, esi
je 0x1012936b
cmp esi, 0xffffffff
je 0x1012936b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x10129388
mov dword [ebp - 4], 3
test esi, esi
je 0x10129386
cmp esi, 0xffffffff
je 0x10129386
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010f54f
mov esp, ebp
pop ebp
ret