Function at 0x100cd3d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x100d2a50
mov esi, ecx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
call fcn.100d25b0
test eax, eax
je 0x100cd775
cmp dword [eax], 1
mov cl, 1
jbe 0x100cd4a0
mov byte [ebp - 0x25], cl
push esi
call fcn.100df1c0
add esp, 4
test eax, eax
je 0x100cd794
mov dword [ebp - 0x5c], eax
push esi
call fcn.100df1e0
add esp, 4
mov edi, eax
push eax
call dword [edx + 0xc]
add esp, 4
test edi, edi
je 0x100cd515
xor eax, 0x70b09764
xor edx, 0x111094d9
or edx, eax
jne 0x100cd515
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ecx
mov eax, dword [0x1019d13c]
test eax, eax
jne 0x100cd55c
push 0x1019d13c
call fcn.100cc460
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jb 0x100cd56b
cmp dword [eax], 1
jne 0x100cd56b
add eax, 4
jmp 0x100cd574
mov eax, dword [0x1019dbb4]
cmp eax, 2
je 0x100cd71c
cmp eax, 1
je 0x100cd715
test eax, eax
jne 0x100cd417
lea eax, [ebp - 0x48]
push 0xe
push 0x10184361
push eax
call fcn.100c3610
add esp, 0xc
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x100cd723
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
cmp edx, 4
je 0x100cd727
cmp edx, 1
jne 0x100cd73d
mov bl, 4
mov edi, 1
cmp eax, 0x1018436f
je 0x100cd744
cmp byte [eax], 0x30
jne 0x100cd73d
jmp 0x100cd744
push esi
call fcn.100df1e0
add esp, 4
mov esi, eax
push eax
call dword [edx + 0xc]
add esp, 4
test esi, esi
mov edi, str.Box_Any__unnamed_
mov ecx, 8
je 0x100cd549
xor eax, 0xfef62bd
xor edx, 0xa6501647
or edx, eax
jne 0x100cd549
mov edi, dword [esi]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], ecx
mov eax, dword [0x1019d13c]
test eax, eax
je 0x100cd473
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 2
jae 0x100cd48f
call fcn.100c2500
test eax, eax
je 0x100cd59e
mov ecx, eax
call fcn.100cbfd0
mov dword [ebp - 0x30], eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [eax + 0x10]
test eax, eax
cmove ecx, eax
je 0x100cd5b5
mov eax, dword [ecx + 4]
sub eax, 1
jb 0x100cd7aa
mov ecx, dword [ecx]
jmp 0x100cd5b7
mov al, 1
xor ecx, ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], eax
jmp 0x100cd5be
xor ecx, ecx
mov dword [ebp - 0x24], 0
test ecx, ecx
mov esi, 9
mov edx, 0x10184ba8
mov dword [ebp - 0x10], 1
cmovne esi, eax
lea eax, [ebp - 0x6c]
cmovne edx, ecx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x25]
mov dword [ebp - 0x3c], eax
sub esp, 4
push 0
call fcn.100c5b60
add esp, 8
test eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
je 0x100cd6a3
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov byte [ebp - 0x1e], 1
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x58]
push 0x10184bd8
call fcn.100cd8a0
add esp, 4
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
mov byte [ebp - 0x1e], 0
push ecx
push eax
call fcn.100c5b60
add esp, 8
test eax, eax
je 0x100cd679
mov dword [ebp - 0x10], 5
mov dword [ebp - 0x38], eax
push eax
mov dword [ebp - 0x34], edx
call dword [edx]
add esp, 4
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov eax, dword [edx + 4]
test eax, eax
je 0x100cd679
push dword [edx + 8]
push eax
push ecx
call fcn.10017710
add esp, 0xc
xor ecx, ecx
cmp byte [ebp - 0x24], 0
jne 0x100cd6c9
mov eax, dword [ebp - 0x2c]
lock dec dword [eax]
jne 0x100cd6c9
mov byte [ebp - 0x1f], cl
mov dword [ebp - 0x24], ecx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x10], 2
call fcn.100c1c20
mov ecx, dword [ebp - 0x24]
jmp 0x100cd6c9
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x1d], 1
mov dword [ebp - 0x10], 3
lea edx, [ebp - 0x48]
push 0x10184bb4
call fcn.100cd8a0
mov cl, 1
add esp, 4
cmp byte [ebp - 0x24], 0
je 0x100cd681
test cl, cl
je 0x100cd704
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x100cd704
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x2c], ecx
call dword [ecx]
add esp, 4
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
test eax, eax
je 0x100cd704
push dword [edx + 8]
push eax
push ecx
call fcn.10017710
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
mov cl, 4
jmp 0x100cd417
xor ecx, ecx
jmp 0x100cd417
mov bl, 5
jmp 0x100cd754
mov bl, 1
mov edi, 3
cmp eax, 0x101849c8
je 0x100cd744
cmp dword [eax], 0x6c6c7566
je 0x100cd744
mov edi, 2
xor ebx, ebx
test ecx, ecx
je 0x100cd754
push 1
push ecx
push eax
call fcn.10017710
add esp, 0xc
cmp bl, 5
mov edx, 1
movzx eax, bl
mov ecx, 4
cmovne edx, edi
cmovne ecx, eax
xchg dword [0x1019dbb4], edx
jmp 0x100cd417
lea eax, [ebp - 0x48]
push 0x10184170
push 0x10183f6c
push eax
push 0x46
push 0x1018410f
call fcn.100df140
add esp, 0x14
ud2
push 0x10184b90
push 0x2b
push 0x10183f40
call fcn.100df260
add esp, 0xc
ud2
mov dword [ebp - 0x10], 1
push 0
push eax
call fcn.100e2170
add esp, 8
ud2