Function at 0x4072f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4016f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x180
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4014b0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
cmp dword [0x40b73c], 0
jne 0x407370
push 0x40b73c
push 0x402544
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov dword [ebp - 0x168], 0x40b73c
jmp 0x40737a
mov dword [ebp - 0x168], 0x40b73c
mov eax, dword [ebp - 0x168]
mov ecx, dword [eax]
mov dword [ebp - 0x124], ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x124]
push edx
call dword [ecx + 0x14]
fnclex
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jge 0x4073d2
push 0x14
push 0x402534
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x16c], eax
jmp 0x4073dc
mov dword [ebp - 0x16c], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x12c], edx
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x12c]
push eax
call dword [edx + 0x118]
fnclex
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jge 0x407438
push 0x118
push 0x402554
mov ecx, dword [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x170], eax
jmp 0x407442
mov dword [ebp - 0x170], 0
xor eax, eax
cmp dword [ebp - 0x118], 0
setne al
neg eax
mov word [ebp - 0x134], ax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
movsx ecx, word [ebp - 0x134]
test ecx, ecx
je 0x407fae
mov dword [ebp - 4], 4
mov dword [ebp - 0x3c], 0x80020004
mov dword [ebp - 0x44], 0xa
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcFreeFile]
mov word [ebp - 0x24], ax
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov dword [ebp - 4], 5
push 0x403ca8
mov ax, word [ebp - 0x24]
push eax
push 0xffffffffffffffff
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFileOpen]
mov dword [ebp - 4], 6
push 2
push 0x403ca8
call dword [sym.imp.MSVBVM60.DLL_rtcSetFileAttr]
mov dword [ebp - 4], 7
push 0x403f24
mov cx, word [ebp - 0x24]
push ecx
push 0x403f54
call dword [sym.imp.MSVBVM60.DLL___vbaPrintFile]
add esp, 0xc
mov dword [ebp - 4], 8
push 0x403f5c
mov dx, word [ebp - 0x24]
push edx
push 0x403f54
call dword [sym.imp.MSVBVM60.DLL___vbaPrintFile]
add esp, 0xc
mov dword [ebp - 4], 9
push 0x22
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
push 0x22
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
mov dword [ebp - 0xdc], 0x403f78
mov dword [ebp - 0xe4], 8
mov dword [ebp - 0xec], 0x403fa4
mov dword [ebp - 0xf4], 8
mov dword [ebp - 0xfc], 0x403fc4
mov dword [ebp - 0x104], 8
lea edx, [ebp - 0xe4]
push edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea edx, [ebp - 0xf4]
push edx
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x84]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x94]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
mov dx, word [ebp - 0x24]
push edx
push 0x403fcc
call dword [sym.imp.MSVBVM60.DLL___vbaPrintFile]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x44]
push edx
push 6
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x1c
mov dword [ebp - 4], 0xa
push 0x22
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
push 0x22
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
mov dword [ebp - 0xdc], 0x403fd4
mov dword [ebp - 0xe4], 8
mov dword [ebp - 0xec], 0x404004
mov dword [ebp - 0xf4], 8
mov dword [ebp - 0xfc], 0x403fc4
mov dword [ebp - 0x104], 8
lea edx, [ebp - 0xe4]
push edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea edx, [ebp - 0xf4]
push edx
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x84]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x94]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
mov dx, word [ebp - 0x24]
push edx
push 0x403fcc
call dword [sym.imp.MSVBVM60.DLL___vbaPrintFile]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x44]
push edx
push 6
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x1c
mov dword [ebp - 4], 0xb
push 0x22
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
cmp dword [0x40b73c], 0
jne 0x40770c
push 0x40b73c
push 0x402544
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov dword [ebp - 0x174], 0x40b73c
jmp 0x407716
mov dword [ebp - 0x174], 0x40b73c
mov ecx, dword [ebp - 0x174]
mov edx, dword [ecx]
mov dword [ebp - 0x124], edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x124]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x124]
push eax
call dword [edx + 0x14]
fnclex
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jge 0x40776e
push 0x14
push 0x402534
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0x128]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x178], eax
jmp 0x407778
mov dword [ebp - 0x178], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x12c]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [eax + 0x58]
fnclex
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jge 0x4077cb
push 0x58
push 0x402554
mov edx, dword [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x17c], eax
jmp 0x4077d5
mov dword [ebp - 0x17c], 0
push 0x22
lea ecx, [ebp - 0xa4]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
mov dword [ebp - 0xdc], 0x404040
mov dword [ebp - 0xe4], 8
mov dword [ebp - 0xec], 0x404074
mov dword [ebp - 0xf4], 8
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x158], edx
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x74], 8
mov dword [ebp - 0xfc], 0x4040cc
mov dword [ebp - 0x104], 8
mov dword [ebp - 0x10c], 0x4040dc
mov dword [ebp - 0x114], 8
lea ecx, [ebp - 0xe4]
push ecx
lea edx, [ebp - 0x44]
push edx
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea ecx, [ebp - 0xf4]
push ecx
lea edx, [ebp - 0x64]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea eax, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea ecx, [ebp - 0xa4]
push ecx
lea edx, [ebp - 0xb4]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xc4]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
mov dx, word [ebp - 0x24]
push edx
push 0x403fcc
call dword [sym.imp.MSVBVM60.DLL___vbaPrintFile]
add esp, 0xc
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0xb4]
push ecx
lea edx, [ebp - 0xa4]
push edx
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x44]
push edx
push 9
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x28
mov dword [ebp - 4], 0xc
push 0x40324c
mov ax, word [ebp - 0x24]
push eax
push 0x403f54
call dword [sym.imp.MSVBVM60.DLL___vbaPrintFile]
add esp, 0xc
mov dword [ebp - 4], 0xd
push 0x403e5c
mov cx, word [ebp - 0x24]
push ecx
push 0x403f54
call dword [sym.imp.MSVBVM60.DLL___vbaPrintFile]
add esp, 0xc
mov dword [ebp - 4], 0xe
push 0x22
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcVarBstrFromAnsi]
cmp dword [0x40b73c], 0
jne 0x40799d
push 0x40b73c
push 0x402544
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov dword [ebp - 0x180], 0x40b73c
jmp 0x4079a7
mov dword [ebp - 0x180], 0x40b73c
mov eax, dword [ebp - 0x180]
mov ecx, dword [eax]
mov dword [ebp - 0x124], ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x124]
push edx
call dword [ecx + 0x14]
fnclex
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
jge 0x4079ff
push 0x14
push 0x402534
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x184], eax
jmp 0x407a09
mov dword [ebp - 0x184], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x12c], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x12c]
push eax
call dword [edx + 0x50]
fnclex
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
jge 0x407a5c
push 0x50
push 0x402554
mov ecx, dword [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x188], eax
jmp 0x407a66
mov dword [ebp - 0x188], 0
cmp dword [0x40b73c], 0
jne 0x407a8b
push 0x40b73c
push 0x402544
call dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov dword [ebp - 0x18c], 0x40b73c
jmp 0x407a95
mov dword [ebp - 0x18c], 0x40b73c
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax]
mov dword [ebp - 0x134], ecx
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x134]
push edx
call dword [ecx + 0x14]
fnclex
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
jge 0x407aed
push 0x14
push 0x402534
mov eax, dword [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x190], eax
jmp 0x407af7
mov dword [ebp - 0x190], 0
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x13c], edx
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x13c]
push eax
call dword [edx + 0x58]
fnclex
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
jge 0x407b4a
push 0x58
push 0x402554
mov ecx, dword [ebp - 0x13c]
call dword [ecx - 0x75]
xchg ebp, eax
sar dh, 0xff
call dword [edx - 1]
adc eax, sym.imp.MSVBVM60.DLL___vbaHresultCheckObj
mov dword [ebp - 0x194], 0