Function at 0x4133ff
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
mov eax, 0xa0
call sub.MSVBVM50.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401650
cmp dword [0x4418a0], 0
jne 0x41344f
push 0x4418a0
push 0x4060ac
call sub.MSVBVM50.DLL___vbaNew2
mov dword [ebp - 0x80], 0x4418a0
jmp 0x413456
mov dword [ebp - 0x80], 0x4418a0
mov eax, dword [ebp - 0x80]
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
push dword [ebp - 0x64]
call dword [eax + 0x14]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jge 0x413490
push 0x14
push 0x40609c
push dword [ebp - 0x64]
push dword [ebp - 0x68]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0x84], eax
jmp 0x413497
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
push dword [ebp - 0x6c]
call dword [eax + 0x60]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jge 0x4134cf
push 0x60
push 0x4060bc
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0x88], eax
jmp 0x4134d6
and dword [ebp - 0x88], 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 - 0x60], ax
lea eax, [ebp - 0x60]
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 0x41366c
push dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
call sub.MSVBVM50.DLL___vbaObjSetAddref
lea eax, [ebp - 0x2c]
push eax
call fcn.00412eb5
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
lea eax, [ebp - 0x3c]
push eax
call sub.MSVBVM50.DLL_rtcGetPresentDate
mov dword [ebp - 0x44], 0x4077ec
mov dword [ebp - 0x4c], 8
push 0x10
pop eax
call sub.MSVBVM50.DLL___vbaChkstk
lea esi, [ebp - 0x3c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
pop eax
call sub.MSVBVM50.DLL___vbaChkstk
lea esi, [ebp - 0x4c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 0x128]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jge 0x413624
push 0x128
push 0x406b60
push dword [ebp - 0x14]
push dword [ebp - 0x64]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0x8c], eax
jmp 0x41362b
and dword [ebp - 0x8c], 0
lea ecx, [ebp - 0x3c]
call sub.MSVBVM50.DLL___vbaFreeVar
push dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
call sub.MSVBVM50.DLL___vbaObjSetAddref
lea eax, [ebp - 0x2c]
push eax
call fcn.00412d52
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
jmp 0x41398d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 0xc0]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jge 0x4136a0
push 0xc0
push 0x406b60
push dword [ebp - 0x14]
push dword [ebp - 0x64]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0x90], eax
jmp 0x4136a7
and dword [ebp - 0x90], 0
mov eax, dword [0x4410b8]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], 8
mov dword [ebp - 0x44], 0x407800
mov dword [ebp - 0x4c], 8
push 0x10
pop eax
call sub.MSVBVM50.DLL___vbaChkstk
lea esi, [ebp - 0x5c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
pop eax
call sub.MSVBVM50.DLL___vbaChkstk
lea esi, [ebp - 0x4c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 0x128]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jge 0x41371a
push 0x128
push 0x406b60
push dword [ebp - 0x14]
push dword [ebp - 0x64]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0x94], eax
jmp 0x413721
and dword [ebp - 0x94], 0
mov dword [ebp - 0x54], 0x405c9c
mov dword [ebp - 0x5c], 8
mov dword [ebp - 0x44], 0x407c04
mov dword [ebp - 0x4c], 8
push 0x10
pop eax
call sub.MSVBVM50.DLL___vbaChkstk
lea esi, [ebp - 0x5c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
pop eax
call sub.MSVBVM50.DLL___vbaChkstk
lea esi, [ebp - 0x4c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 0x128]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jge 0x413793
push 0x128
push 0x406b60
push dword [ebp - 0x14]
push dword [ebp - 0x64]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0x98], eax
jmp 0x41379a
and dword [ebp - 0x98], 0
lea eax, [ebp - 0x3c]
push eax
call sub.MSVBVM50.DLL_rtcGetPresentDate
mov dword [ebp - 0x44], 0x4077ec
mov dword [ebp - 0x4c], 8
push 0x10
pop eax
call sub.MSVBVM50.DLL___vbaChkstk
lea esi, [ebp - 0x3c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
pop eax
call sub.MSVBVM50.DLL___vbaChkstk
lea esi, [ebp - 0x4c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 0x128]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0
jge 0x413807
push 0x128
push 0x406b60
push dword [ebp - 0x14]
push dword [ebp - 0x64]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0x9c], eax
jmp 0x41380e
and dword [ebp - 0x9c], 0
lea ecx, [ebp - 0x3c]
call sub.MSVBVM50.DLL___vbaFreeVar
cmp dword [0x4418a0], 0
jne 0x41383a
push 0x4418a0
push 0x4060ac
call sub.MSVBVM50.DLL___vbaNew2
mov dword [ebp - 0xa0], 0x4418a0
jmp 0x413844
mov dword [ebp - 0xa0], 0x4418a0
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
push dword [ebp - 0x64]
call dword [eax + 0x14]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jge 0x413881
push 0x14
push 0x40609c
push dword [ebp - 0x64]
push dword [ebp - 0x68]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0xa4], eax
jmp 0x413888
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
push dword [ebp - 0x6c]
call dword [eax + 0x60]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jge 0x4138c0
push 0x60
push 0x4060bc
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0xa8], eax
jmp 0x4138c7
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x7c], eax
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], 8
mov dword [ebp - 0x44], 0x4074c0
mov dword [ebp - 0x4c], 8
push 0x10
pop eax
call sub.MSVBVM50.DLL___vbaChkstk
lea esi, [ebp - 0x3c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x10
pop eax
call sub.MSVBVM50.DLL___vbaChkstk
lea esi, [ebp - 0x4c]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push dword [ebp - 0x14]
call dword [eax + 0x128]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0
jge 0x413942
push 0x128
push 0x406b60
push dword [ebp - 0x14]
push dword [ebp - 0x74]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0xac], eax
jmp 0x413949
and dword [ebp - 0xac], 0
lea ecx, [ebp - 0x2c]
call sub.MSVBVM50.DLL___vbaFreeObj
lea ecx, [ebp - 0x3c]
call sub.MSVBVM50.DLL___vbaFreeVar
push dword [ebp - 0x14]
lea eax, [ebp - 0x2c]
push eax
call sub.MSVBVM50.DLL___vbaObjSetAddref
lea eax, [ebp - 0x2c]
push eax
call fcn.00412d52
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 - 0x64], eax
cmp dword [ebp - 0x64], 0
jge 0x4139c1
push 0xc4
push 0x406b60
push dword [ebp - 0x14]
push dword [ebp - 0x64]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0xb0], eax
jmp 0x4139c8
and dword [ebp - 0xb0], 0
push 0x413a0b
jmp 0x4139fa
lea ecx, [ebp - 0x14]
call sub.MSVBVM50.DLL___vbaFreeObj
lea ecx, [ebp - 0x18]
call sub.MSVBVM50.DLL___vbaFreeStr
ret