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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4aa79d
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
xor esi, esi
mov dword [ebp], ebx
mov eax, dword [0x4e7ef0]
cmp eax, 0xffffffff
push edi
je 0x452d9f
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x452d9f
push 0xb8
call fcn.0049c3ad
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x28], ebx
je 0x452d38
mov ecx, eax
call fcn.00446ab0
mov esi, eax
jmp 0x452d3a
xor esi, esi
mov eax, dword [0x4e7ef0]
push esi
push eax
mov dword [esp + 0x30], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x452d6c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x10]
push 0x4ca180
push ecx
mov dword [esp + 0x18], 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]
inc dword [esi + 4]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ebx
push eax
mov edi, 1
push ecx
push edx
mov dword [esp + 0x38], edi
call fcn.00446710
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x452eb2
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
push esi
push eax
mov ecx, ebp
call fcn.00453060
push esi
mov ebp, eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x4e7ef0]
or esi, 0xffffffff
xor edi, edi
cmp eax, esi
mov dword [esp + 0x28], esi
je 0x452ea4
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov edi, eax
cmp edi, ebx
jne 0x452ea4
push 0xb8
call fcn.0049c3ad
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov dword [esp + 0x28], 2
je 0x452e41
mov ecx, eax
call fcn.00446ab0
mov edi, eax
jmp 0x452e43
xor edi, edi
mov ecx, dword [0x4e7ef0]
push edi
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x452e72
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea edx, [esp + 0x3c]
push 0x4ca180
push edx
mov dword [esp + 0x44], eax
call fcn.00483664
push 8
call fcn.0049c3ad
add esp, 4
mov esi, eax
push 0x4e7ef8
mov dword [esi], edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x4e7ef4]
push 0x4e7ef8
mov dword [esi + 4], eax
mov dword [0x4e7ef4], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [edi + 4]
dec eax
mov dword [edi + 4], eax
mov eax, ebp
jmp 0x453045
mov eax, dword [0x4e7ef0]
or ebp, 0xffffffff
xor esi, esi
cmp eax, ebp
mov dword [esp + 0x28], ebp
je 0x45303c
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x45303c
push 0xb8
call fcn.0049c3ad
mov esi, eax
add esp, 4
mov dword [esp + 0x48], esi
cmp esi, ebx
mov dword [esp + 0x28], 3
je 0x452fd8
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esi + 0x34]
call fcn.00446bf0
lea edx, [esp + 0x38]
lea ecx, [esi + 0x44]
push edx
mov byte [esp + 0x2c], 4
call fcn.00446bf0
lea eax, [esp + 0x34]
lea ecx, [esi + 0x88]
push eax
mov byte [esp + 0x2c], 5
call fcn.00446bf0
lea ecx, [esp + 0x48]
mov byte [esp + 0x28], 6
push ecx
lea ecx, [esi + 0x98]
call fcn.00446bf0
mov byte [esp + 0x14], bl
mov word [esp + 0x16], bx
mov eax, dword [esp + 0x14]
lea edx, [esi + 0x28]
mov word [esp + 0x18], bx
mov word [esp + 0x1a], bx
mov ecx, dword [esp + 0x18]
mov dword [edx], eax
mov dword [esi + 0x20], 0x33333333
mov dword [esi], ebx
mov dword [edx + 4], ecx
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], 0x40073333
mov word [edx + 8], bx
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
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 0x452fda
xor esi, esi
mov edx, dword [0x4e7ef0]
push esi
push edx
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x453009
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x44]
push 0x4ca180
push 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 ecx, dword [0x4e7ef4]
push 0x4e7ef8
mov dword [edi + 4], ecx
mov dword [0x4e7ef4], edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov eax, dword [esi + 4]
dec eax
mov dword [esi + 4], eax
xor eax, eax
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret 0x1c