Function at 0x10020d20
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x2c], vtable.CDAOContext.0
mov dword [ebp - 0x28], 0
push str.CDAOInitTask
lea ecx, [ebp - 0x2c]
call fcn.10009750
mov dword [ebp - 0x14], 0
call fcn.1005ac10
test eax, eax
je 0x10020d94
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.1005ac30
cmp eax, 0xffffffff
jne 0x10020d81
push 0
push 0
push str.DAO_could_not_allocate_task_memory.
push str.System__DAO_
push 0xfffffc0d
lea ecx, [ebp - 0x2c]
call fcn.10009810
jmp 0x10021057
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x30], 0
je 0x10020d8f
jmp 0x10021057
jmp 0x10020e24
lea edx, [ebp - 0x14]
push edx
push 1
call dword [sym.imp.ole32.dll_CoGetMalloc]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x10020dc9
push 0
push 0
push str.DAO_could_not_get_OLE_task_allocator.
push str.System__DAO_
push 0xfffffc0d
lea ecx, [ebp - 0x2c]
call fcn.10009810
jmp 0x10021057
mov dword [ebp - 0x10], 0x10020ca0
mov dword [ebp - 0xc], 0x10020cd0
mov dword [ebp - 8], 0x10020d00
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.1005ac30
cmp eax, 0xffffffff
jne 0x10020e24
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ecx + 8]
call eax
push 0
push 0
push str.DAO_could_not_allocate_task_memory.
push str.System__DAO_
push 0xfffffc0d
lea ecx, [ebp - 0x2c]
call fcn.10009810
jmp 0x10021057
cmp dword [ebp - 0x14], 0
jne 0x10020e61
lea ecx, [ebp - 0x14]
push ecx
push 1
call dword [sym.imp.ole32.dll_CoGetMalloc]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jge 0x10020e5f
push 0
push 0
push str.DAO_could_not_get_OLE_task_allocator.
push str.System__DAO_
push 0xfffffc0d
lea ecx, [ebp - 0x2c]
call fcn.10009810
jmp 0x1002106a
jmp 0x10020e6f
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [eax + 4]
call edx
push 0x14
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ecx + 0xc]
call eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10020eb6
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [edx + 8]
call ecx
push 0
push 0
push str.DAO_could_not_allocate_task_memory.
push str.System__DAO_
push 0xfffffc0d
lea ecx, [ebp - 0x2c]
call fcn.10009810
jmp 0x1002106a
xor edx, edx
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x30], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 0
push 0x10
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x10020f29
push 1
push 1
push 0x11
mov eax, dword [ebp - 0x30]
push eax
call fcn.10013cc0
add esp, 0x10
mov ecx, dword [ebp - 0x30]
mov dword [ecx], vtable.CBlob.0
push 0xffffffffffffffff
push 0x10070e88
mov ecx, dword [ebp - 0x30]
call fcn.10013e30
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x44], edx
jmp 0x10020f30
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x44]
mov dword [eax + 8], ecx
push 0x10
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x10020f7e
push 1
push 1
push 0x11
mov edx, dword [ebp - 0x34]
push edx
call fcn.10013cc0
add esp, 0x10
mov eax, dword [ebp - 0x34]
mov dword [eax], vtable.CBlob.0
push 0xffffffffffffffff
push 0x10070e84
mov ecx, dword [ebp - 0x34]
call fcn.10013e30
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x48], ecx
jmp 0x10020f85
mov dword [ebp - 0x48], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x48]
mov dword [edx + 0xc], eax
push 0x10
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x10020fd3
push 1
push 1
push 0x11
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.10013cc0
add esp, 0x10
mov edx, dword [ebp - 0x38]
mov dword [edx], vtable.CBlob.0
push 0xffffffffffffffff
push 0x10070e80
mov ecx, dword [ebp - 0x38]
call fcn.10013e30
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
jmp 0x10020fda
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x4c]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x18]
cmp dword [eax + 8], 0
je 0x10020ffe
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0xc], 0
je 0x10020ffe
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x10], 0
jne 0x1002101b
push 0
push 0
push str.DAO_could_not_allocate_task_memory.
push str.System__DAO_
push 0xfffffc0d
lea ecx, [ebp - 0x2c]
call fcn.10009810
jmp 0x1002106a
mov dword [0x1007e600], 1
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [0x1007eed0]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x10021057
push 0
push 0
push str.DAO_could_not_allocate_task_memory.
push str.System__DAO_
push 0xfffffc0d
lea ecx, [ebp - 0x2c]
call fcn.10009810
jmp 0x1002106a
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x3c], edx
lea ecx, [ebp - 0x2c]
call fcn.100097c0
mov eax, dword [ebp - 0x3c]
jmp 0x10021085
push 0x100202e0
call fcn.1005ad10
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x2c]
call fcn.100097c0
mov eax, dword [ebp - 0x40]
mov esp, ebp
pop ebp
ret