Function at 0x4a5e20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0x400
je 0x4a6054
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
and eax, 0x400
je 0x4a6054
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
lea eax, [eax + 2]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 8]
add eax, edx
mov esi, eax
inc eax
push eax
call fcn.0049b580
pop ecx
mov ebx, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
push edx
mov eax, dword [eax + 0x10]
push eax
push ebx
call fcn.00531d20
add esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov byte [ebx + eax], 0x2d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov byte [ebx + eax + 1], 0x3e
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
push edx
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
lea eax, [ebx + eax + 2]
push eax
call fcn.00531d20
add esp, 0xc
mov byte [ebx + esi], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x10], 0x3f
mov dword [ebp - 0x28], 1
movzx eax, byte [ebp + 0x14]
and eax, 0x40
je 0x4a5ed5
mov edi, dword [0x7bf1f4]
jmp 0x4a5edb
movzx eax, byte [ebp + 0x14]
mov edi, eax
mov dword [ebp - 0x20], edi
push esi
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.004a5280
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4a5efd
mov eax, dword [ebp - 0x28]
and eax, 1
jne 0x4a5f0a
push ebx
lea eax, [ebp - 0x38]
push eax
call fcn.004a5550
add esp, 8
push ebx
call fcn.0049b640
pop ecx
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x4a5f47
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x4a5f5f
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 4]
mov eax, dword [eax - 4]
mov dword [eax], 0
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea eax, [eax + 4]
mov edx, dword [eax]
lea edx, [edx - 4]
mov dword [ebp - 0x40], edx
mov dword [eax], edx
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [ebp - 0x40]
mov eax, dword [eax]
cmp edx, eax
jae 0x4a5fa0
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x4a5fd6
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x4a5fee
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 4]
mov eax, dword [eax - 4]
mov dword [eax], 0
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea eax, [eax + 4]
mov edx, dword [eax]
lea edx, [edx - 4]
mov dword [ebp - 0x40], edx
mov dword [eax], edx
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [ebp - 0x40]
mov eax, dword [eax]
cmp edx, eax
jae 0x4a602f
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
cmp dword [ebp - 0x3c], 0
jne 0x4a6192
mov eax, dword [ebp - 0x28]
and eax, 1
je 0x4a6192
lea eax, [ebp - 0x38]
push eax
call fcn.004a5500
pop ecx
jmp 0x4a6192
mov eax, dword [ebp + 0xc]
push eax
call fcn.004a5370
pop ecx
test eax, eax
je 0x4a6192
mov eax, dword [ebp + 0x10]
or eax, 4
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x10], 0x3f
mov dword [ebp - 0x28], 1
movzx eax, byte [ebp + 0x14]
and eax, 0x40
je 0x4a608d
mov ebx, dword [0x7bf1f4]
jmp 0x4a6093
movzx eax, byte [ebp + 0x14]
mov ebx, eax
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
push eax
call fcn.004a9b80
pop ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
push eax
mov eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004a5280
add esp, 0xc
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4a60ce
mov eax, dword [ebp - 0x28]
and eax, 1
jne 0x4a60e1
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004a5550
add esp, 8
mov eax, dword [ebp - 0x40]
push eax
call fcn.0049b640
pop ecx
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x4a6121
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x4a6139
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax + 4]
mov eax, dword [eax - 4]
mov dword [eax], 0
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea eax, [eax + 4]
mov edx, dword [eax]
lea edx, [edx - 4]
mov dword [ebp - 0x44], edx
mov dword [eax], edx
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [ebp - 0x44]
mov eax, dword [eax]
cmp edx, eax
jae 0x4a617a
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
cmp dword [ebp - 0x3c], 0
jne 0x4a6192
mov eax, dword [ebp - 0x28]
and eax, 1
je 0x4a6192
lea eax, [ebp - 0x38]
push eax
call fcn.004a5500
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret