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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44673d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
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]
mov eax, dword [edx]
mov dword [ebp - 0x54], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x50], eax
mov eax, dword [edx + 8]
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
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 0x421324
cmp dword [eax], esi
je 0x421484
mov eax, dword [eax + 8]
test eax, eax
jne 0x421315
lea eax, [ebp - 0x54]
push eax
push 0x3c
mov dword [ebp - 0x34], eax
call fcn.00419cf0
add esp, 8
mov edi, eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], fcn.00423d40
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 - 0x54]
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x50]
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov dword [edi + 0x34], ecx
mov ecx, dword [ebp + 8]
push edi
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x3c]
push ebx
mov byte [ebp - 4], 2
mov dword [edi + 0x38], eax
call fcn.00424660
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
test al, al
je 0x421440
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.00423d40
add esp, 0x10
lea ecx, [ebp - 0x1c]
call fcn.004225e0
push dword [ebp - 0x20]
push dword [0x45d5b0]
call esi
lea ecx, [ebp - 0x34]
call fcn.00425980
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x421470
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x421470
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x421470
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 0x421324
push 0
lea ecx, [ebp + 0xb]
call fcn.004222a0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
push eax
call fcn.00421050
add esp, 8
xchg dword [ebp + 8], eax
jmp 0x421448