Function at 0x1004a630
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x48
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
push edi
push str.CreateItem
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], vtable.CDAOContext.0
mov dword [esp + 0x28], eax
call fcn.10009750
mov ecx, dword [esi + 0xc]
xor ebx, ebx
mov dword [esp + 0x20], vtable.CDAOVARGContext.0
mov word [esp + 0x30], bx
mov dword [esp + 0x2c], 1
test byte [ecx + 0x94], 2
je 0x1004a6f7
call fcn.10020d20
test eax, eax
jl 0x1004a6a9
mov edx, dword [0x1007eed0]
push 0x214
push edx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.10069dc0
mov edi, eax
cmp edi, ebx
jne 0x1004a6de
push 0x100202e0
call fcn.1005ad10
xor edi, edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x58]
mov edx, dword [ecx + 0x28]
mov ecx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x64]
push edx
push eax
push ecx
push ebx
push edi
call fcn.10005db0
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.100097c0
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x48
ret 0xc
mov ecx, edi
call fcn.10049c40
mov dword [edi], vtable.CDAOWorkspace.0
mov dword [edi + 0x1d0], 2
jmp 0x1004a6ab
cmp dword [0x1007e608], ebx
mov eax, ecx
mov edx, dword [eax + 0x7c]
mov edi, dword [eax + 0x78]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
jne 0x1004a87f
push str.1104c7b0_7b4e_11ce_941e_00aa0062be57
lea ecx, [esp + 0x38]
mov dword [esp + 0x10], ebx
call fcn.100139e0
lea eax, [esp + 0xc]
push eax
push 0x10077ef4
push ebx
push 1
push 0x10074fc8
call dword [sym.imp.ole32.dll_CoGetClassObject]
test eax, eax
jge 0x1004a792
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 8]
push 1
push str.MSRDO20.DLL
push edx
push 0xffff8ab5
call fcn.1005a550
cmp eax, ebx
je 0x1004a76f
movzx eax, ax
or eax, 0x800a0000
mov dword [esp + 0x28], eax
jmp 0x1004a773
mov eax, dword [esp + 0x28]
mov esi, eax
lea ecx, [esp + 0x34]
call fcn.10014290
lea ecx, [esp + 0x20]
call fcn.100097c0
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x48
ret 0xc
mov eax, dword [esp + 0x44]
movzx ecx, ax
and ecx, 0xffffbfff
cmp ecx, 8
jne 0x1004a7b9
test eax, 0x4000
je 0x1004a7b3
mov edx, dword [esp + 0x4c]
mov ecx, dword [edx]
jmp 0x1004a7bb
mov ecx, dword [esp + 0x4c]
jmp 0x1004a7bb
xor ecx, ecx
mov eax, dword [esp + 0xc]
mov edx, dword [eax]
push 0x1007e608
push ecx
push 0x10074fa8
push ebx
push ebx
push eax
mov eax, dword [edx + 0x1c]
call eax
cmp eax, ebx
mov dword [esp + 0x28], eax
jge 0x1004a80d
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
je 0x1004a7f4
mov ecx, dword [ecx + 8]
cmp ecx, ebx
je 0x1004a7f4
push 2
push eax
push ecx
call fcn.10019ba0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x28]
jmp 0x1004a775
mov eax, dword [0x1007e608]
push eax
call fcn.10016180
test eax, eax
jne 0x1004a860
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 8]
push 1
push str.MSRDO20.DLL
push edx
push 0xffff8ab9
call fcn.1005a550
push eax
lea ecx, [esp + 0x24]
call fcn.10005ce0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x1007e608]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x28]
jmp 0x1004a775
mov eax, dword [esp + 0xc]
mov dword [0x1007e60c], 0xffffffff
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x34]
call fcn.10014290
push ebp
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp edi, ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
je 0x1004a8f6
push edi
call ebp
push eax
push edi
call ebx
test eax, eax
mov dword [esp + 0x14], eax
jne 0x1004a8f6
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1004a8d6
mov eax, dword [eax + 8]
test eax, eax
je 0x1004a8d6
push 2
push 0x8007000e
push eax
call fcn.10019ba0
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], eax
mov esi, eax
call fcn.100097c0
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x48
ret 0xc
mov eax, 0x8007000e
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], eax
mov esi, eax
call fcn.100097c0
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x48
ret 0xc
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x1004a93d
push edi
call ebp
push eax
push edi
call ebx
mov ebp, eax
test ebp, ebp
jne 0x1004a941
mov eax, dword [esp + 0x28]
test eax, eax
je 0x1004a930
mov eax, dword [eax + 8]
test eax, eax
je 0x1004a930
push 2
push 0x8007000e
push eax
call fcn.10019ba0
mov dword [esp + 0x2c], eax
jmp 0x1004aa21
mov dword [esp + 0x2c], 0x8007000e
jmp 0x1004aa21
mov ebp, dword [esp + 0x20]
mov eax, dword [0x1007e608]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push ebp
push edx
push 0
push eax
mov eax, dword [ecx + 0x54]
call eax
push eax
lea ecx, [esp + 0x28]
call fcn.1000c3f0
test eax, eax
jne 0x1004aa21
push 0x21c
call fcn.10001450
test eax, eax
je 0x1004a993
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx + 0x94]
mov ecx, dword [esp + 0x18]
push edx
push ecx
mov ecx, eax
call fcn.1004a110
jmp 0x1004a995
xor eax, eax
mov edx, dword [esi + 0xc]
mov edi, dword [esp + 0x5c]
mov ecx, dword [edx + 0x28]
mov ebx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push edi
push ecx
push ebx
push edx
push 0
push eax
call fcn.10005db0
test eax, eax
mov dword [esp + 0x2c], eax
jge 0x1004a9e1
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x1004a927
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x1004a927
push 2
push eax
push ecx
call fcn.10019ba0
mov dword [esp + 0x2c], eax
jmp 0x1004aa21
mov edx, dword [esi + 8]
mov edx, dword [edx + 0x1c]
movsx edx, word [edx + 0x88]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x34]
call eax
push eax
lea ecx, [esp + 0x28]
call fcn.1000c3f0
test eax, eax
jne 0x1004aa21
mov ecx, dword [esp + 0x14]
push ecx
mov dword [edi + 0xec], 0xfffffffe
mov ecx, dword [ebx]
push 1
call fcn.10006c90
mov eax, dword [esp + 0x14]
test eax, eax
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x1004aa32
push eax
call esi
test ebp, ebp
je 0x1004aa39
push ebp
call esi
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
call fcn.100097c0
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x48
ret 0xc