Function at 0x1004aa60
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x3c
push esi
push edi
mov edi, dword [esp + 0x48]
push str.OpenDatabase
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CDAOContext.0
mov dword [esp + 0x18], edi
call fcn.10009750
mov esi, 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], vtable.CDAOVARGContext.0
mov word [esp + 0x20], 0
mov dword [esp + 0x1c], esi
call fcn.100139b0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
push 0
lea eax, [esp + 0xc]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x28]
mov word [esp + 0x38], si
mov dword [eax + 0xc], edx
call fcn.1000a010
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
push 0
lea eax, [esp + 0x54]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x84]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x28]
mov dword [eax + 0xc], edx
call fcn.1000a010
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
push 0
lea eax, [esp + 0x28]
push eax
push 8
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x94]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x98]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x2c]
mov dword [eax + 0xc], edx
call fcn.1000a1d0
mov eax, dword [esp + 0x18]
test eax, eax
jl 0x1004abab
mov eax, dword [esp + 0x34]
movzx ecx, ax
and ecx, 0xffffbfff
cmp ecx, 8
jne 0x1004ab76
test eax, 0x4000
je 0x1004ab70
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
jmp 0x1004ab78
mov eax, dword [esp + 0x3c]
jmp 0x1004ab78
xor eax, eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x10]
push edx
mov edx, dword [edi + 8]
push eax
push ecx
push edx
lea eax, [esp + 0x60]
push eax
call fcn.10069060
test eax, eax
je 0x1004abb2
movzx eax, ax
or eax, 0x800a0000
mov dword [esp + 0x18], eax
mov esi, eax
jmp 0x1004ac66
call fcn.10020d20
test eax, eax
jl 0x1004abe3
mov ecx, dword [0x1007eed0]
push 0x284
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.10069dc0
mov esi, eax
test esi, esi
jne 0x1004ac36
push 0x100202e0
call fcn.1005ad10
xor esi, esi
mov edx, dword [esp + 0x48]
mov eax, dword [edi + 0x28]
push edx
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x10070428
push 0
push esi
call fcn.10005db0
mov esi, eax
test esi, esi
mov dword [esp + 0x18], esi
jge 0x1004ac59
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1004ac45
mov eax, dword [eax + 8]
test eax, eax
je 0x1004ac45
push 2
push esi
push eax
call fcn.10019ba0
mov edx, dword [esp + 0x48]
push edx
mov dword [esp + 0x1c], eax
call fcn.100573a0
mov esi, dword [esp + 0x18]
jmp 0x1004ac66
mov ecx, esi
call fcn.10011540
mov dword [esi], vtable.CDAODatabase.0
jmp 0x1004abe5
mov edx, dword [esp + 0x48]
push edx
mov dword [esp + 0x1c], esi
call fcn.100573a0
mov esi, dword [esp + 0x18]
jmp 0x1004ac66
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
lea ecx, [esp + 0x24]
call fcn.10014290
lea ecx, [esp + 0x10]
call fcn.100097c0
pop edi
mov eax, esi
pop esi
add esp, 0x3c
ret 0x3c