Function at 0x4b04b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
movzx eax, word [ebp + 0x14]
push eax
call fcn.004ae690
pop ecx
mov word [ebp - 0x12], ax
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
pop edx
and eax, dword [0x69f96c]
and edx, dword [0x69f970]
mov dword [ebp - 0xc], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x20
call fcn.00534710
mov dword [ebp - 0x10], eax
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x7c], 0
je 0x4b054f
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx eax, word [eax + 0x80]
test eax, eax
jne 0x4b054f
push 0x7d87d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [0x7d87f0]
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [eax + 0x7c], 0
push 0x7d87f8
call fcn.0048dab0
pop ecx
push 0x7d87d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x7d87c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x1654], 0
je 0x4b057f
push 0x7d87c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0048d580
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [eax + 0x1658], 1
push 0x7d87c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [0x69f968]
push dword [0x69f964]
call fcn.00531ee0
jae 0x4b05dd
movzx eax, word [ebp - 0x12]
test eax, eax
jne 0x4b05dd
push dword [0x69f970]
mov eax, dword [0x69f96c]
pop edx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0x19
call fcn.004be030
pop ecx
jmp 0x4b0648
mov eax, dword [ebp + 8]
push eax
call fcn.004ae4c0
pop ecx
movzx edx, word [ebp - 0x12]
push edx
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp - 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
push 0x20
call fcn.00533bc0
mov ecx, dword [ebp - 0xc]
xor ebx, ebx
or eax, ecx
or edx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0
push dword [ebp - 4]
push dword [ebp - 8]
push dword [0x69f970]
push dword [0x69f96c]
call fcn.00531f10
jae 0x4b063d
mov ebx, 1
jmp 0x4b063f
xor ebx, ebx
push ebx
call fcn.004be070
add esp, 8
push dword [ebp - 4]
push dword [ebp - 8]
push dword [0x69f970]
push dword [0x69f96c]
call fcn.00531f30
jae 0x4b06a1
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004ae4c0
pop ecx
push 1
lea edx, [ebp - 0x10]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
xor edx, edx
push edx
push eax
push 0x20
call fcn.00533bc0
mov ecx, dword [ebp - 0xc]
xor ebx, ebx
or eax, ecx
or edx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0x7d87c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [eax + 0x1658], 0
push 0x7d87c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x7c], 0
jne 0x4b0744
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx eax, word [eax + 0x80]
test eax, eax
jne 0x4b0744
push 0x7d87d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x4b0717
push 0xffffffffffffffff
push 0x7d87d8
push 0x7d87f8
call fcn.0048db80
add esp, 0xc
mov eax, dword [0x7d87f4]
test eax, eax
jne 0x4b0703
inc dword [0x7d87f0]
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [eax + 0x7c], 1
push 0x7d87d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 4]
mov eax, dword [ebp - 8]
pop edx
pop ebx
mov esp, ebp
pop ebp
ret