Function at 0x4cdb70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x404986
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401810
xor esi, esi
lea eax, [ebp - 0x40]
push esi
push 3
push 1
push esi
push eax
push 0x10
push 0x880
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], esi
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x50], 0x4008
mov ecx, dword [eax + 0x14]
add esp, 0x1c
shl ecx, 4
mov edi, ecx
mov ecx, dword [eax + 0xc]
sub ecx, edi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaVarZero]
lea edx, [ebp - 0x50]
call edi
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x60], 0x4008
lea edx, [ebp - 0x60]
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov dword [ebp - 0x94], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x94]
sub ecx, eax
add ecx, 0x10
call edi
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x70], 0x4008
mov ecx, 2
mov ebx, dword [eax + 0x14]
lea edx, [ebp - 0x70]
sub ecx, ebx
mov ebx, dword [eax + 0xc]
shl ecx, 4
add ecx, ebx
call edi
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004c7970
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], 8
mov ecx, 3
mov ebx, dword [eax + 0x14]
lea edx, [ebp - 0x3c]
sub ecx, ebx
mov ebx, dword [eax + 0xc]
shl ecx, 4
add ecx, ebx
call edi
mov edx, 0x41abc8
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x20]
push edx
push eax
call fcn.004c7b40
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x24]
call edi
lea ecx, [ebp - 0x40]
push ecx
push esi
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], esi
call edi
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
or ebx, 0xffffffff
push 0x419240
push esi
mov dword [ebp - 0x74], ebx
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
lea edx, [ebp - 0x28]
push eax
push edx
call edi
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
call fcn.004cc1f0
push eax
lea eax, [ebp - 0x14]
push eax
call edi
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x74]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x68]
cmp eax, esi
fnclex
jge 0x4cdd2d
mov ecx, dword [ebp - 0x14]
push 0x68
push 0x419250
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
cmp dword [ebp - 0x74], esi
jne 0x4cdd3f
mov dword [ebp - 0x1c], ebx
push 0x4cde4f
jmp 0x4cde3c
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x54]
cmp eax, esi
fnclex
jge 0x4cdd64
mov edx, dword [ebp - 0x14]
push 0x54
push 0x419250
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea ebx, [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
push ebx
mov edx, 2
sub esp, 0x10
mov dword [ebp - 0x50], edx
mov ebx, esp
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov edi, dword [eax]
mov dword [ebx], edx
mov edx, dword [ebp - 0x4c]
push eax
mov dword [ebp - 0x7c], eax
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x44]
mov dword [ebx + 0xc], ecx
call dword [edi + 0x28]
cmp eax, esi
fnclex
jge 0x4cddaf
mov edx, dword [ebp - 0x7c]
push 0x28
push 0x419274
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x3c]
push edx
push eax
mov ecx, dword [eax]
mov edi, eax
call dword [ecx + 0x34]
cmp eax, esi
fnclex
jge 0x4cddd3
push 0x34
push 0x419284
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2Var]
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x28]
push ecx
push edx
push 2
mov dword [ebp - 0x1c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
add esp, 0xc
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
push 0x4cde4f
jmp 0x4cde3c
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret