Function at 0x4c9e70
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, 0xd8
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x406658
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 0x4202c0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrI4]
mov edx, eax
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x412740
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x58], 8
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa8], 3
push 0x412dd8
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov edx, esp
mov eax, dword [ebp - 0x58]
mov dword [edx], eax
mov ecx, dword [ebp - 0x54]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x50]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x4c]
mov dword [edx + 0xc], ecx
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov edx, esp
mov eax, dword [ebp - 0xa8]
mov dword [edx], eax
mov ecx, dword [ebp - 0xa4]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0xa0]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x9c]
mov dword [edx + 0xc], ecx
push 2
push 0x60010000
mov edx, dword [0x4fc104]
push edx
lea eax, [ebp - 0x68]
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 - 0x2c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x34]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x58]
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 - 0x2c]
push eax
lea ecx, [ebp - 0x58]
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 - 0xc8], dx
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
movsx eax, word [ebp - 0xc8]
test eax, eax
je 0x4ca0de
mov dword [ebp - 4], 5
push 0
push 0x60010000
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCall]
add esp, 0xc
mov dword [ebp - 4], 6
mov dword [ebp - 0x90], 0x41a678
mov dword [ebp - 0x98], 8
push 0
push 0x412e48
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov edx, esp
mov eax, dword [ebp - 0x98]
mov dword [edx], eax
mov ecx, dword [ebp - 0x94]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x90]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x8c]
mov dword [edx + 0xc], ecx
push 1
push 0
push 0x8d
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x10
push eax
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarIndexLoadRef]
add esp, 0x1c
push eax
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarLateMemCallLd]
add esp, 0x10
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x58]
push edx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x10
mov dword [ebp - 4], 8
push 0x42035c
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrI4]
mov edx, eax
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x412740
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x58], 8
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0xa8], 3
push 0x412dd8
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov ecx, esp
mov edx, dword [ebp - 0x58]
mov dword [ecx], edx
mov eax, dword [ebp - 0x54]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x50]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x4c]
mov dword [ecx + 0xc], eax
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov ecx, esp
mov edx, dword [ebp - 0xa8]
mov dword [ecx], edx
mov eax, dword [ebp - 0xa4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xa0]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x9c]
mov dword [ecx + 0xc], eax
push 2
push 0x60010000
mov ecx, dword [0x4fc104]
push ecx
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x30
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaCastObjVar]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x34]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov dword [ebp - 4], 9
push 0
push 0x60010010
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x10
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
xor ecx, ecx
test eax, eax
setg cl
neg ecx
mov word [ebp - 0xc8], cx
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
movsx edx, word [ebp - 0xc8]
test edx, edx
je 0x4ca3bb
mov dword [ebp - 4], 0xa
push 0
push 0x60010000
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCall]
add esp, 0xc
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x90], 0x4203c0
mov dword [ebp - 0x98], 8
mov dword [ebp - 0xb0], 0x412740
mov dword [ebp - 0xb8], 0x8008
push 0
push 0x412e48
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov ecx, esp
mov edx, dword [ebp - 0x98]
mov dword [ecx], edx
mov eax, dword [ebp - 0x94]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x90]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x8c]
mov dword [ecx + 0xc], eax
push 1
push 0
push 0x8d
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x10
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarIndexLoadRef]
add esp, 0x1c
push eax
lea ecx, [ebp - 0x78]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarLateMemCallLd]
add esp, 0x10
push eax
lea edx, [ebp - 0xb8]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarTstNe]
mov word [ebp - 0xc8], ax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x58]
push edx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x10
movsx eax, word [ebp - 0xc8]
test eax, eax
je 0x4ca3bb
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x90], 0x4203c0
mov dword [ebp - 0x98], 8
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov ecx, esp
mov edx, dword [ebp - 0x98]
mov dword [ecx], edx
mov eax, dword [ebp - 0x94]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x90]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x8c]
mov dword [ecx + 0xc], eax
push 1
push 0
push 0x8d
mov ecx, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x10
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarIndexLoad]
add esp, 0x1c
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 - 0x68]
push ecx
lea edx, [ebp - 0x58]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov dword [ebp - 4], 0x10
call dword [sym.imp.MSVBVM60.DLL_rtcErrObj]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 0xc8], eax
lea ecx, [ebp - 0xbc]
push ecx
mov edx, dword [ebp - 0xc8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc8]
push ecx
call dword [eax + 0x1c]
fnclex
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jge 0x4ca426
push 0x1c
push 0x412314
mov edx, dword [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0xcc]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xf0], eax
jmp 0x4ca430
mov dword [ebp - 0xf0], 0
xor ecx, ecx
cmp dword [ebp - 0xbc], 0
sete cl
neg ecx
mov word [ebp - 0xd0], cx
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
movsx edx, word [ebp - 0xd0]
test edx, edx
je 0x4ca45e
jmp 0x4ca5f4
mov dword [ebp - 4], 0x12
call dword [sym.imp.MSVBVM60.DLL_rtcErrObj]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 0xc8], eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0xc8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc8]
push ecx
call dword [eax + 0x2c]
fnclex
mov dword [ebp - 0xcc], eax
cmp dword [ebp - 0xcc], 0
jge 0x4ca4c6
push 0x2c
push 0x412314
mov edx, dword [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0xcc]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xf4], eax
jmp 0x4ca4d0
mov dword [ebp - 0xf4], 0
call dword [sym.imp.MSVBVM60.DLL_rtcErrObj]
push eax
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 0xd0], eax
lea edx, [ebp - 0xbc]
push edx
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xd0]
push edx
call dword [ecx + 0x1c]
fnclex
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
jge 0x4ca534
push 0x1c
push 0x412314
mov eax, dword [ebp - 0xd0]
push eax
mov ecx, dword [ebp - 0xd4]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xf8], eax
jmp 0x4ca53e
mov dword [ebp - 0xf8], 0
fld qword [0x4fc19c]
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov dword [ebp - 0xc4], eax
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xec], eax
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0xec]
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, 0x4203d8
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x420164
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 0x4fc14c
lea ecx, [ebp - 0xc4]
push ecx
lea edx, [ebp - 0xc0]
push edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.004eac50
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x38]
push edx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x10
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x44]
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
add esp, 0xc
mov dword [ebp - 4], 0x13
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaResume]
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
wait
push 0x4ca675
jmp 0x4ca662
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
ret