Function at 0x4ceb70
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x404986
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x401890
xor esi, esi
lea eax, [ebp - 0x44]
push esi
push 2
push 1
push esi
push eax
push 0x10
push 0x880
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], esi
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x54], 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 - 0x54]
call edi
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x5c], ebx
mov ebx, 0x4008
lea edx, [ebp - 0x64]
mov dword [ebp - 0x64], ebx
mov ecx, dword [eax + 0x14]
shl ecx, 4
mov dword [ebp - 0x9c], ecx
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0x9c]
sub ecx, eax
add ecx, 0x10
call edi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x74], ebx
mov ebx, dword [eax + 0x14]
mov ecx, 2
sub ecx, ebx
mov ebx, dword [eax + 0xc]
shl ecx, 4
lea edx, [ebp - 0x74]
add ecx, ebx
call edi
mov edx, 0x41ae60
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x24]
push edx
push eax
call fcn.004c7b40
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x28]
call ebx
lea ecx, [ebp - 0x44]
push ecx
push esi
call dword [sym.imp.MSVBVM60.DLL___vbaErase]
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x28], esi
call ebx
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
push 0x419240
push esi
mov dword [ebp - 0x78], 0xffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
lea edx, [ebp - 0x2c]
push eax
push edx
call edi
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x1c]
push ecx
push edx
call fcn.004cc1f0
push eax
lea eax, [ebp - 0x18]
push eax
call edi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x78]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x68]
cmp eax, esi
fnclex
jge 0x4ced04
mov ecx, dword [ebp - 0x18]
push 0x68
push 0x419250
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
cmp dword [ebp - 0x78], esi
jne 0x4ced21
mov edx, 0x41873c
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 0x4cee44
jmp 0x4cee31
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x54]
cmp eax, esi
fnclex
jge 0x4ced46
mov edx, dword [ebp - 0x18]
push 0x54
push 0x419250
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea edi, [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
push edi
mov ecx, 2
sub esp, 0x10
mov dword [ebp - 0x54], ecx
mov edi, esp
mov dword [ebp - 0x4c], esi
mov edx, dword [eax]
push eax
mov dword [edi], ecx
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x80], eax
mov dword [edi + 4], ecx
mov ecx, esi
mov dword [edi + 8], ecx
mov ecx, dword [ebp - 0x48]
mov dword [edi + 0xc], ecx
call dword [edx + 0x28]
cmp eax, esi
fnclex
jge 0x4ced91
mov edx, dword [ebp - 0x80]
push 0x28
push 0x419274
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x40]
push edx
push eax
mov ecx, dword [eax]
mov edi, eax
call dword [ecx + 0x34]
cmp eax, esi
fnclex
jge 0x4cedb5
push 0x34
push 0x419284
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x20]
call ebx
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x2c]
push ecx
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
add esp, 0xc
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
push 0x4cee44
jmp 0x4cee31
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret