Function at 0x449a90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x54
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebx + 0x84], ecx
push esi
push edi
je 0x449ac8
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
mov byte [esp + 0x1c], 3
mov dword [esp + 0x20], eax
call fcn.0043f010
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x10]
add esi, 0x10
cmp eax, ecx
mov dword [ebx + 0x84], 1
je 0x449d31
mov edx, dword [0x4c6060]
mov edi, dword [ebx + 0x2f8]
push edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], bind
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x20]
lea edx, [edi*8 + 0x10]
and edx, 0xfffffff0
mov dword [esp + 0x14], ecx
add ecx, edx
cmp ecx, dword [eax + 0x2c]
ja 0x449b27
mov dword [eax + 0x20], ecx
mov eax, dword [esp + 0x14]
jmp 0x449b31
mov ecx, eax
mov eax, dword [eax]
mov eax, dword [eax + 0x14]
push edx
call eax
mov ecx, 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 [ebx + 0x2f8]
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], bind
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x20]
lea edx, [edi*8 + 0x10]
and edx, 0xfffffff0
mov dword [esp + 0x14], ecx
add ecx, edx
cmp ecx, dword [eax + 0x2c]
ja 0x449b89
mov dword [eax + 0x20], ecx
mov eax, dword [esp + 0x14]
jmp 0x449b93
mov ecx, eax
mov eax, dword [eax]
push edx
mov edx, dword [eax + 0x14]
call edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x20]
or edi, 0x80000000
cmp eax, dword [esi + 0x30]
mov dword [esp + 0x28], edi
jbe 0x449bbf
mov edx, dword [ebx + 0x6c]
push 1
lea ecx, [ebp + 0xc]
push ecx
push edx
call fcn.00456ef0
add esp, 0xc
movzx ecx, byte [esi + 0x2f]
movzx eax, byte [esi + 0x2c]
mov edx, dword [esi + 0x20]
shl eax, cl
add esi, 0x14
mov dword [esp + 0x18], esi
sub edx, eax
movzx eax, byte [esi + 0x19]
shl eax, cl
mov dword [esp + 0x40], edx
mov edx, dword [esi + 0x10]
sub edx, eax
movzx eax, byte [esi + 0x1a]
shl eax, cl
mov dword [esp + 0x44], edx
mov edx, dword [esi + 0x14]
sub edx, eax
movzx eax, byte [esi + 0x28]
shl eax, cl
mov dword [esp + 0x48], edx
movzx edx, byte [esi + 0x29]
add eax, dword [esi + 0x1c]
shl edx, cl
mov dword [esp + 0x50], eax
movzx eax, byte [esi + 0x2a]
add edx, dword [esi + 0x20]
shl eax, cl
mov ecx, dword [ebx + 0x54]
mov dword [esp + 0x54], edx
add eax, dword [esi + 0x24]
mov dword [esp + 0x58], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push 1
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x28]
push eax
call edx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
add ecx, eax
test ecx, ecx
jle 0x449c91
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00481340
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
add esp, 8
push ecx
mov ecx, dword [ebx + 0x58]
push edx
call fcn.00481300
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x449c7c
add eax, 8
jmp 0x449c7e
xor eax, eax
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x38]
push eax
push ecx
mov ecx, dword [ebx + 0x58]
call fcn.00481290
mov edx, dword [0x4c6060]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [esp + 0x2c]
push edx
call esi
cmp edi, dword [eax + 0x28]
mov dword [eax + 0x20], edi
jne 0x449cb6
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
push edi
call eax
mov eax, dword [esp + 0x28]
test eax, eax
js 0x449ce4
mov ecx, dword [0x4c6060]
and eax, 0x3fffffff
push ecx
mov edi, eax
call esi
mov ecx, dword [esp + 0x20]
push 0x17
lea edx, [edi*8]
push edx
push ecx
mov ecx, eax
call fcn.004023e0
mov edx, dword [0x4c6060]
mov edi, dword [esp + 0x3c]
push edx
call esi
cmp edi, dword [eax + 0x28]
mov dword [eax + 0x20], edi
jne 0x449d03
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
push edi
call eax
mov eax, dword [esp + 0x38]
test eax, eax
js 0x449d31
mov ecx, dword [0x4c6060]
and eax, 0x3fffffff
push ecx
mov edi, eax
call esi
mov ecx, dword [esp + 0x30]
push 0x17
lea edx, [edi*8]
push edx
push ecx
mov ecx, eax
call fcn.004023e0
add dword [ebx + 0x84], 0xffffffff
jne 0x449d53
cmp byte [ebx + 0x8c], 0
jne 0x449d53
cmp dword [ebx + 0x80], 0
je 0x449d53
mov ecx, ebx
call fcn.0043eff0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret