Function at 0x100ce590
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10123488
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 1
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100ce5de
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov dword [ebp - 0x28], eax
and ecx, 0xfffffffe
push ecx
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x1012ec40
call fcn.10023fc0
push ecx
mov ecx, esp
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], esp
push eax
push eax
push str._s_s.manifest
push ecx
call fcn.10044f30
mov byte [ebp - 4], 4
add esp, 0xc
mov ecx, dword [ebp + 8]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x14]
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.10044c80
add esp, 0xc
push 0
push 0
push 0
push ecx
mov byte [ebp - 4], 5
mov esi, esp
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x2c]
xor edx, edx
mov dword [esi], eax
call fcn.1003d3b0
add esp, 0x10
mov ebx, dword [ebp + 0x14]
mov ecx, ebx
push eax
mov byte [ebp - 4], 6
call fcn.100244b0
mov byte [ebp - 4], 5
or edi, 0xffffffff
mov edx, dword [ebp - 0x2c]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x100ce6be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, dword [ebx]
mov esi, esp
sub ecx, 0x10
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x18]
mov dword [esi], eax
call fcn.10045950
mov esi, eax
add esp, 4
test esi, esi
jne 0x100ce7d3
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x1012ec40
call fcn.10023fc0
push ecx
mov byte [ebp - 4], 7
mov eax, esp
mov dword [ebp - 0x30], esp
push dword [ebp + 0xc]
push str._s.manifest
push eax
call fcn.10044f30
mov byte [ebp - 4], 8
add esp, 8
mov ecx, dword [ebp + 8]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x2c]
mov dword [esi], eax
mov byte [ebp - 4], 5
call fcn.10044c80
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.100244b0
mov byte [ebp - 4], 5
mov ecx, edi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ce762
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 0
push ecx
mov ecx, dword [ebp - 0x14]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x2c]
xor edx, edx
mov dword [esi], eax
call fcn.1003d3b0
add esp, 0x10
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xa
call fcn.100244b0
mov byte [ebp - 4], 5
mov ecx, edi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ce7b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push ecx
mov ecx, dword [ebx]
mov esi, esp
sub ecx, 0x10
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x18]
mov dword [esi], eax
call fcn.10045950
add esp, 4
mov esi, eax
push dword [ebp - 0x28]
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.10049880
mov byte [ebp - 4], 0xb
mov edx, 0x1012ec60
mov ebx, dword [ebp - 0x18]
test esi, esi
push ebx
mov ecx, 0x1014a2d0
cmove ecx, edx
push ecx
push dword [eax]
lea eax, [ebp - 0x20]
push 0
push dword [ebp - 0x14]
push str.GetLocalVirtAssembly:_reading_target_manifest_file__s__d:__s_s_s
push eax
call fcn.10044f30
add esp, 0x1c
mov byte [ebp - 4], 0xc
mov ecx, str.hkActCtx
mov edx, dword [ebp - 0x20]
call fcn.10043b30
mov byte [ebp - 4], 0xb
mov ecx, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ce84d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
mov ecx, edi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ce86d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x100ce918
push ecx
push str.assembly
mov edx, ebx
lea ecx, [ebp - 0x20]
call fcn.100c8480
add esp, 8
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp + 0x10]
mov byte [ebp - 4], 0xd
cmp esi, eax
je 0x100ce8b6
mov ecx, dword [esi]
test ecx, ecx
je 0x100ce8ab
dec dword [ecx + 0x30]
mov ecx, esi
push 0
call fcn.100c8d10
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [esi], eax
test eax, eax
je 0x100ce8b6
inc dword [eax + 0x30]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100ce8ce
dec dword [eax + 0x30]
lea ecx, [ebp - 0x20]
push 0
call fcn.100c8d10
cmp dword [esi], 0
lea eax, [ebp - 0x20]
jne 0x100ce91f
push dword [ebp - 0x14]
push str._GetLocalVirtAssembly__s_:_manifest_error__assembly_node_
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 0xe
mov ecx, str.hkActCtx
mov edx, dword [ebp - 0x20]
call fcn.10043b30
mov byte [ebp - 4], 5
mov ecx, edi
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ce918
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
jmp 0x100cecbf
push 0
push str.assemblyIdentity
push eax
mov ecx, esi
call fcn.100c9120
mov byte [ebp - 4], 0xf
mov edi, dword [ebp - 0x20]
test edi, edi
jne 0x100ce95c
push ecx
mov eax, esp
push dword [ebp - 0x14]
push str._GetLocalVirtAssembly__s_:_manifest_error__assemblyIdentity_node_
push eax
call fcn.10044f30
add esp, 0xc
call fcn.100cc760
add esp, 4
xor esi, esi
jmp 0x100ceca7
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0x28]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], eax
test eax, eax
jle 0x100ce996
push 0x1013bf68
push dword [esi]
call fcn.10103523
add esp, 8
test eax, eax
je 0x100ceb78
mov eax, dword [ebp - 0x1c]
add esi, 8
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x2c]
jl 0x100ce970
xor eax, eax
mov ecx, dword [ebp - 0x10]
push eax
add ecx, 8
call fcn.100240c0
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0x28]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], eax
test eax, eax
jle 0x100ce9e6
jmp 0x100ce9c0
push 0x1013c31c
push dword [esi]
call fcn.10103523
add esp, 8
test eax, eax
je 0x100ceb80
mov eax, dword [ebp - 0x1c]
add esi, 8
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x2c]
jl 0x100ce9c0
xor eax, eax
mov ecx, dword [ebp - 0x10]
push eax
lea ecx, [ecx + 4]
call fcn.100240c0
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0x28]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], eax
test eax, eax
jle 0x100cea36
jmp 0x100cea10
push str.processorArchitecture
push dword [esi]
call fcn.10103523
add esp, 8
test eax, eax
je 0x100ceb88
mov eax, dword [ebp - 0x1c]
add esi, 8
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x2c]
jl 0x100cea10
xor eax, eax
mov ecx, dword [ebp - 0x10]
push eax
lea ecx, [ecx + 0x10]
call fcn.100240c0
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0x28]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], eax
test eax, eax
jle 0x100cea86
jmp 0x100cea60
push str.publicKeyToken
push dword [esi]
call fcn.10103523
add esp, 8
test eax, eax
je 0x100ceb90
mov eax, dword [ebp - 0x1c]
add esi, 8
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x2c]
jl 0x100cea60
xor eax, eax
mov ecx, dword [ebp - 0x10]
push eax
lea ecx, [ecx + 0x14]
call fcn.100240c0
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0x28]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], eax
test eax, eax
jle 0x100cead6
jmp 0x100ceab0
push str.version
push dword [esi]
call fcn.10103523
add esp, 8
test eax, eax
je 0x100ceb98
mov eax, dword [ebp - 0x1c]
add esi, 8
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x2c]
jl 0x100ceab0
xor eax, eax
mov ecx, dword [ebp - 0x10]
push eax
lea ecx, [ecx + 0xc]
call fcn.100240c0
mov eax, dword [edi + 0x10]
mov esi, dword [edi + 0x28]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], eax
test eax, eax
jle 0x100ceb26
jmp 0x100ceb00
push str.language
push dword [esi]
call fcn.10103523
add esp, 8
test eax, eax
je 0x100ceba0
mov eax, dword [ebp - 0x1c]
add esi, 8
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x2c]
jl 0x100ceb00
xor eax, eax
mov ecx, dword [ebp - 0x10]
push eax
lea ecx, [ecx + 0x18]
call fcn.100240c0
mov esi, dword [ebp + 0x10]
mov ecx, esi
push str.file
call fcn.100c90d0
mov dword [ebp - 0x34], eax
test eax, eax
jle 0x100cec4e
xor ebx, ebx
or edi, 0xffffffff
push ebx
push str.file
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
call fcn.100c91b0
mov byte [ebp - 4], 0x10
mov esi, dword [ebp - 0x2c]
test esi, esi
jne 0x100ceba5
mov byte [ebp - 4], 0xf
jmp 0x100cec3b
mov eax, dword [esi + 4]
jmp 0x100ce998
mov eax, dword [esi + 4]
jmp 0x100ce9e8
mov eax, dword [esi + 4]
jmp 0x100cea38
mov eax, dword [esi + 4]
jmp 0x100cea88
mov eax, dword [esi + 4]
jmp 0x100cead8
mov eax, dword [esi + 4]
jmp 0x100ceb28
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x1c], eax
test ecx, ecx
jle 0x100cebec
lea esp, [esp]
push 0x1013bf68
push dword [eax]
call fcn.10103523
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x1c]
je 0x100ced51
mov ecx, dword [ebp - 0x24]
add eax, 8
inc ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], ecx
cmp ecx, dword [ebp - 0x30]
jl 0x100cebc0
xor eax, eax
push eax
lea ecx, [ebp - 0x28]
call fcn.10023fc0
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0x11
lea ecx, [ecx + 0x28]
call fcn.10039ca0
mov byte [ebp - 4], 0x10
mov ecx, edi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100cec2a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x2c]
dec dword [esi + 0x30]
push 0
call fcn.100c8d10
mov esi, dword [ebp + 0x10]
inc ebx
cmp ebx, dword [ebp - 0x34]
jl 0x100ceb53
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x14]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.10024750
add eax, 0x10
lea ecx, [ebp - 0x34]
mov dword [esi], eax
mov eax, 0x5c
movzx edx, ax
call fcn.100452e0
add esp, 4
mov ecx, dword [ebp - 0x10]
push eax
mov byte [ebp - 4], 0x12
call fcn.100244b0
mov byte [ebp - 4], 0xf
or ecx, 0xffffffff
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ceca2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
mov byte [ebp - 4], 5
test edi, edi
je 0x100cecbc
dec dword [edi + 0x30]
lea ecx, [ebp - 0x20]
push 0
call fcn.100c8d10
or edi, 0xffffffff
mov byte [ebp - 4], 2
mov ecx, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100cecdf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, edi
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100cecfc
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100ced1c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ebx, dword [ebp + 0xc]
add ebx, 0xfffffff0
lea eax, [ebx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x100ced3d
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 4]
jmp 0x100cebee