Function at 0x60dfbe
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x10], 0xffffffff
jne 0x60dfd5
push dword [ebp + 8]
call fcn.005947cb
mov dword [ebp + 0x10], eax
push ebx
push esi
push dword [0x717aec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
xor esi, esi
cmp ebx, esi
jne 0x60dff5
mov eax, 0x8000ffff
jmp 0x60e1bd
lea eax, [ebx + 0x30]
push edi
mov edi, dword [eax]
cmp edi, esi
mov dword [ebp - 0x10], eax
je 0x60e01c
mov esi, dword [edi]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add esi, 8
call fcn.005f1fbf
push eax
push dword [ebp + 8]
mov ecx, edi
call dword [esi]
xor esi, esi
mov eax, dword [ebp + 0xc]
cmp dword [eax], esi
jne 0x60e1ba
lea eax, [ebp - 0xc]
push eax
push esi
push 0xd
push 0x14
push 0x4b9350
push dword [ebp + 0x10]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call fcn.005bf37a
test eax, eax
je 0x60e056
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x1c]
xor edx, edx
inc edx
shl edx, cl
test edx, eax
je 0x60e06e
mov ecx, dword [ebp - 4]
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x60e1b3
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x60e1b3
or eax, edx
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 8], esi
call fcn.005fe431
mov esi, eax
test esi, esi
jl 0x60e135
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
imul edx, edx, 0x14
movzx edx, byte [edx + 0x4b9358]
mov eax, dword [ecx]
push edx
call dword [eax + 0x60]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
push 1
call dword [eax + 0x70]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
mov edi, eax
add esi, 0x54
call fcn.00649f06
push eax
mov ecx, edi
call dword [esi]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
mov edi, eax
add esi, 0x58
call fcn.005a2ca9
push eax
mov ecx, edi
call dword [esi]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
imul eax, eax, 0x14
mov edx, dword [ecx]
push 0
push dword [eax + 0x4b9360]
push dword [eax + 0x4b935c]
call dword [edx + 0xc]
mov esi, eax
test esi, esi
jl 0x60e135
mov ecx, dword [ebp - 4]
and dword [ebp - 4], 0
test ecx, ecx
mov esi, dword [ebp - 8]
je 0x60e107
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
mov ecx, esi
call dword [eax + 0x74]
mov esi, eax
test esi, esi
jl 0x60e135
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
test eax, eax
jne 0x60e12c
lea eax, [ebp - 4]
push eax
call fcn.0060df93
jmp 0x60e135
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x14]
mov ecx, dword [ebp - 0xc]
xor eax, eax
inc eax
shl eax, cl
not eax
and dword [ebx + 0x1c], eax
test esi, esi
jge 0x60e16a
mov ecx, dword [ebp - 8]
and dword [ebp - 8], 0
test ecx, ecx
je 0x60e156
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
and dword [ebp - 4], 0
test ecx, ecx
je 0x60e166
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
jmp 0x60e1bc
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
test edi, edi
je 0x60e18b
mov esi, dword [edi]
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add esi, 8
call fcn.005f1fbf
push eax
push dword [ebp + 8]
mov ecx, edi
call dword [esi]
mov ecx, dword [ebp - 8]
and dword [ebp - 8], 0
test ecx, ecx
je 0x60e19b
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
and dword [ebp - 4], 0
test ecx, ecx
je 0x60e1ab
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x60e1ba
mov eax, 0x80004005
jmp 0x60e1bc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc