Function at 0x44e660
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4aa51d
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov dword [ebp], ebx
mov eax, dword [0x4e7ef0]
or edi, 0xffffffff
xor esi, esi
cmp eax, edi
je 0x44e730
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x44e730
push 0xb8
call fcn.0049c3ad
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x2c], ebx
je 0x44e6ca
mov ecx, eax
call fcn.00446ab0
mov esi, eax
jmp 0x44e6cc
xor esi, esi
mov eax, dword [0x4e7ef0]
push esi
push eax
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x44e6fa
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x14]
push 0x4ca180
push ecx
mov dword [esp + 0x1c], eax
call fcn.00483664
push 8
call fcn.0049c3ad
add esp, 4
mov edi, eax
push 0x4e7ef8
mov dword [edi], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x4e7ef4]
push 0x4e7ef8
mov dword [edi + 4], edx
mov dword [0x4e7ef4], edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
or edi, 0xffffffff
inc dword [esi + 4]
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x44e803
mov dword [ebp], 5
mov eax, dword [0x4e7ef0]
xor ebp, ebp
cmp eax, edi
mov dword [esp + 0x2c], edi
je 0x44e7f5
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov ebp, eax
cmp ebp, ebx
jne 0x44e7f5
push 0xb8
call fcn.0049c3ad
add esp, 4
mov dword [esp + 0x34], eax
cmp eax, ebx
mov dword [esp + 0x2c], 2
je 0x44e792
mov ecx, eax
call fcn.00446ab0
mov ebp, eax
jmp 0x44e794
xor ebp, ebp
mov eax, dword [0x4e7ef0]
push ebp
push eax
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x44e7c2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x34]
push 0x4ca180
push ecx
mov dword [esp + 0x3c], eax
call fcn.00483664
push 8
call fcn.0049c3ad
add esp, 4
mov esi, eax
push 0x4e7ef8
mov dword [esi], ebp
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x4e7ef4]
push 0x4e7ef8
mov dword [esi + 4], edx
mov dword [0x4e7ef4], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [ebp + 4]
dec eax
mov dword [ebp + 4], eax
xor eax, eax
jmp 0x44e9b9
mov ecx, dword [esp + 0x3c]
imul ecx, dword [esp + 0x38]
cmp ecx, ebx
jbe 0x44e825
mov esi, ecx
mov dl, byte [eax + 2]
mov cl, byte [eax]
mov byte [eax], dl
mov byte [eax + 2], cl
add eax, 3
dec esi
jne 0x44e812
or edi, 0xffffffff
mov eax, dword [0x4e7ef0]
xor esi, esi
cmp eax, edi
mov dword [esp + 0x2c], edi
mov ebp, 1
je 0x44e9b0
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x44e9b0
push 0xb8
call fcn.0049c3ad
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebx
mov dword [esp + 0x2c], 3
je 0x44e94d
lea eax, [esp + 0x34]
lea ecx, [esi + 0x34]
push eax
call fcn.00446bf0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2c], 4
push ecx
lea ecx, [esi + 0x44]
call fcn.00446bf0
lea edx, [esp + 0x38]
lea ecx, [esi + 0x88]
push edx
mov byte [esp + 0x30], 5
call fcn.00446bf0
lea eax, [esp + 0x13]
lea ecx, [esi + 0x98]
push eax
mov byte [esp + 0x30], 6
call fcn.00446bf0
mov byte [esp + 0x18], bl
mov word [esp + 0x1a], bx
mov edx, dword [esp + 0x18]
lea ecx, [esi + 0x28]
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], bx
mov eax, dword [esp + 0x1c]
mov dword [ecx], edx
mov dword [esi + 0x20], 0x33333333
mov dword [esi], ebx
mov dword [ecx + 4], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], 0x40073333
mov word [ecx + 8], bx
mov dword [esi + 0x54], ebp
mov dword [esi + 0x58], ebp
mov dword [esi + 0x5c], ebp
mov dword [esi + 0x60], ebp
mov dword [esi + 0x64], ebp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], ebp
mov dword [esi + 0x74], ebp
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebp
mov dword [esi + 0x80], ebp
mov dword [esi + 0x84], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov byte [esi + 0xb0], bl
mov dword [esi + 0xb4], ebx
jmp 0x44e94f
xor esi, esi
mov ecx, dword [0x4e7ef0]
push esi
push ecx
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x44e97e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edx, [esp + 0x14]
push 0x4ca180
push edx
mov dword [esp + 0x1c], eax
call fcn.00483664
push 8
call fcn.0049c3ad
add esp, 4
mov edi, eax
push 0x4e7ef8
mov dword [edi], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x4e7ef4]
push 0x4e7ef8
mov dword [edi + 4], eax
mov dword [0x4e7ef4], edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [esi + 4]
dec eax
mov dword [esi + 4], eax
mov eax, ebp
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0xc