Function at 0x454860
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x30
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
xor edx, edx
cmp ecx, edx
je 0x454add
mov eax, dword [ecx + 0x88]
add eax, dword [ecx + 0x84]
je 0x4548a3
mov edx, dword [esp + 0x38]
lea eax, [esp + 8]
push eax
mov byte [esp + 0xc], 0x11
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
call fcn.0043f010
pop esi
add esp, 0x30
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, ecx
add dword [eax + 0x84], 1
mov ecx, dword [esi + 8]
push ebp
push edi
mov edi, dword [ecx + 0x2fc]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov edx, dword [0x4c6060]
push edx
mov dword [esp + 0x3c], bind
call ebx
mov ecx, dword [eax + 0x20]
lea edx, [edi*8 + 0x10]
and edx, 0xfffffff0
lea ebp, [ecx + edx]
cmp ebp, dword [eax + 0x2c]
ja 0x4548f3
mov dword [eax + 0x20], ebp
mov eax, ecx
jmp 0x4548fd
mov ebp, dword [eax]
mov ecx, eax
mov eax, dword [ebp + 0x14]
push edx
call eax
mov ecx, dword [esi + 8]
mov edx, dword [0x4c6060]
mov dword [esp + 0x30], eax
or edi, 0x80000000
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + 0x38], edi
mov edi, dword [ecx + 0x2fc]
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], bind
call ebx
mov ecx, dword [eax + 0x20]
lea edx, [edi*8 + 0x10]
and edx, 0xfffffff0
lea ebp, [ecx + edx]
cmp ebp, dword [eax + 0x2c]
ja 0x45494f
mov dword [eax + 0x20], ebp
mov eax, ecx
jmp 0x454959
mov ebp, dword [eax]
mov ecx, eax
mov eax, dword [ebp + 0x14]
push edx
call eax
mov edx, dword [esi + 8]
or edi, 0x80000000
lea ecx, [esi + 0x24]
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], ecx
mov ecx, dword [edx + 0x54]
cmp dword [ecx + 0x10], 0
je 0x454983
call fcn.0047b090
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x54]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x4c]
push 1
push eax
lea eax, [esp + 0x20]
push eax
call edx
cmp dword [esp + 0x34], 0
jne 0x4549b4
cmp dword [esp + 0x24], 0
je 0x454a0a
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.00481340
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 0x58]
add esp, 8
push edx
push eax
call fcn.00481300
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x70]
test eax, eax
je 0x4549ea
add eax, 8
jmp 0x4549ec
xor eax, eax
mov edx, dword [esp + 0x34]
mov ecx, dword [ecx + 0x58]
push eax
mov eax, dword [esp + 0x34]
push edx
push eax
call fcn.00481290
lea eax, [esi + 0x80]
call fcn.00454400
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 0x54]
cmp dword [ecx + 0x10], 0
je 0x454a1b
call fcn.0047b0a0
mov esi, dword [esi + 8]
add dword [esi + 0x84], 0xffffffff
jne 0x454a40
cmp byte [esi + 0x8c], 0
jne 0x454a40
cmp dword [esi + 0x80], 0
je 0x454a40
mov ecx, esi
call fcn.0043eff0
mov edx, dword [0x4c6060]
mov esi, dword [esp + 0x2c]
push edx
call ebx
cmp esi, dword [eax + 0x28]
mov dword [eax + 0x20], esi
jne 0x454a5f
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
push esi
call eax
mov eax, dword [esp + 0x28]
test eax, eax
js 0x454a8d
mov ecx, dword [0x4c6060]
and eax, 0x3fffffff
push ecx
mov esi, eax
call ebx
mov ecx, dword [esp + 0x20]
push 0x17
lea edx, [esi*8]
push edx
push ecx
mov ecx, eax
call fcn.004023e0
mov edx, dword [0x4c6060]
mov esi, dword [esp + 0x3c]
push edx
call ebx
cmp esi, dword [eax + 0x28]
mov dword [eax + 0x20], esi
jne 0x454aac
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
push esi
call eax
mov eax, dword [esp + 0x38]
test eax, eax
js 0x454ada
mov ecx, dword [0x4c6060]
and eax, 0x3fffffff
push ecx
mov esi, eax
call ebx
mov ecx, dword [esp + 0x30]
push 0x17
lea edx, [esi*8]
push edx
push ecx
mov ecx, eax
call fcn.004023e0
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x30
ret 4