Function at 0x100dc030
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10294]
mov ecx, dword [eax + 0x3c]
push ebx
push esi
and ecx, 0xfffff
push edi
mov dword [ebp - 0x1c], ecx
je 0x100dc31f
mov eax, dword [eax]
xor edx, edx
div ecx
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x38], eax
cmp eax, ecx
jbe 0x100dc31f
mov dword [ebp - 0x20], ecx
nop
or edx, 0xffffffff
mov eax, edx
xor ebx, ebx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x1c]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], edx
cmp eax, ebx
jbe 0x100dc1f5
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10294]
mov ecx, dword [eax + 4]
add ecx, dword [ebp - 0x20]
mov dword [ebp - 0x30], ecx
jmp 0x100dc0ba
xor ebx, ebx
mov eax, dword [ecx]
mov ecx, dword [eax + 0x64]
cmp ecx, 3
ja case.default.0x100dc0c8
jmp dword [ecx*4 + 0x100dc6d4]
mov ecx, dword [eax + 0x88]
cmp ecx, edx
je case.default.0x100dc0c8
cmp dword [ebp - 0x10], ebx
jne case.default.0x100dc0c8
mov dword [ebp + esi*4 - 0x54], ecx
mov dword [ebp + esi*4 - 0x64], eax
mov dword [ebp + esi*4 - 0x74], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x10], ecx
inc esi
jmp case.default.0x100dc0c8
mov ecx, dword [eax + 0x88]
cmp ecx, edx
je case.default.0x100dc0c8
cmp dword [ebp - 0x14], ebx
jne case.default.0x100dc0c8
mov dword [ebp + esi*4 - 0x54], ecx
mov dword [ebp + esi*4 - 0x64], eax
mov dword [ebp + esi*4 - 0x74], edi
mov dword [ebp - 0x14], ecx
inc esi
jmp case.default.0x100dc0c8
cmp dword [ebp - 0xc], edx
jne case.default.0x100dc0c8
mov ebx, dword [eax + 0x88]
mov dword [ebp - 0xc], eax
mov dword [ebp + esi*4 - 0x54], edx
mov dword [ebp + esi*4 - 0x64], eax
mov dword [ebp + esi*4 - 0x74], edi
cmp ebx, edx
je 0x100dc1dc
mov ecx, dword [ebx + 0x3c]
and ecx, 0xfff00000
mov dword [ebp - 0x24], ebx
cmp ecx, 0x10000000
jne 0x100dc17f
push eax
call fcn.101730a0
cmp eax, 0xffffffff
jne 0x100dc174
mov dword [ebp - 0xc], eax
jmp 0x100dc1dc
mov edx, dword [ebx + 4]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0xc], eax
jmp 0x100dc1dc
mov dword [ebp - 0x24], 0
jmp 0x100dc1dc
cmp dword [ebp - 0x18], edx
jne case.default.0x100dc0c8
mov ebx, dword [eax + 0x88]
mov dword [ebp - 0x18], eax
mov dword [ebp + esi*4 - 0x54], edx
mov dword [ebp + esi*4 - 0x64], eax
mov dword [ebp + esi*4 - 0x74], edi
cmp ebx, edx
je 0x100dc1dc
mov ecx, dword [ebx + 0x3c]
and ecx, 0xfff00000
mov dword [ebp - 0x28], ebx
cmp ecx, 0x10000000
jne 0x100dc1d5
push eax
call fcn.101730a0
cmp eax, 0xffffffff
jne 0x100dc1ca
mov dword [ebp - 0x18], eax
jmp 0x100dc1dc
mov edx, dword [ebx + 4]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x18], eax
jmp 0x100dc1dc
mov dword [ebp - 0x28], 0
inc esi
or edx, 0xffffffff
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
inc edi
add ecx, 4
mov dword [ebp - 0x30], ecx
cmp edi, eax
jb 0x100dc0b8
cmp esi, eax
jne 0x100dc305
cmp esi, 1
jbe 0x100dc305
mov edx, dword [ebp - 0x14]
mov byte [ebp - 5], 0
test edx, edx
je 0x100dc267
cmp dword [edx + 0x3c], 0x20500001
jne 0x100dc263
mov edi, dword [ebp - 0xc]
cmp edi, 0xffffffff
je 0x100dc232
mov eax, dword [edx + 4]
cmp edi, dword [eax]
je 0x100dc232
cmp edi, dword [eax + 4]
je 0x100dc232
mov byte [ebp - 5], 1
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xffffffff
je 0x100dc267
mov eax, dword [edx + 4]
cmp ecx, dword [eax]
je 0x100dc24a
cmp ecx, dword [eax + 4]
je 0x100dc24a
mov byte [ebp - 5], 1
cmp edi, 0xffffffff
je 0x100dc267
cmp ecx, edi
je 0x100dc25c
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
jne 0x100dc267
jmp 0x100dc263
mov edx, dword [eax]
cmp edx, dword [eax + 4]
je 0x100dc267
mov byte [ebp - 5], 1
cmp dword [ebp - 0x10], 0
je 0x100dc2a1
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x40]
and eax, 0x800000
xor ecx, ecx
or eax, ecx
je 0x100dc305
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0x34]
lea ecx, [ebp - 0x44]
push ecx
call fcn.101658d0
test eax, eax
jne 0x100dc305
fld1
fcomp qword [ebp - 0x44]
fnstsw ax
test ah, 0x44
jp 0x100dc305
cmp byte [ebp - 5], 0
jne 0x100dc305
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ecx
mov byte [ebp - 5], 0
test ecx, ecx
jbe 0x100dc2f9
mov edx, dword [ebp + 8]
mov edi, dword [edx + 0x10294]
mov eax, dword [edi + 4]
add eax, dword [ebp - 0x20]
mov edx, ecx
cmp dword [ebp - 0x24], 0
mov ecx, dword [eax]
jne 0x100dc2d4
cmp dword [ecx + 0x64], 2
je 0x100dc2e0
cmp dword [ebp - 0x28], 0
jne 0x100dc2e5
cmp dword [ecx + 0x64], 3
jne 0x100dc2e5
dec dword [ebp - 0x10]
jmp 0x100dc2f1
mov ecx, dword [ecx + 0x18]
cmp ecx, dword [edi + 0x10]
je 0x100dc2f1
mov byte [ebp - 5], 1
add eax, 4
sub edx, 1
jne 0x100dc2c6
cmp dword [ebp - 0x10], 2
jb 0x100dc305
cmp byte [ebp - 5], 0
je 0x100dc32d
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
add ecx, ecx
add ecx, ecx
add dword [ebp - 0x20], ecx
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, dword [ebp - 0x38]
jb 0x100dc070
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x101e316c]
test eax, eax
jge 0x100dc33a
xor eax, eax
jmp 0x100dc341
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x18], 0
je 0x100dc368
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x100dc352
mov edi, ecx
jmp 0x100dc376
mov edx, dword [ecx]
mov dword [eax + 0x18], edx
test edx, edx
jne 0x100dc35e
mov dword [eax + 0x1c], edx
mov dword [ecx], 0xfefefefe
mov edi, ecx
jmp 0x100dc376
mov ecx, dword [eax + 0x14]
push 0x10
push 0x44
call fcn.101d8457
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x100dc3e9
or eax, 0xffffffff
xor edx, edx
mov dword [edi + 0x10], eax
mov word [edi + 0x40], dx
mov edx, dword [ebp - 0x10]
mov dword [edi + 0x20], eax
xor ecx, ecx
mov eax, edx
push ebx
and eax, 0xfffff
mov word [edi + 0x42], cx
lea ecx, [edx + edx]
or eax, 0x70900000
push edi
mov dword [edi], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
call fcn.10172020
cmp eax, ebx
mov dword [ebp - 0x38], eax
jge 0x100dc3f7
mov esi, edi
call fcn.10171ee0
call fcn.101751f0
mov eax, dword [ebp - 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x8007000e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10294]
mov ecx, dword [eax + 0x34]
mov dword [edi + 0x34], ecx
mov edx, dword [eax + 0x38]
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov dword [edi + 0x38], edx
cmp ecx, ebx
jbe 0x100dc484
mov edx, dword [ebp - 0xc]
add ecx, ecx
add ecx, ecx
lea esp, [esp]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x100dc443
mov edx, dword [ebx + 4]
mov edx, dword [edx]
mov ebx, dword [edi + 4]
mov dword [ebx + eax*4], edx
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 4]
mov ebx, dword [edi + 4]
mov edx, dword [edx + 4]
mov dword [ecx + ebx], edx
jmp 0x100dc476
mov ebx, dword [ebp - 0x18]
cmp ebx, 0xffffffff
jne 0x100dc461
cmp edx, ebx
je 0x100dc31f
mov ebx, dword [edi + 4]
mov dword [ebx + eax*4], edx
mov ebx, dword [edi + 4]
mov dword [ecx + ebx], edx
jmp 0x100dc479
cmp edx, 0xffffffff
jne 0x100dc31f
mov edx, dword [edi + 4]
mov dword [edx + eax*4], ebx
mov edx, dword [edi + 4]
mov dword [ecx + edx], ebx
mov edx, dword [ebp - 0xc]
inc eax
add ecx, 4
cmp eax, dword [ebp - 0x10]
jb 0x100dc420
xor ebx, ebx
xor edx, edx
xor ecx, ecx
cmp esi, ebx
jbe 0x100dc4dd
lea esp, [esp]
cmp dword [ebp - 0x24], 0
mov eax, dword [ebp + ecx*4 - 0x64]
jne 0x100dc4a0
cmp dword [eax + 0x64], 2
je 0x100dc4d3
cmp dword [ebp - 0x28], 0
jne 0x100dc4ac
cmp dword [eax + 0x64], 3
je 0x100dc4d3
mov ebx, dword [edi + 0xc]
mov dword [ebx + edx*4], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx + 0x10294]
mov ebx, dword [ebx + 4]
inc edx
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x2c]
imul edx, dword [ebp - 0x1c]
add edx, dword [ebp + ecx*4 - 0x74]
mov dword [ebx + edx*4], eax
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x10]
ja 0x100dc528
inc ecx
cmp ecx, esi
jb 0x100dc490
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
cmp dword [edi + 8], ebx
jbe 0x100dc59a
mov ecx, 1
mov dword [ebp - 0x30], ecx
cmp ecx, dword [edi + 8]
jae 0x100dc589
lea esp, [esp]
mov eax, dword [edi + 0xc]
mov ebx, dword [eax + ebx*4]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebx + 0x64]
mov dword [ebp - 0x38], edx
cmp ebx, dword [edx + 0x64]
jbe 0x100dc56e
mov ebx, dword [ebp - 0x34]
mov dword [eax + ecx*4], ebx
mov eax, dword [edi + 0xc]
mov ebx, dword [ebp - 0x2c]
mov dword [eax + ebx*4], edx
jmp 0x100dc571
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10294]
test eax, eax
je 0x100dc540
mov eax, dword [eax + 0x38]
test eax, eax
je 0x100dc540
mov edx, eax
jmp 0x100dc542
xor edx, edx
push 0x10087e84
mov ecx, 0x12da
call fcn.10168ee0
add esp, 4
mov esi, edi
call fcn.10171ee0
call fcn.101751f0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0x64]
cmp eax, dword [edx + 0x64]
je 0x100dc5b1
inc ecx
cmp ecx, dword [edi + 8]
jb 0x100dc500
mov ecx, dword [ebp - 0x30]
inc ebx
inc ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ecx
cmp ebx, dword [edi + 8]
jb 0x100dc4f3
mov eax, dword [ebp + 8]
cmp dword [eax + 0x10], 0
jbe 0x100dc63e
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx]
jmp 0x100dc640
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10294]
test eax, eax
je 0x100dc5c9
mov eax, dword [eax + 0x38]
test eax, eax
je 0x100dc5c9
mov edx, eax
jmp 0x100dc5cb
xor edx, edx
push 0x100873bc
mov ecx, 0x12db
call fcn.10168ee0
add esp, 4
mov esi, edi
call fcn.10171ee0
mov eax, dword [0x101e316c]
test eax, eax
jl 0x100dc630
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x100dc630
push 0x44
push 0xfe
push edi
call sub.msvcrt.dll_memset
mov dword [edi], 0
mov eax, dword [esi + 0x1c]
add esp, 0xc
test eax, eax
je 0x100dc62a
mov dword [eax], edi
mov dword [esi + 0x1c], edi
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor edx, edx
xor ecx, ecx
test esi, esi
jbe 0x100dc668
mov eax, dword [ebp + ecx*4 - 0x54]
cmp eax, 0xffffffff
je 0x100dc663
mov ebx, dword [edx + 0x10]
cmp ebx, dword [eax + 0x10]
jae 0x100dc659
mov edx, eax
xor ebx, ebx
mov dword [eax + 0x3c], ebx
mov dword [eax], ebx
mov dword [eax + 8], ebx
inc ecx
cmp ecx, esi
jb 0x100dc646
push edi
push edx
call fcn.10172c80
test eax, eax
jl 0x100dc324
mov esi, edi
call fcn.10171ee0
mov eax, dword [0x101e316c]
test eax, eax
jl 0x100dc6c7
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x100dc6c7
push 0x44
push 0xfe
push edi
call sub.msvcrt.dll_memset
mov dword [edi], 0
mov eax, dword [esi + 0x1c]
add esp, 0xc
test eax, eax
je 0x100dc6c1
mov dword [eax], edi
mov dword [esi + 0x1c], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4