Function at 0x4148e0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x401686
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x4015d0
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xb4], eax
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 8
push 0x407278
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryConstruct2]
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.MSVBVM60.DLL_rtcTrimBstr]
mov edx, eax
lea ecx, [ebp - 0x58]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcLowerCaseBstr]
mov edx, eax
lea ecx, [ebp - 0x3c]
call esi
lea ecx, [ebp - 0x58]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
call ebx
push 0x407294
mov edx, dword [ebp - 0x54]
push edx
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
call edi
mov edx, eax
lea ecx, [ebp - 0x58]
call esi
push eax
call fcn.0040ed50
lea ecx, [ebp - 0x58]
call ebx
push 0x4072f0
mov eax, dword [ebp - 0x3c]
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x58]
call esi
push eax
push 0x4073fc
call edi
mov edx, eax
lea ecx, [ebp - 0x50]
call esi
lea ecx, [ebp - 0x58]
call ebx
mov edx, 0x403848
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea eax, [ebp - 0x50]
mov ecx, 0x4008
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [ebp - 0x9c]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x94]
mov dword [edx + 0xc], eax
sub esp, 0x10
mov ecx, esp
mov eax, 0x4009
mov dword [ecx], eax
mov edx, dword [ebp - 0xac]
mov dword [ecx + 4], edx
mov eax, 0x419094
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xa4]
mov dword [ecx + 0xc], eax
push 2
push 0x406e58
mov ecx, dword [0x419080]
push ecx
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLateMemCallLd]
add esp, 0x30
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjVar]
push eax
push 0x419078
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
push 0
push 0x406e68
mov eax, dword [0x419078]
push eax
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLateMemCallLd]
add esp, 0x10
push eax
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarNot]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaBoolVarNull]
mov word [ebp - 0xb8], ax
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
cmp word [ebp - 0xb8], 0
je 0x414b75
push 0
push 0x4068bc
mov eax, dword [0x419078]
push eax
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLateMemCallLd]
add esp, 0x10
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjVar]
push eax
push 0x41907c
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov eax, 0x40720c
mov ecx, 8
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [ebp - 0x9c]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x94]
mov dword [edx + 0xc], eax
push 1
push 0x406a84
mov ecx, dword [0x41907c]
push ecx
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLateMemCallLd]
add esp, 0x20
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x4c]
call esi
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
push 0x40740c
mov eax, dword [ebp - 0x4c]
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x58]
call esi
push eax
call fcn.0040ed50
lea ecx, [ebp - 0x58]
call ebx
push 0
push 0x4066f0
mov ecx, dword [0x419078]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLateMemCall]
add esp, 0xc
push 0
push 0x41907c
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcTrimBstr]
mov edx, eax
lea ecx, [ebp - 0x58]
call esi
push eax
push 0x403848
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
neg eax
sbb eax, eax
inc eax
neg eax
mov word [ebp - 0xb8], ax
lea ecx, [ebp - 0x58]
call ebx
cmp word [ebp - 0xb8], 0
je 0x414bf5
push 0x407450
mov eax, dword [ebp - 0x54]
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x58]
call esi
push eax
call fcn.0040ed50
lea ecx, [ebp - 0x58]
call ebx
jmp 0x414e92
or ebx, 0xffffffff
mov edx, 0x406ff4
mov ecx, dword [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x40701c
mov ecx, dword [ebp - 0x28]
add ecx, 4
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
lea edx, [ebp - 0x34]
push edx
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xc8], 1
xor eax, eax
mov dword [ebp - 0x44], eax
cmp ax, word [ebp - 0xcc]
jg 0x414d9b
movsx ebx, ax
cmp ebx, 2
jb 0x414c5b
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
push 0x4074b8
push 0x4074fc
call edi
mov edx, eax
lea ecx, [ebp - 0x58]
call esi
push eax
push 0x40703c
call edi
mov edx, eax
lea ecx, [ebp - 0x5c]
call esi
push eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + ebx*4]
push ecx
call edi
mov edx, eax
lea ecx, [ebp - 0x60]
call esi
push eax
push 0x407050
call edi
mov edx, eax
lea ecx, [ebp - 0x64]
call esi
push eax
mov edx, dword [ebp - 0x4c]
push edx
call edi
mov edx, eax
lea ecx, [ebp - 0x68]
call esi
push eax
call fcn.0040ed50
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 5
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x18
cmp ebx, 2
jb 0x414cdb
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
push 0x40703c
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + ebx*4]
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x58]
call esi
push eax
push 0x407050
call edi
mov edx, eax
lea ecx, [ebp - 0x5c]
call esi
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
call edi
mov edx, eax
lea ecx, [ebp - 0x60]
call esi
push eax
push 0x80000002
call fcn.004106f0
mov bx, ax
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x58]
push ecx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0x10
test bx, bx
je 0x414d5d
push 0x40750c
mov edx, dword [ebp - 0x54]
push edx
call edi
mov edx, eax
lea ecx, [ebp - 0x58]
call esi
push eax
call fcn.0040ed50
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
or ebx, 0xffffffff
jmp 0x414d80
push 0x407568
mov eax, dword [ebp - 0x54]
push eax
call edi
mov edx, eax
lea ecx, [ebp - 0x58]
call esi
push eax
call fcn.0040ed50
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
xor ebx, ebx
mov cx, word [ebp - 0xc8]
add cx, word [ebp - 0x44]
jo 0x414f33
mov dword [ebp - 0x44], ecx
mov eax, ecx
jmp 0x414c40
mov dword [ebp - 0x40], ebx
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x414f1c
jmp 0x414ee9
mov dword [ebp - 0x40], 0
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x414f1c
jmp 0x414ee9
lea edx, [ebp - 0x34]
mov dword [ebp - 0xb4], edx
lea eax, [ebp - 0xb4]
push eax
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
lea ecx, [ebp - 0x3c]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
call esi
lea ecx, [ebp - 0x4c]
call esi
lea ecx, [ebp - 0x50]
call esi
lea ecx, [ebp - 0x54]
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop