Function at 0x4e05d0
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, 0xbc
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x407b18
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 0x41bdd8
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrI4]
mov edx, eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], 8
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x7c], 3
push 0x412dd8
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov edx, esp
mov eax, dword [ebp - 0x4c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x48]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x44]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0xc], ecx
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov edx, esp
mov eax, dword [ebp - 0x7c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x78]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x74]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x70]
mov dword [edx + 0xc], ecx
push 2
push 0x60010000
mov edx, dword [0x4fc104]
push edx
lea eax, [ebp - 0x5c]
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 - 0x24]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x4c]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov dword [ebp - 4], 4
push 0
push 0x60010010
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x10
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
neg eax
sbb eax, eax
inc eax
neg eax
mov word [ebp - 0xac], ax
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
movsx eax, word [ebp - 0xac]
test eax, eax
je 0x4e0747
jmp 0x4e0b66
mov dword [ebp - 4], 7
push 0
push 0x60010009
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x10
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaBoolVar]
neg ax
sbb eax, eax
inc eax
neg eax
mov word [ebp - 0xac], ax
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
movsx eax, word [ebp - 0xac]
test eax, eax
je 0x4e0818
mov dword [ebp - 4], 8
push 0
push 0x6001000b
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x10
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaBoolVar]
neg ax
sbb eax, eax
inc eax
neg eax
mov word [ebp - 0xac], ax
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
movsx eax, word [ebp - 0xac]
test eax, eax
je 0x4e07f8
mov dword [ebp - 4], 9
push 0
push 0x60010007
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCall]
add esp, 0xc
mov dword [ebp - 4], 0xb
push 0
push 0x60010003
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCall]
add esp, 0xc
jmp 0x4e0747
mov dword [ebp - 4], 0xd
push 0
push 0x60010000
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCall]
add esp, 0xc
mov dword [ebp - 4], 0xe
push 0
push 0x60010004
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCall]
add esp, 0xc
mov dword [ebp - 4], 0xf
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x84], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x8c], 5
mov dword [ebp - 0x64], 0x41be44
mov dword [ebp - 0x6c], 8
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov ecx, esp
mov edx, dword [ebp - 0x8c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x88]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x84]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x80]
mov dword [ecx + 0xc], eax
push 0x412e48
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov ecx, esp
mov edx, dword [ebp - 0x6c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x68]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x64]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x60]
mov dword [ecx + 0xc], eax
push 1
push 0
push 0x8d
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x10
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarIndexLoadRef]
add esp, 0x1c
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarLateMemSt]
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x4c]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov dword [ebp - 4], 0x10
push 0
push 0x60010005
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCall]
add esp, 0xc
mov dword [ebp - 4], 0x12
call dword [sym.imp.MSVBVM60.DLL_rtcErrObj]
push eax
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 0xac], eax
lea edx, [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xac]
push edx
call dword [ecx + 0x1c]
fnclex
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jge 0x4e0998
push 0x1c
push 0x412314
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xd4], eax
jmp 0x4e09a2
mov dword [ebp - 0xd4], 0
xor edx, edx
cmp dword [ebp - 0xa0], 0
sete dl
neg edx
mov word [ebp - 0xb4], dx
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
movsx eax, word [ebp - 0xb4]
test eax, eax
je 0x4e09d0
jmp 0x4e0b66
mov dword [ebp - 4], 0x14
call dword [sym.imp.MSVBVM60.DLL_rtcErrObj]
push eax
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 0xac], eax
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xac]
push edx
call dword [ecx + 0x2c]
fnclex
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jge 0x4e0a38
push 0x2c
push 0x412314
mov eax, dword [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0xb0]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xd8], eax
jmp 0x4e0a42
mov dword [ebp - 0xd8], 0
call dword [sym.imp.MSVBVM60.DLL_rtcErrObj]
push eax
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 0xb4], eax
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xb4]
push eax
call dword [edx + 0x1c]
fnclex
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
jge 0x4e0aa6
push 0x1c
push 0x412314
mov ecx, dword [ebp - 0xb4]
push ecx
mov edx, dword [ebp - 0xb8]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xdc], eax
jmp 0x4e0ab0
mov dword [ebp - 0xdc], 0
fld qword [0x4fc19c]
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0xd0]
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, 0x421ca4
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x421c58
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 0x4fc14c
lea edx, [ebp - 0xa8]
push edx
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.004eac50
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x2c]
push eax
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x10
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x38]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
add esp, 0xc
mov dword [ebp - 4], 0x15
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaResume]
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
wait
push 0x4e0bc0
jmp 0x4e0bb6
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
ret