Function at 0x1001dbc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, dword [esp + 0x54]
push edi
push str.AppendChunk
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], vtable.CDAOContext.0
mov dword [esp + 0x20], esi
call fcn.10009750
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1001de78
cmp dword [ecx + 0x10], 0x25
jge 0x1001de78
mov eax, dword [esi + 8]
test eax, eax
je 0x1001de78
mov eax, dword [eax + 0x30]
test eax, eax
je 0x1001de78
cmp dword [eax + 0x34], 0
je 0x1001de78
mov ecx, dword [eax + 0x34]
mov ecx, dword [ecx + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x19c]
call eax
test eax, eax
jge 0x1001dc59
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 8]
push edx
push eax
call fcn.1005a6a0
test eax, eax
je 0x1001de34
movzx eax, ax
or eax, 0x800a0000
mov dword [esp + 0x20], eax
jmp 0x1001de34
mov eax, dword [esi + 8]
cmp word [eax + 0xc6], 0xb
mov edi, dword [esp + 0x5c]
jne 0x1001de00
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.10007380
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
cmp word [esp + 0x44], 8
je 0x1001dce2
mov ecx, dword [esi + 0xb8]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x78]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebp
mov dword [eax + 0xc], edi
mov eax, dword [edx + 0x68]
push ecx
call eax
push eax
lea ecx, [esp + 0x1c]
call fcn.1000c3f0
lea ecx, [esp + 0x34]
call fcn.10014290
jmp 0x1001de34
mov ecx, dword [esp + 0x4c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
lea edx, [esp + 0x10]
push edx
push 1
mov edi, eax
push 0x11
mov word [esp + 0x30], 0x2011
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 0
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x1001dd8a
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x20], 0x8007000e
je 0x1001dd61
mov eax, dword [eax + 8]
test eax, eax
je 0x1001dd61
push 2
push 0x8007000e
push eax
call fcn.10019ba0
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], eax
mov esi, eax
call fcn.10014290
lea ecx, [esp + 0x18]
call fcn.100097c0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x14
mov eax, 0x8007000e
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], eax
mov esi, eax
call fcn.10014290
lea ecx, [esp + 0x18]
call fcn.100097c0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x14
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnlock]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0xc]
push edi
push eax
push edx
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x38]
add esp, 0xc
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayAccessData]
mov edi, dword [esp + 0x24]
mov ecx, dword [esi + 0xb8]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x38]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x3c]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x40]
mov dword [eax + 0xc], edi
mov eax, dword [edx + 0x68]
push ecx
call eax
push eax
lea ecx, [esp + 0x1c]
call fcn.1000c3f0
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
lea ecx, [esp + 0x34]
call fcn.10014290
jmp 0x1001de34
mov ecx, dword [esi + 0xb8]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], edi
mov edi, dword [esp + 0x70]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x74]
mov dword [eax + 8], edi
mov edi, dword [esp + 0x78]
mov dword [eax + 0xc], edi
mov eax, dword [edx + 0x68]
push ecx
call eax
push eax
lea ecx, [esp + 0x1c]
call fcn.1000c3f0
cmp dword [esp + 0x20], 0
jl 0x1001de5f
mov eax, dword [esi + 8]
test eax, eax
je 0x1001de4e
mov eax, dword [eax + 0x30]
test eax, eax
je 0x1001de4e
mov eax, dword [eax + 0x34]
jmp 0x1001de50
xor eax, eax
mov ecx, dword [eax + 0x20]
mov dword [ecx + 0x74], 1
or word [esi + 0x78], 2
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x18]
call fcn.100097c0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x14
push 1
push 0
push ecx
push 0xffff8abf
call fcn.1005a550
test eax, eax
je 0x1001de99
movzx eax, ax
or eax, 0x800a0000
mov dword [esp + 0x20], eax
jmp 0x1001de9d
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.100097c0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x14