Function at 0x100dcd60
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xb4
mov eax, dword [0x101f0098]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [esp + 0x50], eax
xor al, al
push esi
mov byte [esp + 0x3f], al
mov byte [esp + 0x3e], al
push edi
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x70]
push eax
mov eax, dword [ebp + 0x14]
mov edi, ecx
mov esi, dword [edi + 8]
add eax, eax
push eax
mov ecx, 4
push esi
lea eax, [ecx - 2]
mov dword [esp + 0x64], edi
mov byte [esp + 0x51], 0
mov dword [esp + 0xa4], 0xffffffff
mov dword [esp + 0xa8], 0xffffffff
mov dword [esp + 0xac], 0xffffffff
mov dword [esp + 0xb0], 0xffffffff
mov dword [esp + 0xb4], 0xffffffff
mov dword [esp + 0xb8], 0xffffffff
mov dword [esp + 0xbc], 0xffffffff
mov dword [esp + 0xc0], 0xffffffff
mov dword [esp + 0xc4], 0xffffffff
mov dword [esp + 0xc8], 0xffffffff
mov dword [esp + 0x98], esi
mov dword [esp + 0x9c], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], 2
mov dword [esp + 0x7c], 0
mov dword [esp + 0x88], 0
call fcn.101019a0
mov ebx, eax
test ebx, ebx
js 0x100dd3e1
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x88]
push eax
push dword [ebp + 0x14]
mov ecx, 4
push esi
xor eax, eax
call fcn.101019a0
mov ebx, eax
test ebx, ebx
js 0x100dd3e1
xor ecx, ecx
xor ebx, ebx
mov dword [esp + 0x44], ecx
cmp dword [ebp + 0x14], ecx
jbe 0x100dd3d8
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x6c]
mov esi, eax
sub ecx, eax
mov eax, dword [esp + 0x84]
sub eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x68], esi
mov dword [esp + 0x7c], ecx
jmp 0x100dcf00
mov esi, dword [ecx + esi]
test esi, esi
je 0x100dcfe6
cmp dword [esi + 0xac], 0
je 0x100dcfe6
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
push 1
push esi
call dword [eax + 4]
test eax, eax
js 0x100dcffc
mov edx, dword [esi + 0xb0]
cmp edx, 1
jne 0x100dcf5c
cmp dword [esi + 0x74], 4
mov byte [esp + 0x43], dl
jae 0x100dcf9c
mov eax, dword [esp + 0x68]
mov eax, dword [eax]
mov ecx, dword [esi + 0x74]
mov dword [edi + ecx*4 + 0x8c], eax
mov eax, dword [esi + 0x74]
mov dword [esp + eax*4 + 0x94], ebx
jmp 0x100dcf9c
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
push edx
call dword [eax + 0x18]
cmp eax, 0x1e
je 0x100dcf7e
cmp eax, 0x1f
je 0x100dcf7e
cmp eax, 0x20
je 0x100dcf7e
cmp eax, 0x21
je 0x100dcf7e
cmp eax, 0x22
jne 0x100dcf9c
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x48]
inc dword [esp + 0x44]
mov dword [eax + edx], ebx
mov eax, dword [esp + 0x68]
mov eax, dword [eax]
mov dword [edx], eax
add edx, 4
mov dword [esp + 0x5c], edx
mov ecx, dword [edi + 8]
cmp dword [ecx + 0xb168], 0
je 0x100dcfdf
mov eax, dword [esi + 0x9c]
cmp eax, dword [ecx + 0xb164]
jne 0x100dcfdf
mov eax, dword [esi + 0xa0]
mov byte [esp + 0x42], 1
cmp eax, 6
jae 0x100dd439
cmp dword [esp + eax*4 + 0xa4], 0xffffffff
jne 0x100dd439
mov dword [esp + eax*4 + 0xa4], ebx
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x68]
inc ebx
add esi, 4
mov dword [esp + 0x68], esi
cmp ebx, eax
jb 0x100dcf00
jmp 0x100dd003
mov byte [edi + 0x11e], 1
mov al, byte [esp + 0x43]
test al, al
je 0x100dd147
mov eax, dword [edi + 8]
test byte [eax + 0xb0b4], 0x80
je 0x100dd147
mov edx, dword [esp + 0x94]
cmp edx, 0xffffffff
je 0x100dd147
mov esi, dword [esp + 0x98]
cmp esi, 0xffffffff
je 0x100dd147
cmp dword [esp + 0x9c], 0xffffffff
je 0x100dd147
mov ecx, dword [esp + 0xa0]
cmp ecx, 0xffffffff
je 0x100dd147
mov ebx, dword [esp + 0x50]
mov eax, dword [ebx + ecx*4]
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + ecx*4]
push 0x11
mov dword [esp + 0x64], eax
mov eax, dword [ebx + edx*4]
push 0
mov dword [esp + 0x84], eax
mov eax, dword [ebx + esi*4]
mov esi, dword [esp + 0x6c]
push 0
push 0
mov dword [esp + 0x90], eax
lea eax, [edi + 0x84]
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x60]
push eax
push 0x20400002
push esi
mov ecx, edi
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x70], 0xffffffff
call fcn.101019a0
mov ebx, eax
test ebx, ebx
js 0x100dd3e1
push 0x11
push 0
push 0
push 0
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x60]
push eax
push 0x20000002
push esi
mov ecx, edi
call fcn.101019a0
mov ebx, eax
test ebx, ebx
js 0x100dd3e1
mov ebx, dword [ebp + 0x14]
mov esi, dword [esp + 0x50]
xor ecx, ecx
mov edx, dword [esp + ecx + 0x94]
cmp edx, ebx
jae 0x100dd439
mov eax, dword [esp + ecx + 0x48]
add ecx, 4
mov dword [esi + edx*4], eax
cmp ecx, 8
jb 0x100dd101
xor edx, edx
mov ecx, dword [esp + edx*4 + 0x94]
cmp ecx, ebx
jae 0x100dd439
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + ecx*4]
call fcn.101019a0
inc edx
cmp edx, 4
jb 0x100dd121
mov byte [esp + 0x41], 1
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x100dd28e
mov eax, dword [edi + 8]
cmp byte [eax + 0xb0d5], 0
je 0x100dd28e
fld qword [eax + 0xb0d8]
mov edx, dword [esp + 0x6c]
sub esp, 8
fstp qword [esp]
push 0
push 0
push dword [eax + 0xb17c]
lea esi, [edx + ecx*4]
lea ecx, [esp + 0x5c]
push ecx
push eax
mov eax, 4
mov dword [esp + 0x78], esi
call fcn.101019a0
mov ebx, eax
test ebx, ebx
js 0x100dd3e1
mov edx, dword [esp + 0x44]
test edx, edx
je 0x100dd1b4
mov eax, dword [esp + 0x48]
mov ecx, edx
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x54]
push 0x11
push 0
push 0
push 0
push esi
push dword [esp + 0x80]
mov eax, edx
and eax, 0xfffff
push esi
or eax, 0x21000000
push eax
push dword [esp + 0x84]
mov ecx, edi
call fcn.101019a0
mov ebx, eax
test ebx, ebx
js 0x100dd3e1
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x100dd28e
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x84]
mov ebx, dword [esp + 0x5c]
sub edi, eax
sub eax, ebx
mov dword [esp + 0x48], eax
lea ecx, [ecx]
mov ecx, dword [eax + ebx]
mov edx, dword [ebx]
add eax, ebx
mov esi, dword [eax + edi]
mov eax, dword [ecx + 0x9c]
mov dword [edx + 0x9c], eax
mov eax, dword [ecx + 0xa0]
mov dword [edx + 0xa0], eax
mov eax, dword [ecx + 0xac]
mov dword [edx + 0xac], eax
mov eax, dword [ecx + 0xb0]
mov dword [edx + 0xb0], eax
mov eax, dword [ecx + 0xb4]
mov dword [edx + 0xb4], eax
mov eax, dword [ecx + 0xbc]
mov dword [edx + 0xbc], eax
mov eax, dword [ecx + 0x28]
mov ecx, dword [esp + 0x50]
mov dword [edx + 0x28], eax
mov eax, dword [ebx]
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + esi*4]
call fcn.101019a0
mov eax, dword [esp + 0x48]
add ebx, 4
dec dword [esp + 0x44]
jne 0x100dd210
mov edi, dword [esp + 0x54]
mov al, byte [esp + 0x42]
test al, al
je 0x100dd3d8
mov esi, dword [edi + 8]
mov edx, dword [esi + 0xb168]
test edx, edx
je 0x100dd2c2
xor ecx, ecx
lea eax, [edi + 0x8c]
nop
cmp dword [eax], 0xffffffff
je 0x100dd41c
inc ecx
add eax, 4
cmp ecx, 4
jb 0x100dd2b0
xor ecx, ecx
test edx, edx
je 0x100dd2e5
jmp 0x100dd2d0
mov eax, dword [ebp + 0x14]
cmp dword [esp + ecx*4 + 0xa4], eax
jae 0x100dd439
inc ecx
cmp ecx, edx
jb 0x100dd2d0
test byte [esi + 0xb0b4], 0x80
jne 0x100dd3d8
xor ecx, ecx
mov byte [esp + 0x41], 1
mov dword [esp + 0x54], ecx
test edx, edx
je 0x100dd3d8
mov edx, 0xb104
lea ebx, [edi + 0x8c]
mov dword [esp + 0x5c], edx
jmp 0x100dd320
mov esi, dword [esp + ecx*4 + 0xa4]
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x50]
push 0
add eax, edx
push eax
push ebx
add esi, esi
add esi, esi
add ecx, esi
push ecx
push 1
push 4
push dword [esp + 0x7c]
push edi
call fcn.101019a0
mov ebx, eax
test ebx, ebx
js 0x100dd3e1
mov eax, dword [esp + 0x58]
mov ecx, dword [eax + esi]
mov eax, dword [esp + 0x50]
mov edx, dword [eax + esi]
mov eax, dword [ecx + 0x9c]
mov dword [edx + 0x9c], eax
mov eax, dword [ecx + 0xa0]
mov dword [edx + 0xa0], eax
mov eax, dword [ecx + 0xac]
mov dword [edx + 0xac], eax
mov eax, dword [ecx + 0xb0]
mov dword [edx + 0xb0], eax
mov eax, dword [ecx + 0xb4]
mov dword [edx + 0xb4], eax
mov eax, dword [ecx + 0xbc]
mov dword [edx + 0xbc], eax
mov eax, dword [ecx + 0x28]
mov ecx, dword [esp + 0x54]
mov dword [edx + 0x28], eax
mov edx, dword [esp + 0x5c]
mov eax, dword [edi + 8]
inc ecx
add edx, 0x10
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], edx
lea ebx, [edi + 0x8c]
cmp ecx, dword [eax + 0xb168]
jb 0x100dd320
xor ebx, ebx
cmp byte [esp + 0x41], bl
sete bl
cmp dword [esp + 0x6c], 0
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
lea edx, [eax + eax*2]
mov dword [esp + 0x48], edx
je 0x100dd4be
test ecx, ecx
jne 0x100dd404
mov ecx, 1
mov edi, dword [esp + 0x70]
mov esi, dword [edi + edx*4 + 0xb2a0]
cmp ecx, dword [esi + 8]
jae 0x100dd440
sub dword [esi + 8], ecx
jmp 0x100dd4be
mov edx, dword [esp + 0x64]
push 0x10041880
push 0x1003ea60
push 0xdaf
mov eax, edi
call fcn.101019a0
add esp, 0xc
mov ebx, 0x80004005
jmp 0x100dd3e1
mov eax, dword [esi]
mov dword [edi + edx*4 + 0xb2a0], eax
mov edi, dword [edi + edx*4 + 0xb2a4]
test edi, edi
je 0x100dd4b3
mov eax, dword [edi + 0xc]
cmp eax, dword [esi + 0xc]
jb 0x100dd48a
mov eax, dword [0x101f3dec]
test eax, eax
jns 0x100dd474
xor eax, eax
push esi
push eax
push dword [eax]
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
call eax
jmp 0x100dd4be
push eax
mov eax, dword [sym.imp.kernel32.dll_TlsGetValue]
call eax
push esi
push 0
push dword [eax]
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
call eax
jmp 0x100dd4be
test edi, edi
je 0x100dd4b3
mov eax, dword [0x101f3dec]
test eax, eax
jns 0x100dd49b
xor eax, eax
jmp 0x100dd4a3
push eax
mov eax, dword [sym.imp.kernel32.dll_TlsGetValue]
call eax
push edi
push 0
push dword [eax]
mov eax, dword [sym.imp.kernel32.dll_HeapFree]
call eax
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x70]
mov dword [eax + edx*4 + 0xb2a4], esi
cmp dword [esp + 0x84], 0
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
lea edx, [eax + eax*2]
mov dword [esp + 0x48], edx
je 0x100dd57e
test ecx, ecx
jne 0x100dd4ea
mov ecx, 1
mov edi, dword [esp + 0x88]
mov esi, dword [edi + edx*4 + 0xb2a0]
cmp ecx, dword [esi + 8]
jae 0x100dd502
sub dword [esi + 8], ecx
jmp 0x100dd57e
mov eax, dword [esi]
mov dword [edi + edx*4 + 0xb2a0], eax
mov edi, dword [edi + edx*4 + 0xb2a4]
test edi, edi
je 0x100dd570
mov eax, dword [edi + 0xc]
cmp eax, dword [esi + 0xc]
jb 0x100dd549
mov eax, dword [0x101f3dec]
test eax, eax
jns 0x100dd535
xor eax, eax
push esi
push eax
push dword [eax]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x100dd57e
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
push esi
push 0
push dword [eax]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x100dd57e
test edi, edi
je 0x100dd570
mov eax, dword [0x101f3dec]
test eax, eax
jns 0x100dd55a
xor eax, eax
jmp 0x100dd561
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
push edi
push 0
push dword [eax]
call dword [sym.imp.kernel32.dll_HeapFree]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x88]
mov dword [eax + edx*4 + 0xb2a4], esi
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.101ec0b6
mov esp, ebp
pop ebp
ret 0x10