Function at 0x45b930
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x47dbc8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49b950]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov eax, dword [esp + 0x70]
xorps xmm0, xmm0
xor edi, edi
or ebp, 0xffffffff
mov dword [esp + 0x34], 0
movq qword [esp + 0x38], xmm0
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
cmp eax, 0xffffffff
je 0x45b993
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], eax
mov edi, 1
mov eax, dword [0x49b298]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0xffffffff
je 0x45b9e0
push eax
call ebx
test eax, eax
je 0x45b9e0
mov eax, dword [0x49b298]
cmp eax, 0xffffffff
jne 0x45b9b8
xor ecx, ecx
jmp 0x45b9c2
push eax
call ebx
mov ecx, eax
mov eax, dword [0x49b298]
cmp byte [ecx + 0x38], 0
je 0x45b9e0
mov dword [esp + 0x1c], edi
cmp eax, 0xffffffff
jne 0x45b9d5
xor eax, eax
jmp 0x45b9d8
push eax
call ebx
mov eax, dword [eax + 0x34]
mov dword [esp + edi*4 + 0x34], eax
inc edi
xor esi, esi
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x7c]
and eax, dword [esp + 0x80]
mov dword [esp + 0x68], esi
cmp eax, 0xffffffff
je 0x45bad7
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x78]
call fcn.0045bfa0
mov ebx, dword [esp + 0x28]
cmp ebx, 0x14
jbe 0x45ba67
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je 0x45bad7
lea eax, [esp + 0x74]
push eax
call fcn.0045b500
add esp, 4
mov dword [esp + 0x24], eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push esi
mov dword [esp + 0x40], edx
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
test eax, eax
setne al
test al, al
je 0x45bad7
mov ebp, edi
mov dword [esp + edi*4 + 0x34], esi
inc edi
jmp 0x45bad7
cmp byte [esp + 0x84], 0
jne 0x45bad7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x58]
push 0x42e1c0
push eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 0
mov byte [esp + 0x58], 1
call fcn.0042d9b0
movq xmm0, qword [esp + 0x48]
movq qword [esp + 0x7c], xmm0
movq xmm0, qword [esp + 0x50]
movq qword [esp + 0x84], xmm0
movq xmm0, qword [esp + 0x58]
movq qword [esp + 0x8c], xmm0
movq xmm0, qword [esp + 0x60]
add esp, 8
movq qword [esp + 0x8c], xmm0
cmp ebp, 0xffffffff
setne cl
mov byte [esp + 0x17], cl
mov byte [esp + 0x70], 0
xor ebx, ebx
or edx, 0xffffffff
test cl, cl
jne 0x45bb13
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x78]
call fcn.0045bfa0
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
mov al, cl
mov dword [esp + 0x24], ecx
mov cl, byte [esp + 0x17]
mov byte [esp + 0x70], al
or edx, 0xffffffff
test edi, edi
je 0x45bb73
test cl, cl
mov eax, ebx
cmovne eax, edx
push eax
push 0
lea eax, [esp + 0x3c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, edi
jae 0x45bb7a
cmp eax, dword [esp + 0x18]
je 0x45bbd3
cmp eax, dword [esp + 0x1c]
je 0x45bba1
cmp eax, ebp
jne 0x45bb7a
mov dword [esp + 0x68], 0xffffffff
test esi, esi
je 0x45bb5d
cmp esi, 0xffffffff
je 0x45bb5d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esp + 0x84], 0
je 0x45bb91
add dword [esp + 0x7c], 2
adc dword [esp + 0x80], 0xffffffff
cmp byte [esp + 0x70], 0
je 0x45bb45
mov cl, byte [esp + 0x17]
jmp 0x45bae8
mov eax, dword [0x49b298]
cmp eax, 0xffffffff
jne 0x45bbaf
xor eax, eax
jmp 0x45bbb6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x491f38
lea eax, [esp + 0x74]
push eax
mov byte [esp + 0x78], 0
call fcn.004604db
mov dword [esp + 0x68], 0xffffffff
test esi, esi
je 0x45bbeb
cmp esi, 0xffffffff
je 0x45bbeb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret