Function at 0x4131d8
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x4037c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push 0x44
pop eax
call sub.MSVBVM50.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401640
cmp dword [0x4418a0], 0
jne 0x413226
push 0x4418a0
push 0x4060ac
call sub.MSVBVM50.DLL___vbaNew2
mov dword [ebp - 0x48], 0x4418a0
jmp 0x41322d
mov dword [ebp - 0x48], 0x4418a0
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
push dword [ebp - 0x34]
call dword [eax + 0x14]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jge 0x413264
push 0x14
push 0x40609c
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0x4c], eax
jmp 0x413268
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
push dword [ebp - 0x3c]
call dword [eax + 0x60]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jge 0x41329d
push 0x60
push 0x4060bc
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0x50], eax
jmp 0x4132a1
and dword [ebp - 0x50], 0
push 0x407b94
push dword [0x4410b8]
call sub.MSVBVM50.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x1c]
call sub.MSVBVM50.DLL___vbaStrMove
push eax
push 0x407bdc
call sub.MSVBVM50.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x24]
call sub.MSVBVM50.DLL___vbaStrMove
push eax
push dword [ebp - 0x20]
call sub.MSVBVM50.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x28]
call sub.MSVBVM50.DLL___vbaStrMove
push eax
push 0x406e8c
call sub.MSVBVM50.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x18]
call sub.MSVBVM50.DLL___vbaStrMove
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 4
call sub.MSVBVM50.DLL___vbaFreeStrList
add esp, 0x14
lea ecx, [ebp - 0x2c]
call sub.MSVBVM50.DLL___vbaFreeObj
push 2
pop ecx
call sub.MSVBVM50.DLL___vbaI2I4
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00412b30
lea eax, [ebp - 0x14]
push eax
call fcn.00414092
movsx eax, ax
test eax, eax
je 0x41337e
push dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
call sub.MSVBVM50.DLL___vbaObjSetAddref
lea eax, [ebp - 0x2c]
push eax
call fcn.00412999
push 0x406b60
push dword [ebp - 0x2c]
call sub.MSVBVM50.DLL___vbaCastObj
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MSVBVM50.DLL___vbaObjSet
lea ecx, [ebp - 0x2c]
call sub.MSVBVM50.DLL___vbaFreeObj
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 0xc4]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x4133af
push 0xc4
push 0x406b60
push dword [ebp - 0x14]
push dword [ebp - 0x34]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0x54], eax
jmp 0x4133b3
and dword [ebp - 0x54], 0
push 0x4133ee
jmp 0x4133dd
lea ecx, [ebp - 0x14]
call sub.MSVBVM50.DLL___vbaFreeObj
lea ecx, [ebp - 0x18]
call sub.MSVBVM50.DLL___vbaFreeStr
ret