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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51ab80
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5c5c30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebp + 8], 0
je 0x47340d
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0xc]
jl 0x473421
push 0x10f
push 0x555d78
call fcn.0045b590
test eax, eax
je 0x473421
int3
mov ecx, dword [ebp - 0x24]
cmp dword [ecx + 0x10], 0
jne 0x47343e
push 0x110
push 0x555db0
call fcn.0045b590
test eax, eax
je 0x47343e
int3
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + edx*8]
and eax, 1
jne 0x473463
push 0x111
push 0x555de8
call fcn.0045b590
test eax, eax
je 0x473463
int3
cmp dword [ebp + 8], 0
jle 0x473474
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0xc]
jl 0x473486
mov ecx, dword [ebp - 0x24]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x47367e
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4734b4
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 8]
jl 0x473626
cmp dword [ebp + 0xc], 0
je 0x473626
cmp dword [ebp - 0x14], 0
jne 0x473573
mov dword [ebp - 4], 0
push 0x10
call fcn.00472f10
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4734e8
mov ecx, dword [ebp - 0x20]
call fcn.00473d20
mov dword [ebp - 0x2c], eax
jmp 0x4734ef
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], ecx
jmp 0x47353f
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x14]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0x14
call fcn.0045d550
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0xc], 0
jne 0x47359b
push 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.00433060
add esp, 8
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x18], eax
jmp 0x4735bf
push 2
push 4
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xc]
push eax
call fcn.00433060
add esp, 8
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4735d7
mov eax, dword [ebp - 0x24]
add eax, 0x1c
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00431cf0
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + 0xc]
sub edx, dword [ecx + 8]
shl edx, 2
push edx
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
lea ecx, [eax + ecx*4]
push ecx
call fcn.004db5b0
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xc]
mov dword [edx + 8], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, dword [ebp - 0x14]
cmp dword [edx + 0xc], 0
je 0x47363a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 8]
jl 0x47364e
push 0x142
push 0x555e58
call fcn.0045b590
test eax, eax
je 0x47364e
int3
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0xc], 0
je 0x473671
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 8]
jge 0x473671
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8