Function at 0x4608c0
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], 0x4023e8
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
mov dword [ebp - 0x58], 0x4179cc
mov dword [ebp - 0x60], 8
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x80], 3
push 0x412dd8
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov eax, esp
mov ecx, dword [ebp - 0x60]
mov dword [eax], ecx
mov edx, dword [ebp - 0x5c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x58]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x54]
mov dword [eax + 0xc], edx
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 2
push 0x60010000
mov eax, dword [0x4fc104]
push eax
lea ecx, [ebp - 0x50]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCallLd]
add esp, 0x30
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaCastObjVar]
push eax
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 4
push 0
push 0x60010010
mov eax, dword [ebp - 0x24]
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 - 0xa4], dx
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
movsx eax, word [ebp - 0xa4]
test eax, eax
je 0x460a12
mov dword [ebp - 4], 5
call fcn.00460e60
jmp 0x460de8
mov dword [ebp - 4], 8
cmp dword [0x4fc02c], 0
jne 0x460a3e
push 0x4fc02c
push 0x41272c
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov dword [ebp - 0xcc], 0x4fc02c
jmp 0x460a48
mov dword [ebp - 0xcc], 0x4fc02c
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ecx]
mov dword [ebp - 0xa4], edx
mov word [ebp - 0x94], 2
mov edx, 0x417a40
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x4126d0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 0x4fc104
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xa4]
push edx
call dword [ecx + 0x1c]
fnclex
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
jge 0x460ad5
push 0x1c
push 0x41271c
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xd0], eax
jmp 0x460adf
mov dword [ebp - 0xd0], 0
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x2c]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
mov dword [ebp - 4], 9
mov dword [ebp - 0x58], 0x417ad4
mov dword [ebp - 0x60], 8
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov ecx, esp
mov edx, dword [ebp - 0x60]
mov dword [ecx], edx
mov eax, dword [ebp - 0x5c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x58]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x54]
mov dword [ecx + 0xc], eax
push 1
push 0x60010006
mov ecx, dword [0x4fc104]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCall]
add esp, 0x1c
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x58], 0x417bf8
mov dword [ebp - 0x60], 8
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov edx, esp
mov eax, dword [ebp - 0x60]
mov dword [edx], eax
mov ecx, dword [ebp - 0x5c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x58]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x54]
mov dword [edx + 0xc], ecx
push 1
push 0x60010006
mov edx, dword [0x4fc104]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLateIdCall]
add esp, 0x1c
mov dword [ebp - 4], 0xb
push 0x412dd8
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 4], 0xd
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 - 0xa4], eax
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xa4]
push edx
call dword [ecx + 0x1c]
fnclex
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
jge 0x460c1a
push 0x1c
push 0x412314
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xd4], eax
jmp 0x460c24
mov dword [ebp - 0xd4], 0
xor edx, edx
cmp dword [ebp - 0x98], 0
sete dl
neg edx
mov word [ebp - 0xac], dx
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
movsx eax, word [ebp - 0xac]
test eax, eax
je 0x460c52
jmp 0x460de8
mov dword [ebp - 4], 0xf
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 - 0xa4], eax
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xa4]
push edx
call dword [ecx + 0x2c]
fnclex
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
jge 0x460cba
push 0x2c
push 0x412314
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa8]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xd8], eax
jmp 0x460cc4
mov dword [ebp - 0xd8], 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 - 0xac], eax
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0xac]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xac]
push eax
call dword [edx + 0x1c]
fnclex
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jge 0x460d28
push 0x1c
push 0x412314
mov ecx, dword [ebp - 0xac]
push ecx
mov edx, dword [ebp - 0xb0]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0xdc], eax
jmp 0x460d32
mov dword [ebp - 0xdc], 0
fld qword [0x4fc19c]
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0xc8]
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, 0x417c84
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x417c68
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 0x4fc14c
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0x9c]
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], 0x10
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaResume]
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
wait
push 0x460e41
jmp 0x460e2e
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
ret