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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44683d
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x45902c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x6c]
mov eax, dword [edx]
mov dword [ebp - 0x78], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x74], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x70], eax
lea eax, [edx + 0xc]
push eax
mov dword [edx + 4], 0
mov dword [edx + 8], 0
call fcn.00421c50
mov eax, dword [esi]
lea ebx, [esi + 4]
push dword [0x45d5b0]
mov esi, dword [ebx]
mov dword [ebp - 4], 0
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42195f
nop dword [eax]
cmp dword [eax], esi
je 0x421ad1
mov eax, dword [eax + 8]
test eax, eax
jne 0x421950
lea eax, [ebp - 0x78]
push eax
push 0x60
mov dword [ebp - 0x34], eax
call fcn.00419cf0
add esp, 8
mov edi, eax
mov dword [edi + 0x14], 0
lea ecx, [edi + 0x2c]
mov dword [edi + 0x18], fcn.00423fd0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov eax, dword [ebp - 0x78]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov eax, dword [ebp - 0x74]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x70]
mov dword [edi + 0x28], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
call fcn.00421c50
mov ecx, dword [ebp + 8]
push edi
push ebx
call fcn.00424660
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
test al, al
je 0x421a6f
mov eax, dword [ebx]
push dword [0x45d5b0]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x45d5b0]
mov dword [ebp - 0x24], eax
call esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [ebx]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 4
push eax
push edi
push ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0x459020
call fcn.00423fd0
add esp, 0x10
lea ecx, [ebp - 0x1c]
call fcn.004225e0
push dword [ebp - 0x20]
push dword [0x45d5b0]
call esi
mov esi, dword [ebp - 0x48]
or edi, 0xffffffff
test esi, esi
je 0x421a98
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x421a98
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x421a98
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x70]
test esi, esi
je 0x421abd
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x421abd
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x421abd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [eax + 4], 0
je 0x42195f
push 0
lea ecx, [ebp + 0xb]
call fcn.004222a0
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.00421180
add esp, 8
xchg dword [ebp + 8], eax
jmp 0x421a6f