Function at 0x4117cd
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x4037c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0xb4
call sub.MSVBVM50.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x4013e0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x34]
call sub.MSVBVM50.DLL___vbaStrCopy
push 1
call sub.MSVBVM50.DLL___vbaOnError
lea eax, [ebp - 0x34]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x8c], 0x4008
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.MSVBVM50.DLL_rtcUpperCaseVar
lea eax, [ebp - 0x5c]
push eax
call sub.MSVBVM50.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x34]
call sub.MSVBVM50.DLL___vbaStrMove
lea ecx, [ebp - 0x5c]
call sub.MSVBVM50.DLL___vbaFreeVar
lea eax, [ebp - 0x34]
push eax
call fcn.0041111c
movsx eax, ax
test eax, eax
je 0x411898
push dword [ebp - 0x34]
call sub.MSVBVM50.DLL_rtcFileLen
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x5c]
push eax
call sub.MSVBVM50.DLL_rtcFileDateTime
lea eax, [ebp - 0x5c]
push eax
call sub.MSVBVM50.DLL___vbaDateVar
fstp qword [ebp - 0x28]
lea ecx, [ebp - 0x5c]
call sub.MSVBVM50.DLL___vbaFreeVar
jmp 0x4118b9
and dword [ebp - 0x2c], 0
lea eax, [ebp - 0x5c]
push eax
call sub.MSVBVM50.DLL_rtcGetPresentDate
lea eax, [ebp - 0x5c]
push eax
call sub.MSVBVM50.DLL___vbaDateVar
fstp qword [ebp - 0x28]
lea ecx, [ebp - 0x5c]
call sub.MSVBVM50.DLL___vbaFreeVar
push 0x407830
push dword [ebp - 0x34]
call sub.MSVBVM50.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x40]
call sub.MSVBVM50.DLL___vbaStrMove
push eax
push 0x407884
call sub.MSVBVM50.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x44]
call sub.MSVBVM50.DLL___vbaStrMove
push eax
push dword [0x4410b8]
call sub.MSVBVM50.DLL___vbaStrCat
mov edx, eax
lea ecx, [ebp - 0x48]
call sub.MSVBVM50.DLL___vbaStrMove
push eax
push 0x4078a0
call sub.MSVBVM50.DLL___vbaStrCat
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x6c], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x8c], 0x4007
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00413a1c
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x7c]
push eax
call sub.MSVBVM50.DLL___vbaVarAdd
push eax
call sub.MSVBVM50.DLL___vbaStrVarMove
mov edx, eax
lea ecx, [ebp - 0x30]
call sub.MSVBVM50.DLL___vbaStrMove
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
push 3
call sub.MSVBVM50.DLL___vbaFreeStrList
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x6c]
push eax
push 3
call sub.MSVBVM50.DLL___vbaFreeVarList
add esp, 0x10
push 2
pop ecx
call sub.MSVBVM50.DLL___vbaI2I4
mov word [ebp - 0xa0], ax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x4410c0
lea eax, [ebp - 0x20]
push eax
call fcn.00412b30
lea eax, [ebp - 0x20]
push eax
call fcn.00414092
movsx eax, ax
test eax, eax
jne 0x411d69
lea eax, [ebp - 0x20]
push eax
call fcn.0041304c
lea eax, [ebp - 0x5c]
push eax
call sub.MSVBVM50.DLL_rtcGetPresentDate
mov dword [ebp - 0x84], 0x4078c4
mov dword [ebp - 0x8c], 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 - 0x8c]
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 - 0x20]
mov eax, dword [eax]
push dword [ebp - 0x20]
call dword [eax + 0x128]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jge 0x411a44
push 0x128
push 0x406b60
push dword [ebp - 0x20]
push dword [ebp - 0xa4]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0xb8], eax
jmp 0x411a4b
and dword [ebp - 0xb8], 0
lea ecx, [ebp - 0x5c]
call sub.MSVBVM50.DLL___vbaFreeVar
mov eax, dword [0x4410b8]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x9c], 8
mov dword [ebp - 0x84], 0x407800
mov dword [ebp - 0x8c], 8
push 0x10
pop eax
call sub.MSVBVM50.DLL___vbaChkstk
lea esi, [ebp - 0x9c]
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 - 0x8c]
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 - 0x20]
mov eax, dword [eax]
push dword [ebp - 0x20]
call dword [eax + 0x128]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jge 0x411ae1
push 0x128
push 0x406b60
push dword [ebp - 0x20]
push dword [ebp - 0xa4]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0xbc], eax
jmp 0x411ae8
and dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x9c], 8
mov dword [ebp - 0x84], 0x4078d8
mov dword [ebp - 0x8c], 8
push 0x10
pop eax
call sub.MSVBVM50.DLL___vbaChkstk
lea esi, [ebp - 0x9c]
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 - 0x8c]
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 - 0x20]
mov eax, dword [eax]
push dword [ebp - 0x20]
call dword [eax + 0x128]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jge 0x411b74
push 0x128
push 0x406b60
push dword [ebp - 0x20]
push dword [ebp - 0xa4]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0xc0], eax
jmp 0x411b7b
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x9c], 3
mov dword [ebp - 0x84], 0x4078f0
mov dword [ebp - 0x8c], 8
push 0x10
pop eax
call sub.MSVBVM50.DLL___vbaChkstk
lea esi, [ebp - 0x9c]
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 - 0x8c]
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 - 0x20]
mov eax, dword [eax]
push dword [ebp - 0x20]
call dword [eax + 0x128]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jge 0x411c07
push 0x128
push 0x406b60
push dword [ebp - 0x20]
push dword [ebp - 0xa4]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0xc4], eax
jmp 0x411c0e
and dword [ebp - 0xc4], 0
fld qword [ebp - 0x28]
fstp qword [ebp - 0x94]
mov dword [ebp - 0x9c], 7
mov dword [ebp - 0x84], 0x407908
mov dword [ebp - 0x8c], 8
push 0x10
pop eax
call sub.MSVBVM50.DLL___vbaChkstk
lea esi, [ebp - 0x9c]
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 - 0x8c]
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 - 0x20]
mov eax, dword [eax]
push dword [ebp - 0x20]
call dword [eax + 0x128]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jge 0x411c9a
push 0x128
push 0x406b60
push dword [ebp - 0x20]
push dword [ebp - 0xa4]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0xc8], eax
jmp 0x411ca1
and dword [ebp - 0xc8], 0
call fcn.0040f82b
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], 8
mov dword [ebp - 0x84], 0x407920
mov dword [ebp - 0x8c], 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 - 0x8c]
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 - 0x20]
mov eax, dword [eax]
push dword [ebp - 0x20]
call dword [eax + 0x128]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jge 0x411d26
push 0x128
push 0x406b60
push dword [ebp - 0x20]
push dword [ebp - 0xa4]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0xcc], eax
jmp 0x411d2d
and dword [ebp - 0xcc], 0
lea ecx, [ebp - 0x5c]
call sub.MSVBVM50.DLL___vbaFreeVar
push dword [ebp - 0x20]
lea eax, [ebp - 0x4c]
push eax
call sub.MSVBVM50.DLL___vbaObjSetAddref
lea eax, [ebp - 0x4c]
push eax
call fcn.00412d52
push 0x406b60
push dword [ebp - 0x4c]
call sub.MSVBVM50.DLL___vbaCastObj
push eax
lea eax, [ebp - 0x20]
push eax
call sub.MSVBVM50.DLL___vbaObjSet
lea ecx, [ebp - 0x4c]
call sub.MSVBVM50.DLL___vbaFreeObj
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
push dword [ebp - 0x20]
call dword [eax + 0xc4]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jge 0x411da6
push 0xc4
push 0x406b60
push dword [ebp - 0x20]
push dword [ebp - 0xa4]
call sub.MSVBVM50.DLL___vbaHresultCheckObj
mov dword [ebp - 0xd0], eax
jmp 0x411dad
and dword [ebp - 0xd0], 0
push 0
call sub.MSVBVM50.DLL___vbaOnError
jmp 0x411dbd
call sub.MSVBVM50.DLL___vbaExitProc
wait
push 0x411e18
jmp 0x411dff
lea ecx, [ebp - 0x20]
call sub.MSVBVM50.DLL___vbaFreeObj
lea ecx, [ebp - 0x30]
call sub.MSVBVM50.DLL___vbaFreeStr
lea ecx, [ebp - 0x34]
call sub.MSVBVM50.DLL___vbaFreeStr
ret