Function at 0x40bd90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x401e76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x154
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4013e0
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
call fcn.0040b600
movsx eax, ax
test eax, eax
jne 0x40bf04
mov dword [ebp - 4], 4
call dword [sym.imp.MSVBVM60.DLL_rtcErrObj]
push eax
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0x98], 0x80020004
mov dword [ebp - 0xa0], 0xa
mov dword [ebp - 0x88], 0x80020004
mov dword [ebp - 0x90], 0xa
mov dword [ebp - 0xb8], 0x406004
mov dword [ebp - 0xc0], 8
lea edx, [ebp - 0xc0]
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
mov dword [ebp - 0x68], 0x80020004
mov dword [ebp - 0x70], 0xa
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x70]
push edx
push 0
mov eax, dword [ebp - 0xe8]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xe8]
push edx
call dword [ecx + 0x44]
fnclex
mov dword [ebp - 0xec], eax
cmp dword [ebp - 0xec], 0
jge 0x40bed0
push 0x44
push 0x404d88
mov eax, dword [ebp - 0xe8]
push eax
mov ecx, dword [ebp - 0xec]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x128], eax
jmp 0x40beda
mov dword [ebp - 0x128], 0
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x70]
push edx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x14
mov dword [ebp - 4], 6
call fcn.0040d510
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 4], 7
push 0x4060ac
call dword [sym.imp.MSVBVM60.DLL___vbaNew]
push eax
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 4], 8
push 0x4060c0
push 0x40617c
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x4061ec
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x4062e0
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x406340
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x406370
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x4063d0
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x40646c
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x4064c8
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x4064d8
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x38]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x24
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0x100]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
mov dword [ebp - 4], 0xa
push 1
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x100]
push edx
call dword [ecx + 0x50]
fnclex
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
jge 0x40c0a4
push 0x50
push 0x406528
mov eax, dword [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0xe8]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x12c], eax
jmp 0x40c0ae
mov dword [ebp - 0x12c], 0
mov dword [ebp - 4], 0xb
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x100]
push edx
call dword [ecx + 0x30]
fnclex
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
jge 0x40c0ff
push 0x30
push 0x406528
mov eax, dword [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0xe8]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x130], eax
jmp 0x40c109
mov dword [ebp - 0x130], 0
mov dword [ebp - 4], 0xc
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xb0], 9
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov eax, esp
mov ecx, dword [ebp - 0xb0]
mov dword [eax], ecx
mov edx, dword [ebp - 0xac]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xa8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0xa4]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x100]
push edx
call dword [ecx + 0x28]
fnclex
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
jge 0x40c198
push 0x28
push 0x406528
mov eax, dword [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0xe8]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x134], eax
jmp 0x40c1a2
mov dword [ebp - 0x134], 0
mov dword [ebp - 4], 0xd
call fcn.0040b6f0
mov edx, eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea edx, [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x100]
push edx
call dword [ecx + 0x4c]
fnclex
mov dword [ebp - 0xec], eax
cmp dword [ebp - 0xec], 0
jge 0x40c203
push 0x4c
push 0x406528
mov eax, dword [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0xec]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x138], eax
jmp 0x40c20d
mov dword [ebp - 0x138], 0
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x70], 8
lea edx, [ebp - 0x58]
push edx
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov eax, esp
mov ecx, dword [ebp - 0x70]
mov dword [eax], ecx
mov edx, dword [ebp - 0x6c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x68]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x64]
mov dword [eax + 0xc], edx
push 0x78
push 1
push 0xc8
push 0x40653c
mov eax, dword [ebp - 0x100]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x100]
push edx
call dword [ecx + 0x48]
fnclex
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
jge 0x40c2b1
push 0x48
push 0x406528
mov eax, dword [ebp - 0x100]
push eax
mov ecx, dword [ebp - 0xe8]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x13c], eax
jmp 0x40c2bb
mov dword [ebp - 0x13c], 0
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push eax
mov edx, dword [ebp - 0xf0]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xf0]
push ecx
call dword [eax + 0x28]
fnclex
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0xf4], 0
jge 0x40c323
push 0x28
push 0x406554
mov edx, dword [ebp - 0xf0]
push edx
mov eax, dword [ebp - 0xf4]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x140], eax
jmp 0x40c32d
mov dword [ebp - 0x140], 0
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x60]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
add esp, 0xc
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 0xe
call fcn.0040b620
mov edx, eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x100]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x100]
push eax
call dword [edx + 0x4c]
fnclex
mov dword [ebp - 0xec], eax
cmp dword [ebp - 0xec], 0
jge 0x40c3b3
push 0x4c
push 0x406528
mov ecx, dword [ebp - 0x100]
push ecx
mov edx, dword [ebp - 0xec]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x144], eax
jmp 0x40c3bd
mov dword [ebp - 0x144], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x70], 8
lea eax, [ebp - 0x58]
push eax
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov ecx, esp
mov edx, dword [ebp - 0x70]
mov dword [ecx], edx
mov eax, dword [ebp - 0x6c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x68]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x64]
mov dword [ecx + 0xc], eax
push 0x3c
push 1
push 0xc8
push 0x406568
mov ecx, dword [ebp - 0x100]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x100]
push eax
call dword [edx + 0x48]
fnclex
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
jge 0x40c461
push 0x48
push 0x406528
mov ecx, dword [ebp - 0x100]
push ecx
mov edx, dword [ebp - 0xe8]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x148], eax
jmp 0x40c46b
mov dword [ebp - 0x148], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x58], 0
mov ecx, dword [ebp - 0x124]
push ecx
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push eax
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax]
mov edx, dword [ebp - 0xf0]
push edx
call dword [ecx + 0x28]
fnclex
mov dword [ebp - 0xf4], eax
cmp dword [ebp - 0xf4], 0
jge 0x40c4d3
push 0x28
push 0x406554
mov eax, dword [ebp - 0xf0]
push eax
mov ecx, dword [ebp - 0xf4]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x14c], eax
jmp 0x40c4dd
mov dword [ebp - 0x14c], 0
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x60]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
add esp, 0xc
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 0xf
mov dword [ebp - 0x78], 0x80020004
mov dword [ebp - 0x80], 0xa
mov dword [ebp - 0x68], 0x80020004
mov dword [ebp - 0x70], 0xa
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarg]
lea ecx, [ebp - 0x58]
push ecx
push 0xffffffffffffffff
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x100]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x100]
push eax
call dword [edx + 0x44]
fnclex
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
jge 0x40c582
push 0x44
push 0x406528
mov ecx, dword [ebp - 0x100]
push ecx
mov edx, dword [ebp - 0xe8]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x150], eax
jmp 0x40c58c
mov dword [ebp - 0x150], 0
push 0x40657c
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
push eax
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x70]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0xc
mov dword [ebp - 4], 0x10
push 0
lea ecx, [ebp - 0x100]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
mov dword [ebp - 4], 0x11
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x28]
push edx
call dword [ecx + 0x54]
fnclex
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
jge 0x40c620
push 0x54
push 0x4059bc
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0xe8]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x154], eax
jmp 0x40c62a
mov dword [ebp - 0x154], 0
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0xec], edx
mov dword [ebp - 0xa8], 0x406384
mov dword [ebp - 0xb0], 8
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x10
call sub.MSVBVM60.DLL___vbaChkstk
mov ecx, esp
mov edx, dword [ebp - 0xb0]
mov dword [ecx], edx
mov eax, dword [ebp - 0xac]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xa8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0xa4]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0xec]
mov edx, dword [ecx]
mov eax, dword [ebp - 0xec]
push eax
call dword [edx + 0x28]
fnclex
mov dword [ebp - 0xf0], eax
cmp dword [ebp - 0xf0], 0
jge 0x40c6c0
push 0x28
push 0x4059dc
mov ecx, dword [ebp - 0xec]
push ecx
mov edx, dword [ebp - 0xf0]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x158], eax
jmp 0x40c6ca
mov dword [ebp - 0x158], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0xf4], eax
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0xf4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xf4]
push ecx
call dword [eax + 0x34]
fnclex
mov dword [ebp - 0xf8], eax
cmp dword [ebp - 0xf8], 0
jge 0x40c71d
push 0x34
push 0x4059ec
mov edx, dword [ebp - 0xf4]
push edx
mov eax, dword [ebp - 0xf8]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x15c], eax
jmp 0x40c727
mov dword [ebp - 0x15c], 0
lea ecx, [ebp - 0x70]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x58]
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
add esp, 0xc
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 0x12
push 0x40657c
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
push eax
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 4], 0x13
push 0x40609c
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
push eax
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 4], 0x14
push 0x4063a0
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov dword [ebp - 4], 0x15
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
jmp 0x40cb1f
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x40cbc1
jmp 0x40cb90
lea ecx, [ebp - 0x100]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
ret