Function at 0x1c6d990
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov eax, dword [0x1d01324]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edx, dword [ecx + 8]
mov dword [ebp - 0x2c], ecx
lea eax, [ecx + 0xc]
mov dword [ebp - 0x3c], eax
xor edi, edi
cmp edx, eax
jne 0x1c6da07
mov eax, dword [ebp - 0x2c]
add dword [eax + 0x7c], edi
mov esi, dword [0x1d0b694]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x1c6dd21
cmp esi, 1
jbe 0x1c6d9e6
mov ecx, esi
call fcn.01c741c0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb3141
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, eax
cmp eax, dword [ebp - 0x3c]
je 0x1c6d9b5
mov dword [ebp - 0x40], edx
mov ecx, dword [edx + 0x10]
mov edx, ecx
and edx, 0xffe00000
xor eax, eax
mov esi, dword [ebp - 0x2c]
test byte [esi + 4], 1
mov ecx, dword [ecx + 0x1000]
sete al
shl eax, 0xf
add eax, edx
add eax, 0x4000
mov edx, eax
and edx, 0xffe00000
mov dword [ebp - 0x44], edx
lea edx, [ecx + 0x10]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
add ecx, 8
mov dword [ebp - 0x24], ecx
xor ecx, ecx
mov dword [ebp - 0x48], eax
jmp 0x1c6da7c
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
mov dword [eax + ecx*4], 0
add ecx, 1
cmp ecx, 0x2000
je 0x1c6dce0
mov edx, dword [eax + ecx*4]
test edx, edx
mov dword [ebp - 0x4c], ecx
je 0x1c6da60
shl ecx, 8
add ecx, dword [ebp - 0x44]
mov eax, ecx
and eax, 0xffe00000
mov dword [ebp - 0x5c], ecx
shr ecx, 9
and ecx, 0xfe0
add eax, ecx
add eax, 0x1000
mov dword [ebp - 0x28], eax
nop dword [eax]
mov dword [ebp - 0x64], edx
bsf ecx, edx
mov eax, ecx
mov dword [ebp - 0x60], ecx
lea eax, [ecx*8]
or eax, dword [ebp - 0x5c]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x28]
movzx eax, word [ecx + 0x1e]
mov dword [ebp - 0x30], eax
shl eax, 5
mov dword [ebp - 0x58], eax
neg eax
mov ebx, dword [ecx + eax + 8]
add edi, dword [ebx + 0xc]
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x54]
cmp byte [eax + 2], 0
je 0x1c6dbc0
cmp byte [ebx + 0x10], 0
je 0x1c6dbc0
mov esi, dword [0x1d0b694]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x1c6dba0
cmp esi, 2
jb 0x1c6dbc0
sub ebx, dword [ebp - 0x50]
sar ebx, 5
add dword [esi + 0x340], 1
adc dword [esi + 0x344], 0
movzx eax, word [0x1d021a8]
cmp ebx, eax
ja 0x1c6dbb2
mov eax, dword [esi + ebx*8]
bswap eax
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
not eax
mov dword [ecx + 4], eax
mov dword [esi + ebx*8], ecx
add byte [esi + ebx*8 + 4], 1
add dword [esi + 0x348], 1
adc dword [esi + 0x34c], 0
mov al, byte [esi + ebx*8 + 5]
cmp byte [esi + ebx*8 + 4], al
ja 0x1c6dc94
mov al, byte [esi + 0x310]
test al, 1
mov edi, dword [ebp - 0x38]
jne 0x1c6dcaa
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0x60]
rol eax, cl
mov edx, dword [ebp - 0x64]
and edx, eax
jne 0x1c6dab0
jmp 0x1c6da60
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, 2
jae 0x1c6db23
jmp 0x1c6dbc0
add dword [esi + 0x350], 1
adc dword [esi + 0x354], 0
neg dword [ebp - 0x30]
mov esi, dword [ebp - 0x28]
sub esi, dword [ebp - 0x58]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, 1
xor ebx, ebx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x1c6dc26
mov eax, edi
test edi, edi
jle 0x1c6dc09
nop word cs:[eax + eax]
nop dword [eax + eax]
pause
add eax, 0xffffffff
jne 0x1c6dc00
add ebx, edi
add edi, edi
cmp edi, 0x40
mov eax, 0x40
cmovge edi, eax
cmp ebx, 0x3e8
jl 0x1c6dbde
mov ecx, dword [ebp - 0x24]
call fcn.01c76bc0
mov eax, dword [esi]
mov edi, dword [ebp - 0x34]
cmp eax, edi
je 0x1c6dcb6
bswap eax
mov dword [edi], eax
not eax
mov dword [edi + 4], eax
mov dword [esi], edi
mov edx, dword [ebp - 0x30]
shl edx, 5
mov ecx, dword [ebp - 0x28]
movzx eax, word [ecx + edx + 0xc]
add eax, 0xffffffff
mov word [ecx + edx + 0xc], ax
test ax, ax
mov edi, dword [ebp - 0x38]
jle 0x1c6dcca
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esi
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test esi, esi
je 0x1c6db86
lea ecx, [ebp - 0x18]
call fcn.01c77790
jmp 0x1c6db86
lea edx, [esi + ebx*8]
movzx eax, al
shr eax, 1
mov ecx, esi
push eax
push edx
call fcn.01c74a40
jmp 0x1c6db75
mov ecx, esi
call fcn.01c741c0
jmp 0x1c6db86
push str..._.._base_allocator_partition_allocator_partition_page.h_529__Check_failed:_slot_start___freelist_head
call fcn.01c4cf00
add esp, 4
mov eax, dword [esi]
jmp 0x1c6dc33
mov ecx, esi
lea eax, [ebp - 0x20]
push eax
call fcn.01c77590
jmp 0x1c6dc6a
mov edx, dword [ebp - 0x40]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x1c6dd00
nop word [eax + eax]
mov eax, ecx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x1c6dcf0
jmp 0x1c6da00
mov eax, dword [edx + 8]
cmp dword [eax], edx
je 0x1c6da00
add edx, 8
nop
mov ecx, dword [edx]
lea edx, [ecx + 8]
mov eax, dword [ecx + 8]
cmp dword [eax], ecx
jne 0x1c6dd10
jmp 0x1c6da00
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, 1
ja 0x1c6d9df
jmp 0x1c6d9e6