Function at 0x4a4b80
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor ebx, ebx
push ebx
push ebx
call sub.msvcrt.dll__controlfp
push 0x8001f
push 0xffffffffffffffff
mov dword [ebp - 4], eax
call sub.msvcrt.dll__controlfp
push 0x30000
push ebx
call sub.msvcrt.dll__controlfp
mov eax, dword [0x551d48]
add esp, 0x18
cmp eax, ebx
jge 0x4a4bbc
xor eax, eax
jmp 0x4a4bc3
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x30]
push edx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
add esp, 4
push 0x38
lea edx, [esi + 0x38]
push ebx
push edx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x188], bl
mov byte [esi + 0x189], bl
mov byte [esi + 0x18a], bl
mov byte [esi + 0x18b], bl
mov byte [esi + 0x18d], 1
mov byte [esi + 0x18c], bl
mov dword [esi + 0x190], ebx
mov dword [esi + 0x194], ebx
mov dword [esi + 0x198], ebx
mov dword [esi + 0x19c], ebx
mov dword [esi + 0x1a0], ebx
mov dword [esi + 0x1a4], ebx
mov dword [esi + 0x1a8], ebx
mov dword [esi + 0x1ac], ebx
mov dword [esi + 0x1b0], ebx
mov dword [esi + 0x1b4], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0xcc
lea eax, [esi + 0x70]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
test byte [esi + 0x20], 1
mov dword [esi + 0x13c], ebx
mov dword [esi + 0x140], ebx
mov dword [esi + 0x144], ebx
mov dword [esi + 0x148], ebx
mov dword [esi + 0x14c], ebx
mov dword [esi + 0x158], ebx
mov dword [esi + 0x154], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
je 0x4a4cb3
mov byte [esi + 0x18c], 1
mov ecx, dword [esi + 0x24]
push 0xc
mov dword [ebp + 0x10], ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x4a4d63
mov ecx, dword [ebp + 0x10]
mov edx, 1
mov dword [eax + 4], ebx
mov dword [eax], edx
mov dword [eax + 8], edx
mov ebx, dword [ecx + 0x688]
mov dword [eax + 4], ebx
mov ebx, esi
mov dword [ecx + 0x688], eax
mov dword [ecx + 0x8c8], edx
call fcn.004e37b0
mov dword [ebp + 0x10], eax
test eax, eax
jl 0x4a4dd5
mov ecx, esi
call fcn.004dd960
test eax, eax
je 0x4a4d14
mov byte [esi + 0x189], 1
mov edx, dword [esi + 0x24]
push 0
push edx
call fcn.00535be0
mov dword [ebp + 0x10], eax
test eax, eax
jl 0x4a4dd5
cmp byte [esi + 0x189], 0
jne 0x4a4dd5
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 0x1ac]
mov ecx, dword [esi + 0x24]
add eax, eax
add eax, eax
push 8
push eax
add ecx, 0x30
call fcn.00547721
mov dword [edi + 4], eax
test eax, eax
jne 0x4a4d6c
mov dword [ebp + 0x10], 0x8007000e
jmp 0x4a4dd5
mov dword [ebp + 0x10], 0x8007000e
jmp 0x4a4dd7
mov ecx, dword [esi + 0x1ac]
mov edx, dword [esi + 0x30]
add ecx, ecx
add ecx, ecx
push ecx
push edx
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 0x194]
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x198]
mov dword [edi + 0xc], ecx
mov edx, dword [esi + 0x19c]
mov dword [edi + 0x10], edx
mov eax, dword [esi + 0x1a0]
mov dword [edi + 0x14], eax
mov ecx, dword [esi + 0x1a8]
mov dword [edi + 0x18], ecx
mov edx, dword [esi + 0x1a4]
mov dword [edi + 0x1c], edx
mov eax, dword [esi + 0x190]
mov dword [edi + 0x20], eax
mov ecx, dword [esi + 0x1ac]
mov dword [edi + 0x24], ecx
mov edx, dword [esi + 0x1b4]
add esp, 0xc
mov dword [edi + 0x28], edx
xor ebx, ebx
call sub.msvcrt.dll__clearfp
mov eax, dword [ebp - 4]
push 0xb001f
push eax
call sub.msvcrt.dll__controlfp
mov eax, dword [ebp + 0x10]
add esp, 8
cmp eax, ebx
jl 0x4a4e04
movzx eax, byte [esi + 0x189]
neg eax
sbb eax, eax
and eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 0xc