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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10122fc9
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x1016e750]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x124], ebx
mov eax, dword [ebp + 8]
mov edi, 0x78
cmp dword [ebx + 0x1c], 0
mov esi, dword [ebx + 0x3c]
mov dword [ebp - 0x118], eax
mov eax, 0x88
cmovne edi, eax
mov dword [ebp - 0x134], 0
mov eax, dword [ebx + 0x48]
add edi, dword [ebx + 0x454]
add eax, 0x800
mov dword [ebp - 0x120], eax
add esi, edi
lea eax, [ebp - 0x138]
mov dword [ebp - 0x128], esi
push eax
push 4
push 0x80
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [ebp - 0x134]
push eax
push 4
push 0x80
push dword [ebp - 0x120]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0x7c
lea eax, [ebp - 0x110]
mov dword [ebp - 0x114], 0
push 0
push eax
call fcn.101078f0
add esp, 0xc
lea eax, [ebp - 0x114]
push 0
push 0x80
push eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 0x80
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x120]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
or esi, 0xffffffff
test eax, eax
jne 0x100cb6c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x11c]
push str._InitImaginaryProcess:_cannot_save_original_DataDirectory__LE_d
push eax
call fcn.10044f30
add esp, 0xc
mov dword [ebp - 4], 0
mov ecx, str.ImaginaryExec
mov edx, dword [ebp - 0x11c]
call fcn.10043b30
mov dword [ebp - 4], esi
mov ecx, esi
mov edx, dword [ebp - 0x11c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100cb6c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x7c
lea eax, [ebp - 0x90]
push 0
push eax
call fcn.101078f0
mov eax, dword [ebp - 0x114]
add esp, 0xc
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x60], eax
lea eax, [edi + 0x50]
mov edi, dword [ebp - 0x128]
push 0
push 0x80
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x94]
push eax
push edi
push dword [ebx]
mov dword [ebp - 0x88], 0x14
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x100cb7c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x11c]
push str._InitImaginaryProcess:_cannot_write_EmptierDataDirectory__LE_d
push eax
call fcn.10044f30
add esp, 0xc
mov dword [ebp - 4], 1
mov ecx, str.ImaginaryExec
mov edx, dword [ebp - 0x11c]
call fcn.10043b30
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
mov edx, dword [ebp - 0x11c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100cb7c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 0x138]
push 0x80
push edi
push dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
call edi
lea eax, [ebp - 0x134]
push eax
push dword [ebp - 0x134]
push 0x80
push dword [ebp - 0x120]
push dword [ebx]
call edi
mov ecx, ebx
call fcn.100cbcc0
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [ebp - 0x118]
push edi
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x128]
push str.InitImaginaryProcess:_about_to_save_manifest_XMLs_from__s
push eax
call fcn.10044f30
add esp, 0xc
mov dword [ebp - 4], 2
mov ecx, str.ImaginaryExec
mov edx, dword [ebp - 0x128]
call fcn.10043b30
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
mov edx, dword [ebp - 0x128]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100cb870
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x11c]
and eax, 0xfffffffe
push eax
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ecx
mov ecx, dword [ebx + 0x14]
mov esi, esp
sub ecx, 0x10
call fcn.10024750
add eax, 0x10
mov dword [esi], eax
call fcn.100475f0
mov ecx, dword [ebx + 0x18]
sub ecx, 0x10
call fcn.10024750
add eax, 0x10
mov dword [esi], eax
call fcn.100475f0
add esp, 4
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100cb8d2
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x128], eax
mov dword [ebp - 4], 3
call fcn.10022690
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x100cb905
push 0x80004005
call fcn.100223c0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x120], esi
push 0
push 0
push ecx
mov ecx, esp
mov byte [ebp - 4], 4
push edi
call fcn.10023fc0
xor edx, edx
lea ecx, [ebp - 0x128]
call fcn.10048a20
mov edi, dword [ebp - 0x128]
add esp, 0xc
test eax, eax
je 0x100cbba0
cmp dword [0x101728c0], 0
je 0x100cb9f3
lea eax, [ebp - 0x120]
push eax
push 1
push 0
push ecx
lea ecx, [edi - 0x10]
mov dword [ebp - 0x12c], esp
mov esi, esp
call fcn.10024750
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 5
mov esi, esp
mov ecx, dword [ebx + 0x10]
sub ecx, 0x10
mov dword [ebp - 0x118], esp
call fcn.10024750
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 6
mov esi, esp
mov ecx, dword [ebx + 0x10]
sub ecx, 0x10
call fcn.10024750
add eax, 0x10
mov dword [esi], eax
push 0
mov byte [ebp - 4], 4
call fcn.100cef50
test eax, eax
je 0x100cb9f3
push ecx
mov eax, esp
push dword [ebx + 0x18]
push str.InitImaginaryProcess:_saving_modified_manifest_into__s:
push eax
call fcn.10044f30
add esp, 0xc
call fcn.100ca0e0
mov esi, dword [ebp - 0x120]
mov eax, esp
push esi
push edi
push str.InitImaginaryProcess:_old:_n_s_nNew:_n_s
push eax
call fcn.10044f30
add esp, 0x10
call fcn.100ca0e0
add esp, 4
jmp 0x100cbaa8
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x120]
call fcn.100244b0
push dword [ebx + 0x18]
lea eax, [ebp - 0x118]
push str.InitImaginaryProcess:_saving_original_manifest_into__s:
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 7
mov ecx, str.ImaginaryExec
mov edx, dword [ebp - 0x118]
call fcn.10043b30
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov edx, dword [ebp - 0x118]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100cba56
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
lea eax, [ebp - 0x118]
push str.InitImaginaryProcess:_org_manifest:_n_s
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 8
mov ecx, str.ImaginaryExec
mov edx, dword [ebp - 0x118]
call fcn.10043b30
mov byte [ebp - 4], 4
mov ecx, ebx
mov edx, dword [ebp - 0x118]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100cbaa2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x120]
mov eax, dword [ebp - 0x11c]
or eax, 1
push eax
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ecx
lea ecx, [esi - 0x10]
mov ebx, esp
call fcn.10024750
add eax, 0x10
mov dword [ebx], eax
call fcn.10045800
add esp, 4
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x100cbb2c
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100cbae5
sub ecx, edx
push ecx
mov dword [ebp - 0x118], ecx
mov ebx, esp
mov ecx, dword [ebp - 0x124]
mov ecx, dword [ecx + 0x18]
sub ecx, 0x10
call fcn.10024750
mov edx, dword [ebp - 0x118]
add eax, 0x10
mov dword [ebx], eax
mov ebx, dword [ebp - 0x12c]
mov ecx, ebx
call fcn.10045a70
add esp, 4
push ebx
call fcn.10103713
add esp, 4
push ecx
lea ecx, [edi - 0x10]
mov ebx, esp
call fcn.10024750
add eax, 0x10
mov dword [ebx], eax
call fcn.10045800
add esp, 4
mov dword [ebp - 0x118], eax
test eax, eax
je 0x100cbbf4
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100cbb57
mov eax, dword [ebp - 0x124]
sub ecx, edx
push ecx
mov dword [ebp - 0x12c], ecx
mov ebx, esp
mov ecx, dword [eax + 0x14]
sub ecx, 0x10
call fcn.10024750
mov edx, dword [ebp - 0x12c]
add eax, 0x10
mov dword [ebx], eax
mov ebx, dword [ebp - 0x118]
mov ecx, ebx
call fcn.10045a70
add esp, 4
push ebx
call fcn.10103713
add esp, 4
jmp 0x100cbbf4
push dword [ebp - 0x118]
lea eax, [ebp - 0x124]
push str.InitImaginaryProcess:_no_manifest_found_or_could_be_extracted_from__s
push eax
call fcn.10044f30
add esp, 0xc
mov byte [ebp - 4], 9
mov ecx, str.ImaginaryExec
mov edx, dword [ebp - 0x124]
call fcn.10043b30
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov edx, dword [ebp - 0x124]
mov ecx, ebx
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100cbbf4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 3
or esi, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, esi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100cbc14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100cbc34
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x11c]
push dword [0x1016f5d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [ebp - 0x124]
push str.InitImaginaryProcess:_done_saving_manifest_XMLs
push eax
call fcn.10044f30
add esp, 8
mov dword [ebp - 4], 0xa
mov ecx, str.ImaginaryExec
mov edx, dword [ebp - 0x124]
call fcn.10043b30
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x124]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x100cbc95
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10103392
mov esp, ebp
pop ebp
ret 4