Function at 0x449560
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x52efc0]
mov ebx, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, ebx
mov edi, eax
call fcn.00448a40
lea ecx, [ebx + 4]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
push dword [ebp + 8]
push eax
call fcn.00434d40
mov eax, dword [ebp - 0x18]
lea ecx, [ebx + 8]
mov dword [ebp - 0x28], edi
cmp ecx, eax
je 0x4495ab
mov edx, dword [eax + 0x1c]
jmp 0x449641
push 0xc
call fcn.004aea96
add esp, 4
mov edi, eax
mov ecx, eax
mov eax, dword [ebp + 8]
mov esi, eax
push eax
call fcn.00427566
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.00434260
mov ecx, dword [eax]
test ecx, ecx
jne 0x449639
mov dword [ebp - 0x20], edi
push 0x20
mov edi, eax
call fcn.004aea96
add esp, 4
mov esi, eax
lea ecx, [eax + 0x10]
push dword [ebp + 8]
call fcn.00427566
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x1c], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x24], esi
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi], esi
mov eax, dword [eax]
mov eax, dword [eax]
test eax, eax
je 0x449624
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov esi, dword [edi]
push esi
push dword [ebx + 8]
call fcn.0040ff22
add esp, 8
inc dword [ebx + 0xc]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x1c], edi
mov edx, edi
mov edi, dword [ebp - 0x28]
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
mov dword [ebp - 0x24], ecx
test eax, eax
je 0x44966e
mov esi, ecx
xor ecx, ecx
cmp dword [eax + 0x10], edi
setb cl
cmovae esi, eax
mov eax, dword [eax + ecx*4]
test eax, eax
jne 0x449650
mov ecx, dword [ebp - 0x24]
cmp esi, ecx
je 0x44966e
cmp edi, dword [esi + 0x10]
jae 0x449670
mov esi, ecx
mov eax, dword [0x531a48]
mov dword [ebp - 0x20], edx
test al, 1
je 0x4497d6
cmp byte [edx + 0xb], 0
mov edi, edx
jns 0x44968a
mov edi, dword [edx]
push dword [0x52e140]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
jne 0x4496a4
test edi, edi
je 0x4496bd
call fcn.0044aa20
mov ecx, dword [0x531a40]
mov dword [eax + ecx*8], edi
mov ecx, dword [0x531a44]
mov edx, dword [0x531a40]
mov dword [eax + edx*8 + 4], ecx
mov edi, dword [ebx + 0x30]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebx + 0x34]
cmp edi, ebx
jne 0x4496dd
jmp 0x4496ee
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 4
cmp ebx, edi
je 0x4496ee
mov edx, dword [ebp - 0x20]
mov ecx, dword [edi]
cmp byte [edx + 0xb], 0
mov eax, edx
jns 0x4496d0
mov eax, dword [edx]
jmp 0x4496d0
cmp esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
je 0x449731
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x20]
test ebx, ebx
je 0x449744
lea edi, [eax + 0x20]
mov eax, dword [esi + 0x14]
jmp 0x44971a
mov ecx, dword [ebx]
mov edi, ebx
test ecx, ecx
je 0x449747
mov ebx, ecx
mov ecx, dword [ebx + 0x10]
cmp eax, ecx
jb 0x449710
cmp ecx, eax
jae 0x449749
mov ecx, dword [ebx + 4]
lea edi, [ebx + 4]
test ecx, ecx
jne 0x449718
jmp 0x449749
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov dword [ecx + 0x28], edx
mov dword [ecx + 0x2c], eax
call fcn.00448a50
jmp 0x4497c2
lea ebx, [eax + 0x20]
mov edi, ebx
mov eax, dword [edi]
test eax, eax
jne 0x4497a3
push 0x18
call fcn.004aea96
add esp, 4
mov ecx, dword [esi + 0x14]
mov esi, dword [ebp - 0x1c]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], ebx
mov dword [edi], eax
mov ecx, dword [esi + 0x1c]
mov ecx, dword [ecx]
test ecx, ecx
je 0x44978d
mov dword [esi + 0x1c], ecx
mov ebx, eax
mov eax, dword [edi]
jmp 0x44978f
mov ebx, eax
push eax
push dword [esi + 0x20]
call fcn.0040ff22
add esp, 8
inc dword [esi + 0x24]
mov eax, ebx
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x14], edx
call fcn.00448a50
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0xb], 0
jns 0x4497b9
mov eax, dword [eax]
push eax
call fcn.0044b240
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aeb01
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 4
or eax, 1
mov dword [0x531a40], 0xffffffff
mov dword [0x531a44], 0
mov ecx, 0x531a40
mov dword [0x531a48], eax
push 0
call fcn.0044a940
mov edx, dword [ebp - 0x20]
jmp 0x449680