Function at 0x4041f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4011f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4011e0
xor esi, esi
lea edx, [ebp - 0x6c]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x44], 0x80020004
mov dword [ebp - 0x4c], 0xa
mov dword [ebp - 0x64], 0x4032e0
mov dword [ebp - 0x6c], 8
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x5c]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcGetObject]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaObjVar]
lea eax, [ebp - 0x5c]
push eax
call edi
lea ecx, [ebp - 0x2c]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
lea edx, [ebp - 0x5c]
lea eax, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x3c]
push eax
push ecx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov edx, esp
mov ecx, 8
mov dword [ebp - 0x6c], ecx
mov eax, 0x403324
mov dword [edx], ecx
mov ecx, dword [ebp - 0x68]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaLateMemCallLd]
mov dword [ebp - 0x64], eax
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x2c]
push 1
push 0x4033c0
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x60]
push ecx
mov dword [edx + 0xc], eax
lea edx, [ebp - 0x3c]
push edx
call ebx
add esp, 0x20
push eax
call edi
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x80]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaForEachCollAd]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaVarMove]
cmp eax, esi
je 0x40439d
mov ecx, dword [ebp - 0x18]
push esi
push 0x4033d4
lea edx, [ebp - 0x3c]
push ecx
push edx
call ebx
add esp, 0x10
mov edx, eax
lea ecx, [ebp - 0x28]
call edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcIsNull]
test ax, ax
je 0x404342
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x80]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaNextEachCollAd]
jmp 0x404301
mov edx, dword [ebp - 0x68]
sub esp, 0x10
mov ecx, esp
mov eax, 2
mov dword [ebp - 0x6c], eax
push 1
mov dword [ecx], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], esi
mov dword [ecx + 4], edx
lea edx, [ebp - 0x3c]
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0x28]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarIndexLoad]
add esp, 0x1c
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
mov ecx, 0x405024
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaExitEachColl]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
lea ecx, [ebp - 0x14]
push esi
push ecx
call edi
lea edx, [ebp - 0x2c]
push esi
push edx
call edi
push 0x4043f4
jmp 0x4043d0
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x80]
call esi
lea ecx, [ebp - 0x14]
call esi
lea ecx, [ebp - 0x18]
call esi
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x2c]
call esi
ret