Function at 0x462a21
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x406bb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x403340
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0xd8], ebx
mov dword [ebp - 0xe8], ebx
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x11c], ebx
push 1
call sub.MSVBVM60.DLL___vbaOnError
cmp dword [0x4d5f98], ebx
jne 0x462af7
push 0x4d5f98
push 0x40ada8
call sub.MSVBVM60.DLL___vbaNew2
mov esi, dword [0x4d5f98]
mov eax, dword [esi]
lea ecx, [ebp - 0xa0]
push ecx
push esi
call dword [eax + 0x14]
fnclex
cmp eax, ebx
jge 0x462b1e
push 0x14
push 0x40ad98
push esi
push eax
call sub.MSVBVM60.DLL___vbaHresultCheckObj
mov eax, dword [ebp - 0xa0]
mov esi, eax
mov ecx, dword [eax]
lea edx, [ebp - 0x80]
push edx
push eax
call dword [ecx + 0x50]
fnclex
cmp eax, ebx
jge 0x462b44
push 0x50
push 0x40adb8
push esi
push eax
call sub.MSVBVM60.DLL___vbaHresultCheckObj
push dword [ebp - 0x80]
push 0x412f04
call sub.MSVBVM60.DLL___vbaStrCat
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xb8], 8
lea edx, [ebp - 0xb8]
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaVarMove
lea ecx, [ebp - 0x80]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0xa0]
call sub.MSVBVM60.DLL___vbaFreeObj
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xe8], 0x400c
push ebx
push 0x40b4e0
lea eax, [ebp - 0xb8]
push eax
call sub.MSVBVM60.DLL_rtcCreateObject2
mov dword [ebp - 0xf0], ebx
mov dword [ebp - 0xf8], 0x800b
sub esp, 0x10
lea esi, [ebp - 0xe8]
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 1
push 0x40b140
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xc8]
push eax
call sub.MSVBVM60.DLL___vbaVarLateMemCallLd
add esp, 0x20
push eax
lea eax, [ebp - 0xf8]
push eax
call sub.MSVBVM60.DLL___vbaVarTstEq
mov di, ax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xb8]
push eax
push 2
pop esi
push esi
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
cmp di, bx
je 0x462d38
cmp dword [0x4d5010], ebx
jne 0x462c2d
push 0x4d5010
push 0x4099bc
call sub.MSVBVM60.DLL___vbaNew2
mov esi, dword [0x4d5010]
mov eax, dword [esi]
lea ecx, [ebp - 0x80]
push ecx
push esi
call dword [eax + 0x738]
fnclex
cmp eax, ebx
jge 0x462c57
push 0x738
push 0x40a860
push esi
push eax
call sub.MSVBVM60.DLL___vbaHresultCheckObj
push dword [ebp - 0x80]
push 0x412b28
call sub.MSVBVM60.DLL___vbaStrCat
mov dword [ebp - 0xb0], eax
push 8
pop edi
mov dword [ebp - 0xb8], edi
lea edx, [ebp - 0xb8]
lea ecx, [ebp - 0x7c]
call sub.MSVBVM60.DLL___vbaVarMove
lea ecx, [ebp - 0x80]
call sub.MSVBVM60.DLL___vbaFreeStr
cmp dword [0x4d5010], ebx
jne 0x462ca0
push 0x4d5010
push 0x4099bc
call sub.MSVBVM60.DLL___vbaNew2
mov esi, dword [0x4d5010]
mov eax, dword [esi]
lea ecx, [ebp - 0x80]
push ecx
push esi
call dword [eax + 0x718]
fnclex
cmp eax, ebx
jge 0x462cca
push 0x718
push 0x40a860
push esi
push eax
call sub.MSVBVM60.DLL___vbaHresultCheckObj
mov dword [ebp - 0xe0], 0x41293c
mov dword [ebp - 0xe8], edi
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xc8], edi
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0xb8]
push eax
call sub.MSVBVM60.DLL___vbaVarCat
push eax
lea eax, [ebp - 0xc8]
push eax
call fcn.0044b1fa
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xc8]
push eax
push 2
call sub.MSVBVM60.DLL___vbaFreeVarList
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0044bf0f
push 2
pop esi
mov dword [ebp - 0x48], ebx
mov edx, 0x413fe4
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaStrCopy
lea eax, [ebp - 0x48]
push eax
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0xe8]
call sub.MSVBVM60.DLL___vbaVarVargNofree
push eax
lea eax, [ebp - 0x80]
push eax
call sub.MSVBVM60.DLL___vbaStrVarVal
push eax
lea eax, [ebp - 0x84]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
call fcn.0040ac44
call sub.MSVBVM60.DLL___vbaSetSystemError
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0xc
cmp dword [ebp - 0x48], ebx
jle 0x462e78
push dword [ebp - 0x44]
lea eax, [ebp - 0x84]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x80]
push eax
call sub.MSVBVM60.DLL___vbaStrToAnsi
push eax
push dword [ebp - 0x48]
lea eax, [ebp - 0xb8]
push eax
call fcn.0040ac90
call sub.MSVBVM60.DLL___vbaSetSystemError
push dword [ebp - 0x80]
lea eax, [ebp - 0x30]
push eax
call sub.MSVBVM60.DLL___vbaStrToUnicode
push dword [ebp - 0x84]
lea eax, [ebp - 0x44]
push eax
call sub.MSVBVM60.DLL___vbaStrToUnicode
lea edx, [ebp - 0xb8]
lea ecx, [ebp - 0x58]
call sub.MSVBVM60.DLL___vbaVarMove
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
call sub.MSVBVM60.DLL___vbaFreeStrList
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
call sub.MSVBVM60.DLL_rtcIsEmpty
test ax, ax
jne 0x462e78
mov dword [ebp - 0x100], ebx
mov dword [ebp - 0x108], esi
mov dword [ebp - 0xe0], 1
mov dword [ebp - 0xe8], esi
sub esp, 0x10
lea esi, [ebp - 0x108]
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]
sub esp, 0x10
lea esi, [ebp - 0xe8]
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 2
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xb8]
push eax
call sub.MSVBVM60.DLL___vbaVarIndexLoad
add esp, 0x2c
mov edx, eax
lea ecx, [ebp - 0x68]
call sub.MSVBVM60.DLL___vbaVarMove
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x40]
call sub.MSVBVM60.DLL___vbaVarCopy
jmp 0x4630ae
call sub.MSVBVM60.DLL___vbaExitProc
push 0x463174
jmp 0x463143
lea ecx, [ebp - 0x2c]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0x30]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x44]
call sub.MSVBVM60.DLL___vbaFreeStr
lea ecx, [ebp - 0x58]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0x68]
call sub.MSVBVM60.DLL___vbaFreeVar
lea ecx, [ebp - 0x7c]
call sub.MSVBVM60.DLL___vbaFreeVar
ret