Function at 0x414110
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4acb33
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x4d5104]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push dword [0x518c04]
mov edi, ebx
lea eax, [ebx - 8]
neg edi
sbb edi, edi
and edi, eax
mov eax, dword [edi + 0x190]
mov esi, dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x414170
cmp dword [eax], esi
je 0x4142e0
mov eax, dword [eax + 8]
test eax, eax
jne 0x414161
lea eax, [ebp - 0x5c]
mov ecx, edi
push eax
call fcn.0040d420
mov dword [ebp - 4], 1
mov ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [ebp - 0x54], ebx
mov eax, dword [ecx]
mov dword [ebp - 0x44], eax
lea eax, [ecx + 4]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x50], edi
call fcn.00410120
lea esi, [edi + 0x158]
neg esi
sbb esi, esi
and esi, edi
lea eax, [esi + 0x608]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x80], eax
mov eax, ecx
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call fcn.00410120
mov byte [ebp - 4], 3
mov ecx, dword [esi + 0x190]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x10]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x94]
push eax
call fcn.0041b900
lea ecx, [ebp - 0x7c]
call fcn.00410080
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov esi, dword [ebp - 0x84]
test esi, esi
je 0x41426c
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x41426c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x41426c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x40]
call fcn.00410080
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x41429e
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x41429e
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x41429e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 6
mov esi, dword [ebp - 0x58]
test esi, esi
je 0x4142ca
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x4142ca
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x4142ca
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, edi
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 0x414170
push dword [ebp + 8]
mov esi, dword [ebx + 0x10]
mov ecx, ebx
call fcn.00414350
test esi, esi
jne 0x4142ca
mov eax, dword [ebx]
test eax, eax
je 0x414303
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [ebx + 0xc]
mov esi, dword [eax + ecx*4]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
mov dword [ebp - 0x20], edi
call fcn.0040d420
mov byte [ebp - 0x14], 1
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x414343
mov edx, dword [ecx]
lea eax, [ebp - 0x20]
push eax
call dword [edx + 8]
lea ecx, [ebp - 0x20]
call fcn.0040d3a0
jmp 0x4142ca
call fcn.0047f250
int3