Function at 0x100c5a10
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], al
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 0xc]
push edi
push ebx
push ecx
push edx
push eax
mov byte [ebp - 0xb], 1
call fcn.100c58f0
mov esi, eax
test esi, esi
jl 0x100c5d45
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
push ecx
push edi
push ebx
mov ebx, dword [ebp + 8]
push edx
push eax
push ebx
call fcn.100c58f0
mov dword [ebp + 8], eax
test eax, eax
jl 0x100c5d5f
mov edi, dword [ebp - 0x10]
xor eax, eax
test esi, esi
jbe 0x100c5aa8
mov edx, dword [ebp - 0x18]
cmp eax, edi
sbb ecx, ecx
and ecx, edx
mov ecx, dword [ecx]
mov byte [ecx + 0x34], 0
cmp eax, edi
sbb ecx, ecx
and ecx, edx
mov ecx, dword [ecx]
inc eax
add edx, 4
mov dword [ecx + 0x38], 0
cmp eax, esi
jb 0x100c5a85
mov eax, esi
cmp esi, edi
jae 0x100c5ad7
mov edx, dword [ebp - 0x18]
lea edx, [edx + esi*4]
cmp eax, edi
sbb ecx, ecx
and ecx, edx
mov ecx, dword [ecx]
mov byte [ecx + 0x34], 1
cmp eax, edi
sbb ecx, ecx
and ecx, edx
mov ecx, dword [ecx]
inc eax
add edx, 4
mov dword [ecx + 0x38], 0
cmp eax, edi
jb 0x100c5ab6
push ebx
mov ebx, dword [ebp - 0x18]
push 0x10168a40
mov eax, edi
mov esi, ebx
call fcn.100dabb0
xor esi, esi
test edi, edi
jbe 0x100c5b7e
cmp esi, edi
sbb eax, eax
and eax, ebx
mov edx, dword [eax]
cmp byte [edx + 0x34], 0
je 0x100c5b72
test esi, esi
je 0x100c5b72
lea ecx, [esi - 1]
cmp ecx, edi
jae 0x100c5b11
lea eax, [ebx - 4]
jmp 0x100c5b13
xor eax, eax
mov eax, dword [eax]
cmp byte [eax + 0x34], 0
jne 0x100c5b72
cmp esi, edi
sbb eax, eax
and eax, ebx
cmp ecx, edi
jae 0x100c5b2a
lea edx, [ebx - 4]
jmp 0x100c5b2c
xor edx, edx
mov ecx, dword [eax]
mov edx, dword [edx]
call fcn.101688f0
test eax, eax
jne 0x100c5b72
lea edx, [esi - 1]
cmp edx, edi
jae 0x100c5b45
lea ecx, [ebx - 4]
jmp 0x100c5b47
xor ecx, ecx
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x50]
cmp esi, edi
sbb eax, eax
and eax, ebx
mov eax, dword [eax]
mov eax, dword [eax + 0x50]
mov dword [eax + 0x2c], ecx
cmp edx, edi
jae 0x100c5b63
lea ecx, [ebx - 4]
jmp 0x100c5b65
xor ecx, ecx
cmp esi, edi
sbb eax, eax
and eax, ebx
mov edx, dword [eax]
mov eax, dword [ecx]
mov dword [edx + 0x38], eax
inc esi
add ebx, 4
cmp esi, edi
jb 0x100c5af5
xor ecx, ecx
mov dword [ebp + 0x14], ecx
test edi, edi
jbe 0x100c5ca1
mov edx, dword [ebp - 0x18]
mov dword [ebp + 0x1c], edx
cmp ecx, edi
sbb eax, eax
and eax, edx
mov eax, dword [eax]
cmp byte [eax + 0x34], 0
je 0x100c5c8f
cmp ecx, edi
sbb eax, eax
and eax, edx
mov eax, dword [eax]
cmp dword [eax + 0x38], 0
jne 0x100c5c8f
cmp ecx, edi
sbb eax, eax
and eax, edx
mov eax, dword [eax]
mov esi, dword [eax + 0x50]
mov ebx, dword [esi + 0x2c]
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x100c5bee
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push ecx
push esi
call fcn.10169fd0
mov dword [ebp + 8], eax
test eax, eax
jl 0x100c5d42
mov ebx, dword [ebp - 4]
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
mov dword [esi + 0x2c], ebx
cmp ecx, edi
mov ecx, dword [ebp + 0xc]
sbb eax, eax
and eax, edx
mov eax, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
push ecx
call fcn.1016a070
mov dword [ebp + 8], eax
test eax, eax
jl 0x100c5d42
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x50]
cmp ecx, ebx
je 0x100c5c71
test ecx, ecx
je 0x100c5c48
cmp ecx, 0xffffffff
je 0x100c5c48
mov edx, dword [eax + 4]
test edx, edx
je 0x100c5c2f
mov esi, dword [eax]
mov dword [edx], esi
jmp 0x100c5c34
mov edx, dword [eax]
mov dword [ecx + 0x24], edx
mov edx, dword [eax]
test edx, edx
je 0x100c5c42
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
jmp 0x100c5c48
mov edx, dword [eax + 4]
mov dword [ecx + 0x28], edx
test ebx, ebx
je 0x100c5c6e
cmp ebx, 0xffffffff
je 0x100c5c6e
mov ecx, dword [ebx + 0x28]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x100c5c62
mov dword [ecx], eax
jmp 0x100c5c65
mov dword [ebx + 0x24], eax
mov dword [eax], 0
mov dword [ebx + 0x28], eax
mov dword [eax + 0x50], ebx
cmp dword [ebp + 0x14], edi
sbb ecx, ecx
and ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x14]
mov dword [edx + 0x38], eax
mov edx, dword [ebp + 0x1c]
mov byte [eax + 0x34], 1
mov dword [eax + 0x38], 0
inc ecx
add edx, 4
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x1c], edx
cmp ecx, edi
jb 0x100c5b93
xor ecx, ecx
test edi, edi
jbe 0x100c5d42
mov esi, dword [ebp - 0x18]
mov dword [ebp + 0xc], esi
cmp ecx, edi
sbb eax, eax
and eax, esi
mov eax, dword [eax]
cmp byte [eax + 0x34], 0
je 0x100c5d33
cmp ecx, edi
sbb eax, eax
and eax, esi
mov edx, dword [eax]
mov edx, dword [edx + 0x38]
test edx, edx
je 0x100c5d33
cmp ecx, edi
sbb eax, eax
and eax, esi
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
and eax, 0x100
xor ebx, ebx
or eax, ebx
jne 0x100c5d33
mov eax, dword [edx + 0x40]
and eax, 0x100
or eax, ebx
je 0x100c5d0b
cmp ecx, edi
sbb eax, eax
and eax, esi
mov eax, dword [eax]
mov eax, dword [eax + 0x40]
and eax, 0x100
xor esi, esi
or eax, esi
je 0x100c5d0b
lea eax, [ebx + 1]
jmp 0x100c5d0d
xor eax, eax
xor esi, esi
shld esi, eax, 8
shl eax, 8
mov esi, eax
mov eax, dword [edx + 0x40]
xor esi, eax
and esi, 0x100
xor esi, eax
xor ebx, ebx
xor ebx, dword [edx + 0x44]
mov dword [edx + 0x40], esi
mov esi, dword [ebp + 0xc]
mov dword [edx + 0x44], ebx
inc ecx
add esi, 4
mov dword [ebp + 0xc], esi
cmp ecx, edi
jb 0x100c5cb3
mov esi, dword [ebp + 8]
cmp byte [ebp - 0xc], 0
je 0x100c5d76
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x100c5d76
mov eax, dword [0x101e316c]
test eax, eax
jge 0x100c5d63
xor eax, eax
jmp 0x100c5d6a
mov esi, eax
jmp 0x100c5d45
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18