Function at 0x100c7ba0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, esi
call fcn.100c6860
xor ebx, ebx
cmp eax, ebx
jl 0x100c83c7
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x8040]
xor edx, edx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x1c], edx
cmp edi, ebx
jbe 0x100c83c5
jmp 0x100c7be0
mov ecx, dword [esi + 0x14]
mov ecx, dword [ecx + edx*4]
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 8], ecx
test eax, 0xf0000000
je 0x100c83b9
mov edi, eax
mov eax, dword [ecx]
xor edx, edx
and edi, 0xfffff
div edi
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x2c], eax
mov eax, dword [edx]
mov edx, dword [eax + 0x68]
mov al, byte [eax + 0x6c]
mov byte [ebp - 1], al
lea eax, [ebp - 0x18]
mov dword [ebp - 0x28], edx
mov edx, dword [esi]
mov edx, dword [edx + 0x48]
push eax
push ecx
mov ecx, esi
call edx
test al, al
je 0x100c839c
jmp 0x100c7c37
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
and ecx, 0xfff00000
cmp ecx, 0x73700000
je 0x100c839c
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 4]
mov eax, edx
imul eax, edi
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x38], eax
mov eax, dword [eax + 8]
and eax, 2
xor ecx, ecx
or eax, ecx
jne 0x100c83d0
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x2c], eax
jbe 0x100c7d54
mov dword [ebp - 0xc], eax
jmp 0x100c7c90
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0xc]
mov ecx, dword [edx + ecx]
mov edx, dword [esi]
mov edi, dword [ecx + 0x50]
push ebx
push eax
mov eax, dword [edx + 0xc4]
mov ecx, esi
call eax
cmp eax, 1
je 0x100c7d37
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov ecx, eax
and ecx, 0x40
xor edi, edi
or ecx, edi
je 0x100c7d37
mov ecx, dword [ebp - 0x38]
xor eax, dword [ecx + 8]
xor edx, dword [ecx + 0xc]
and eax, 0x28012bf
and edx, 0x2000
or eax, edx
jne 0x100c7d37
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x100c7d37
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov edx, dword [edi + edx]
mov eax, dword [edx + 0x50]
mov eax, dword [eax + 0x24]
xor ecx, ecx
test eax, eax
je 0x100c7d28
mov ebx, dword [edx + 0x60]
cmp dword [eax + 0x60], ebx
jne 0x100c7d14
mov esi, dword [eax + 0x5c]
cmp esi, dword [edx + 0x5c]
jne 0x100c7d14
add ecx, dword [eax + 0x20]
mov eax, dword [eax]
test eax, eax
jne 0x100c7d04
cmp dword [ebp - 0x24], ecx
jae 0x100c7d28
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], eax
add edi, 4
sub dword [ebp - 0x20], 1
jne 0x100c7cec
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
add eax, eax
add eax, eax
add dword [ebp - 0xc], eax
inc ebx
mov dword [ebp - 0x14], ebx
cmp ebx, dword [ebp - 0x2c]
jb 0x100c7c90
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
imul edx, edi
mov eax, dword [ecx + 4]
mov eax, dword [eax + edx*4]
mov ebx, dword [eax + 0x50]
mov edx, dword [eax + 0x60]
mov edi, dword [eax + 0x5c]
mov eax, dword [ebx + 8]
and eax, 0x40
xor ecx, ecx
or eax, ecx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], edi
je 0x100c83f6
or eax, 0xffffffff
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x100c7dd1
jmp 0x100c7da0
cmp dword [eax + 0x60], edx
jne 0x100c7dcb
cmp dword [eax + 0x5c], edi
jne 0x100c7dcb
cmp dword [eax + 0x80], 0
jne 0x100c7dcb
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [ebp - 0x1c]
jb 0x100c7dcb
mov ebx, dword [eax + 0x64]
mov dword [ebp + ebx*4 - 0x68], eax
cmp dword [ebp - 0x14], ecx
ja 0x100c7dcb
inc ecx
mov dword [ebp - 0x14], ecx
mov eax, dword [eax]
test eax, eax
jne 0x100c7da0
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], ecx
jmp 0x100c7de0
cmp dword [ebp + ecx*4 - 0x68], 0xffffffff
je 0x100c807e
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x8040]
mov ecx, dword [ebp - 0x30]
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [0x101e316c]
xor edi, edi
cmp eax, edi
jge 0x100c7e0c
xor eax, eax
jmp 0x100c7e13
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], edi
je 0x100c7e3b
mov ecx, dword [eax + 0xc]
cmp ecx, edi
jne 0x100c7e25
xor ecx, ecx
mov ebx, ecx
jmp 0x100c7e4c
mov edx, dword [ecx]
mov dword [eax + 0xc], edx
cmp edx, edi
jne 0x100c7e31
mov dword [eax + 0x10], edi
mov dword [ecx], 0xfefefefe
mov ebx, ecx
jmp 0x100c7e4c
mov ecx, dword [eax + 8]
push 0x10
push pe_nt_image_headers32
call fcn.101d8457
mov ebx, eax
cmp ebx, edi
je 0x100c7ea7
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x38]
or eax, 0xffffffff
push ecx
push esi
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x48], eax
push edx
mov eax, ebx
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 0x94], edi
mov dword [ebx + 0x98], edi
mov dword [ebx + 0x24], edi
call fcn.10165570
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
jl 0x100c7eb1
mov edi, dword [ebp + 8]
push 0
call fcn.10169830
mov esi, eax
mov dword [ebp - 0x20], eax
test esi, esi
jl 0x100c7eb1
mov eax, dword [ebp - 0xc]
xor esi, esi
mov dword [ebp + eax*4 - 0x78], ebx
jmp 0x100c7fde
mov esi, 0x8007000e
jmp 0x100c7fde
mov ecx, dword [ebx + 0x50]
test ecx, ecx
je 0x100c7ee3
cmp ecx, 0xffffffff
je 0x100c7ee3
mov eax, dword [ebx + 4]
test eax, eax
je 0x100c7eca
mov edx, dword [ebx]
mov dword [eax], edx
jmp 0x100c7ecf
mov eax, dword [ebx]
mov dword [ecx + 0x24], eax
mov eax, dword [ebx]
test eax, eax
je 0x100c7edd
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
jmp 0x100c7ee3
mov edx, dword [ebx + 4]
mov dword [ecx + 0x28], edx
mov edi, dword [ebx + 0x94]
test edi, edi
je 0x100c7f3d
cmp byte [edi + 0xc], 0
mov dword [edi + 8], 0
je 0x100c7f27
mov esi, dword [edi]
test esi, esi
je 0x100c7f20
mov eax, dword [0x101e316c]
test eax, eax
jge 0x100c7f0d
xor eax, eax
jmp 0x100c7f14
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x20]
mov byte [edi + 0xc], 0
push edi
mov dword [edi], 0
mov dword [edi + 4], 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, dword [ebx + 0x98]
xor eax, eax
mov dword [ebx + 0x94], eax
cmp edi, eax
je 0x100c7f9a
mov dword [edi + 8], eax
cmp byte [edi + 0xc], al
je 0x100c7f84
mov esi, dword [edi]
test esi, esi
je 0x100c7f7d
mov eax, dword [0x101e316c]
test eax, eax
jge 0x100c7f6a
xor eax, eax
jmp 0x100c7f71
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x20]
mov byte [edi + 0xc], 0
push edi
mov dword [edi], 0
mov dword [edi + 4], 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
xor edi, edi
mov dword [ebx + 0x98], edi
mov eax, dword [0x101e316c]
cmp eax, edi
jl 0x100c7fb4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push pe_nt_image_headers32
push 0xfe
push ebx
call sub.msvcrt.dll_memset
mov dword [ebx], 0
mov eax, dword [edi + 0x10]
add esp, 0xc
test eax, eax
je 0x100c7fd8
mov dword [eax], ebx
jmp 0x100c7fdb
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
xor edx, edx
cmp esi, edx
mov eax, esi
jl 0x100c83c7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + ecx*4 - 0x78]
mov ecx, dword [ebp + ecx*4 - 0x68]
mov esi, dword [ecx + 0x8c]
mov dword [eax + 0x8c], esi
mov esi, dword [ecx + 0x90]
mov dword [eax + 0x90], esi
mov esi, dword [ecx + 0xa4]
mov dword [eax + 0xa4], esi
mov esi, dword [ecx + 0xa8]
mov dword [eax + 0xa8], esi
mov esi, dword [ecx + 0xac]
mov dword [eax + 0xac], esi
mov esi, dword [ecx + 0xb4]
mov dword [eax + 0xb4], esi
mov ecx, dword [ecx + 0x28]
or dword [eax + 0x40], 0x80
inc dword [ebp - 0x24]
mov esi, dword [ebp + 8]
mov dword [eax + 0xa4], edx
mov dword [eax + 0xac], edx
mov edx, dword [eax + 0x44]
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x44], edx
mov dl, byte [ebp - 1]
mov dword [eax + 0x68], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xa8], 0xffffffff
mov byte [eax + 0x6c], dl
mov eax, dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0xc], ecx
cmp ecx, 4
jb 0x100c7de0
push eax
push eax
and eax, 0xfffff
or eax, 0x10000000
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.10169e20
test eax, eax
jl 0x100c83c7
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x34]
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x34], ecx
mov eax, dword [eax + 0x38]
mov dword [edx + 0x38], eax
xor ecx, ecx
xor eax, eax
mov edi, dword [ebp + eax - 0x68]
cmp edi, 0xffffffff
je 0x100c80dc
mov ebx, dword [edx + 4]
mov dword [ecx + ebx], edi
mov edi, dword [edx + 0xc]
mov ebx, dword [ebp + eax - 0x78]
mov dword [ecx + edi], ebx
add ecx, 4
add eax, 4
cmp eax, 0x10
jb 0x100c80c0
mov eax, dword [ebp - 0x30]
inc dword [eax + 0x10]
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dword [ebp - 0x38], eax
cmp eax, dword [ebp - 0x14]
jae 0x100c8381
mov edx, dword [esi + 0x14]
mov edi, dword [edx + ecx*4]
test dword [edi + 0x3c], 0xf0000000
mov dword [ebp - 0x34], edi
je 0x100c8371
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x68]
mov cl, byte [ecx + 0x6c]
mov edx, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100c8138
cmp eax, edx
jne 0x100c812d
cmp cl, byte [ebp - 1]
je 0x100c8138
mov cl, byte [eax + 0x6c]
mov eax, dword [eax + 0x68]
cmp eax, 0xffffffff
jne 0x100c8124
cmp eax, edx
jne 0x100c8371
cmp cl, byte [ebp - 1]
jne 0x100c8371
mov edx, dword [esi]
mov eax, dword [edx + 0x48]
push 0
push edi
mov ecx, esi
call eax
test al, al
je 0x100c8371
mov ecx, dword [edi + 0x3c]
and ecx, 0xfff00000
cmp ecx, 0x73700000
je 0x100c8371
xor edx, edx
mov dword [ebp - 0x24], edx
cmp dword [edi], edx
jbe 0x100c8371
nop
mov eax, dword [edi + 4]
mov ebx, dword [ebp - 0x40]
lea ecx, [eax + edx*4]
mov eax, dword [ecx]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x20], eax
cmp dword [eax + 0x50], ebx
jne 0x100c8365
mov ebx, dword [ebp - 0x44]
cmp dword [eax + 0x60], ebx
jne 0x100c8365
mov ebx, dword [ebp - 0x48]
cmp dword [eax + 0x5c], ebx
jne 0x100c8365
cmp dword [eax + 0x7c], 0xffffffff
jne 0x100c81c6
mov eax, dword [eax + 0x64]
mov eax, dword [ebp + eax*4 - 0x78]
mov dword [ecx], eax
jmp 0x100c8365
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x64]
mov esi, dword [ebp + edx*4 - 0x78]
mov eax, dword [esi + 0x64]
mov edx, dword [ebp + 8]
mov ecx, dword [esi + 0x60]
mov dword [ebp - 0xc], eax
mov eax, dword [edx + 0x8040]
mov dword [ebp - 0x50], eax
mov eax, dword [0x101e316c]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x4c], ecx
jge 0x100c81f7
xor eax, eax
jmp 0x100c81fe
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], edi
je 0x100c8226
mov ecx, dword [eax + 0xc]
cmp ecx, edi
jne 0x100c8210
xor ecx, ecx
mov ebx, ecx
jmp 0x100c8237
mov edx, dword [ecx]
mov dword [eax + 0xc], edx
cmp edx, edi
jne 0x100c821c
mov dword [eax + 0x10], edi
mov dword [ecx], 0xfefefefe
mov ebx, ecx
jmp 0x100c8237
mov ecx, dword [eax + 8]
push 0x10
push pe_nt_image_headers32
call fcn.101d8457
mov ebx, eax
cmp ebx, edi
je 0x100c828e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x4c]
or eax, 0xffffffff
push ecx
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x48], eax
mov eax, dword [ebp - 0x50]
push edx
push eax
mov eax, ebx
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 0x94], edi
mov dword [ebx + 0x98], edi
mov dword [ebx + 0x24], edi
call fcn.10165570
cmp eax, edi
mov dword [ebp - 0xc], eax
jl 0x100c8295
mov edi, dword [ebp + 8]
push 0
call fcn.10169830
mov dword [ebp - 0xc], eax
test eax, eax
jl 0x100c8295
mov ecx, dword [ebp - 0x54]
xor edi, edi
mov dword [ecx], ebx
mov eax, edi
jmp 0x100c82e1
mov eax, 0x8007000e
jmp 0x100c82e1
mov edi, ebx
call fcn.101654a0
mov eax, dword [0x101e316c]
test eax, eax
jge 0x100c82a9
xor edi, edi
jmp 0x100c82b2
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
push pe_nt_image_headers32
push 0xfe
push ebx
call sub.msvcrt.dll_memset
mov dword [ebx], 0
mov eax, dword [edi + 0x10]
add esp, 0xc
test eax, eax
je 0x100c82d6
mov dword [eax], ebx
jmp 0x100c82d9
mov dword [edi + 0xc], ebx
mov eax, dword [ebp - 0xc]
mov dword [edi + 0x10], ebx
xor edi, edi
cmp eax, edi
jl 0x100c83c7
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 4]
mov edx, dword [esi + 0x8c]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0x8c], edx
mov ecx, dword [esi + 0x90]
mov edi, dword [ebp - 0x34]
mov dword [eax + 0x90], ecx
mov edx, dword [esi + 0xa4]
mov dword [eax + 0xa4], edx
mov ecx, dword [esi + 0xa8]
mov dword [eax + 0xa8], ecx
mov edx, dword [esi + 0xac]
mov dword [eax + 0xac], edx
mov ecx, dword [esi + 0xb4]
mov dword [eax + 0xb4], ecx
mov edx, dword [esi + 0x28]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
mov dword [eax + 0x28], edx
mov edx, dword [ecx + 0x64]
mov edx, dword [ebp + edx*4 - 0x78]
mov dword [eax + 0x7c], edx
mov ecx, dword [ecx + 0x80]
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x80], ecx
inc edx
mov dword [ebp - 0x24], edx
cmp edx, dword [edi]
jb 0x100c8180
mov ecx, dword [ebp - 0x38]
inc ecx
mov dword [ebp - 0x38], ecx
cmp ecx, dword [ebp - 0x14]
jb 0x100c80fb
mov ecx, dword [ebp - 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x48]
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, esi
call edx
xor ebx, ebx
test al, al
jne 0x100c7c34
mov edi, dword [ebp - 8]
push ebx
push edi
push esi
call fcn.1016a100
cmp eax, ebx
jl 0x100c83c7
mov edx, dword [ebp - 0x1c]
mov dword [edi + 0x3c], ebx
mov dword [edi], ebx
mov dword [edi + 8], ebx
mov edi, dword [ebp - 0x58]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, edi
jb 0x100c7be0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x38]
push 0x10087320
mov esi, dword [ebp + 8]
xor ecx, ecx
call fcn.10168ee0
add esp, 4
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x38]
push 0x10087354
jmp 0x100c83db