Function at 0x4ca690
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x408f66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, pe_nt_image_headers32
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4066e0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
push 0x4203f8
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrI4]
mov edx, eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x412740
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x50], 8
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x90], 3
push 0x412dd8
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov edx, esp
mov eax, dword [ebp - 0x50]
mov dword [edx], eax
mov ecx, dword [ebp - 0x4c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x48]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0xc], ecx
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov edx, esp
mov eax, dword [ebp - 0x90]
mov dword [edx], eax
mov ecx, dword [ebp - 0x8c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x88]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x84]
mov dword [edx + 0xc], ecx
push 2
push 0x60010000
mov edx, dword [0x4fc104]
push edx
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x30
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaCastObjVar]
push eax
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x2c]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0x50]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov dword [ebp - 4], 4
push 0
push 0x60010010
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x10
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
xor edx, edx
test eax, eax
setg dl
neg edx
mov word [ebp - 0xb0], dx
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
movsx eax, word [ebp - 0xb0]
test eax, eax
je 0x4ca98a
mov dword [ebp - 4], 5
mov dword [ebp - 0x78], 0x420464
mov dword [ebp - 0x80], 8
push 0
push 0x412e48
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov ecx, esp
mov edx, dword [ebp - 0x80]
mov dword [ecx], edx
mov eax, dword [ebp - 0x7c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x78]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x74]
mov dword [ecx + 0xc], eax
push 1
push 0
push 0x8d
mov ecx, dword [ebp - 0x28]
push ecx
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x10
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarIndexLoadRef]
add esp, 0x1c
push eax
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarLateMemCallLdRf]
add esp, 0x10
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcIsNull]
neg ax
sbb eax, eax
inc eax
neg eax
mov word [ebp - 0xb0], ax
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x50]
push ecx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x10
movsx edx, word [ebp - 0xb0]
test edx, edx
je 0x4ca98a
mov dword [ebp - 4], 6
mov dword [ebp - 0x78], 0x420464
mov dword [ebp - 0x80], 8
push 0
push 0x412e48
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov eax, esp
mov ecx, dword [ebp - 0x80]
mov dword [eax], ecx
mov edx, dword [ebp - 0x7c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x78]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x74]
mov dword [eax + 0xc], edx
push 1
push 0
push 0x8d
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x10
push eax
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarIndexLoadRef]
add esp, 0x1c
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarLateMemCallLd]
add esp, 0x10
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x70]
push ecx
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x50]
push eax
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x10
mov dword [ebp - 4], 0xa
call dword [sym.imp.MSVBVM60.DLL_rtcErrObj]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 0xb0], eax
lea edx, [ebp - 0xa4]
push edx
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xb0]
push edx
call dword [ecx + 0x1c]
fnclex
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
jge 0x4ca9f5
push 0x1c
push 0x412314
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0xb4]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xd8], eax
jmp 0x4ca9ff
mov dword [ebp - 0xd8], 0
xor edx, edx
cmp dword [ebp - 0xa4], 0
sete dl
neg edx
mov word [ebp - 0xb8], dx
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
movsx eax, word [ebp - 0xb8]
test eax, eax
je 0x4caa2d
jmp 0x4cabc3
mov dword [ebp - 4], 0xc
call dword [sym.imp.MSVBVM60.DLL_rtcErrObj]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 0xb0], eax
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xb0]
push edx
call dword [ecx + 0x2c]
fnclex
mov dword [ebp - 0xb4], eax
cmp dword [ebp - 0xb4], 0
jge 0x4caa95
push 0x2c
push 0x412314
mov eax, dword [ebp - 0xb0]
push eax
mov ecx, dword [ebp - 0xb4]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xdc], eax
jmp 0x4caa9f
mov dword [ebp - 0xdc], 0
call dword [sym.imp.MSVBVM60.DLL_rtcErrObj]
push eax
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xb8]
push eax
call dword [edx + 0x1c]
fnclex
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0
jge 0x4cab03
push 0x1c
push 0x412314
mov ecx, dword [ebp - 0xb8]
push ecx
mov edx, dword [ebp - 0xbc]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xe0], eax
jmp 0x4cab0d
mov dword [ebp - 0xe0], 0
fld qword [0x4fc19c]
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0xd4]
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, 0x42047c
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x420164
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 0x4fc14c
lea edx, [ebp - 0xac]
push edx
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.004eac50
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
push eax
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x10
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x3c]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
add esp, 0xc
mov dword [ebp - 4], 0xd
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaResume]
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
wait
push 0x4cac34
jmp 0x4cac2a
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
ret