Function at 0x4cbf20
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x402526
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401518
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
xor ebx, ebx
mov edx, 0x4134d0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x88], ebx
call esi
lea eax, [ebp - 0x24]
push eax
call fcn.004cbcf0
lea ecx, [ebp - 0x24]
mov di, ax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp di, bx
jne 0x4cc6c8
mov edx, 0x40e28c
lea ecx, [ebp - 0x40]
call esi
mov edx, 0x413504
lea ecx, [ebp - 0x3c]
call esi
mov edx, 0x40c900
lea ecx, [ebp - 0x38]
call esi
mov edx, 0x40e28c
lea ecx, [ebp - 0x34]
call esi
mov edx, 0x40ea30
lea ecx, [ebp - 0x30]
call esi
mov edx, 0x40c900
lea ecx, [ebp - 0x2c]
call esi
mov edx, 0x4134e4
lea ecx, [ebp - 0x28]
call esi
mov edx, 0x4134d0
lea ecx, [ebp - 0x24]
call esi
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x3c]
push ecx
lea eax, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x34]
push eax
lea edx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
call fcn.004daef0
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x38]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
push ecx
lea eax, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x30]
push eax
lea edx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x24]
push eax
push ecx
push 8
call edi
add esp, 0x24
mov edx, 0x40e28c
lea ecx, [ebp - 0x40]
call esi
mov edx, 0x413504
lea ecx, [ebp - 0x3c]
call esi
mov edx, 0x40c900
lea ecx, [ebp - 0x38]
call esi
mov edx, 0x40e28c
lea ecx, [ebp - 0x34]
call esi
mov edx, 0x40ea30
lea ecx, [ebp - 0x30]
call esi
mov edx, 0x40c900
lea ecx, [ebp - 0x2c]
call esi
mov edx, 0x413524
lea ecx, [ebp - 0x28]
call esi
mov edx, 0x413510
lea ecx, [ebp - 0x24]
call esi
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x38]
push eax
lea edx, [ebp - 0x34]
push ecx
lea eax, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x24]
push edx
push eax
call fcn.004daef0
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x3c]
push ecx
lea eax, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x34]
push eax
lea edx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
push 8
call edi
add esp, 0x24
mov edx, 0x40e28c
lea ecx, [ebp - 0x40]
call esi
mov edx, 0x413504
lea ecx, [ebp - 0x3c]
call esi
mov edx, 0x40c900
lea ecx, [ebp - 0x38]
call esi
mov edx, 0x40e28c
lea ecx, [ebp - 0x34]
call esi
mov edx, 0x40ea30
lea ecx, [ebp - 0x30]
call esi
mov edx, 0x40c900
lea ecx, [ebp - 0x2c]
call esi
mov edx, 0x413548
lea ecx, [ebp - 0x28]
call esi
mov edx, 0x413534
lea ecx, [ebp - 0x24]
call esi
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x38]
push ecx
lea eax, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x30]
push eax
lea edx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x24]
push eax
push ecx
call fcn.004daef0
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x38]
push eax
lea edx, [ebp - 0x34]
push ecx
lea eax, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x24]
push edx
push eax
push 8
call edi
add esp, 0x24
mov edx, 0x40e28c
lea ecx, [ebp - 0x40]
call esi
mov edx, 0x413504
lea ecx, [ebp - 0x3c]
call esi
mov edx, 0x40c900
lea ecx, [ebp - 0x38]
call esi
mov edx, 0x40e28c
lea ecx, [ebp - 0x34]
call esi
mov edx, 0x40ea30
lea ecx, [ebp - 0x30]
call esi
mov edx, 0x40c900
lea ecx, [ebp - 0x2c]
call esi
mov edx, 0x413570
lea ecx, [ebp - 0x28]
call esi
mov edx, 0x41355c
lea ecx, [ebp - 0x24]
call esi
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x3c]
push ecx
lea eax, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x34]
push eax
lea edx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
call fcn.004daef0
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x38]
push ecx
lea eax, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x30]
push eax
lea edx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x24]
push eax
push ecx
push 8
call edi
add esp, 0x24
mov edx, 0x40e28c
lea ecx, [ebp - 0x40]
call esi
mov edx, 0x413504
lea ecx, [ebp - 0x3c]
call esi
mov edx, 0x40c900
lea ecx, [ebp - 0x38]
call esi
mov edx, 0x40e28c
lea ecx, [ebp - 0x34]
call esi
mov edx, 0x40ea30
lea ecx, [ebp - 0x30]
call esi
mov edx, 0x40c900
lea ecx, [ebp - 0x2c]
call esi
mov edx, 0x4135ac
lea ecx, [ebp - 0x28]
call esi
mov edx, 0x413598
lea ecx, [ebp - 0x24]
call esi
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x38]
push eax
lea edx, [ebp - 0x34]
push ecx
lea eax, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x24]
push edx
push eax
call fcn.004daef0
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x3c]
push ecx
lea eax, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x34]
push eax
lea edx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
push 8
call edi
add esp, 0x24
mov edx, 0x40e28c
lea ecx, [ebp - 0x40]
call esi
mov edx, 0x413504
lea ecx, [ebp - 0x3c]
call esi
mov edx, 0x40c900
lea ecx, [ebp - 0x38]
call esi
mov edx, 0x40e28c
lea ecx, [ebp - 0x34]
call esi
mov edx, 0x40ea30
lea ecx, [ebp - 0x30]
call esi
mov edx, 0x40c900
lea ecx, [ebp - 0x2c]
call esi
mov edx, 0x4135c4
lea ecx, [ebp - 0x28]
call esi
mov edx, 0x4133f4
lea ecx, [ebp - 0x24]
call esi
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x38]
push ecx
lea eax, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x30]
push eax
lea edx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x24]
push eax
push ecx
call fcn.004daef0
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x38]
push eax
lea edx, [ebp - 0x34]
push ecx
lea eax, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x24]
push edx
push eax
push 8
call edi
add esp, 0x24
mov edx, 0x40e28c
lea ecx, [ebp - 0x40]
call esi
mov edx, 0x413504
lea ecx, [ebp - 0x3c]
call esi
mov edx, 0x40c900
lea ecx, [ebp - 0x38]
call esi
mov edx, 0x40e28c
lea ecx, [ebp - 0x34]
call esi
mov edx, 0x40ea30
lea ecx, [ebp - 0x30]
call esi
mov edx, 0x40c900
lea ecx, [ebp - 0x2c]
call esi
mov edx, 0x413608
lea ecx, [ebp - 0x28]
call esi
mov edx, 0x4135f4
lea ecx, [ebp - 0x24]
call esi
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x3c]
push ecx
lea eax, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x34]
push eax
lea edx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
call fcn.004daef0
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0x3c]
push eax
lea edx, [ebp - 0x38]
push ecx
lea eax, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x30]
push eax
lea edx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x24]
push eax
push ecx
push 8
call edi
add esp, 0x24
mov edx, 0x41361c
lea ecx, [ebp - 0x18]
call esi
mov edx, dword [ebp - 0x18]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
push edx
push 0x4137b4
call esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov eax, dword [ebp - 0x18]
push eax
push 0x4139a0
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov ecx, dword [ebp - 0x18]
push ecx
push 0x413b90
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov edx, dword [ebp - 0x18]
push edx
push 0x413d7c
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov eax, dword [ebp - 0x18]
push eax
push 0x413f74
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov ecx, dword [ebp - 0x18]
push ecx
push 0x414168
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov edx, dword [ebp - 0x18]
push edx
push 0x41434c
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov eax, dword [ebp - 0x18]
push eax
push 0x41453c
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov ecx, dword [ebp - 0x18]
push ecx
push 0x41472c
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov edx, dword [ebp - 0x18]
push edx
push 0x41491c
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov eax, dword [ebp - 0x18]
push eax
push 0x414b0c
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x6c], 0x40e084
mov dword [ebp - 0x74], 8
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
mov edx, dword [ebp - 0x18]
push ebx
lea ecx, [ebp - 0x54]
push 0xffffffffffffffff
push ecx
lea eax, [ebp - 0x64]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcSplit]
lea ecx, [ebp - 0x64]
push ecx
push 0x2008
call dword [sym.imp.MSVBVM60.DLL___vbaAryVar]
mov dword [ebp - 0x88], eax
lea edx, [ebp - 0x88]
lea eax, [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryCopy]
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x54]
push ecx
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov eax, dword [ebp - 0x1c]
add esp, 0xc
push eax
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaUbound]
mov ecx, eax
call dword [sym.imp.MSVBVM60.DLL___vbaI2I4]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
xor esi, esi
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x14], esi
cmp si, word [ebp - 0x98]
jg 0x4cc6c8
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x4cc5b1
cmp word [ecx], 1
jne 0x4cc5b1
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
movsx esi, si
sub esi, edx
cmp esi, eax
jb 0x4cc5a8
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x20]
lea eax, [esi*4]
jmp 0x4cc5ba
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x20]
mov ecx, dword [ecx + 0xc]
lea edx, [ebp - 0x74]
add ecx, eax
lea eax, [ebp - 0x54]
push edx
push eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x74], 0x4008
call dword [sym.imp.MSVBVM60.DLL_rtcTrimVar]
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x84]
push edx
push eax
mov dword [ebp - 0x7c], 0x40c928
mov dword [ebp - 0x84], 0x8008
call dword [sym.imp.MSVBVM60.DLL___vbaVarTstNe]
lea ecx, [ebp - 0x54]
mov si, ax
call edi
cmp si, bx
je 0x4cc6af
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x4c], 0x80020004
mov dword [ebp - 0x54], 0xa
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarg]
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x4cc65a
cmp word [ecx], 1
jne 0x4cc65a
movsx esi, word [ebp - 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
sub esi, edx
cmp esi, eax
jb 0x4cc651
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x1c]
lea eax, [esi*4]
jmp 0x4cc663
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0xc]
mov edx, dword [0x50e548]
lea edi, [ebp - 0x44]
mov eax, dword [ecx + eax]
mov esi, dword [edx]
push edi
lea edi, [ebp - 0x54]
push 0xffffffffffffffff
push edi
push eax
push edx
call dword [esi + 0x40]
cmp eax, ebx
fnclex
jge 0x4cc69b
mov ecx, dword [0x50e548]
push 0x40
push 0x40e0c8
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x54]
call edi
mov eax, 1
add ax, word [ebp - 0x14]
jo 0x4cc748
mov dword [ebp - 0x14], eax
mov esi, eax
jmp 0x4cc568
push 0x4cc737
jmp 0x4cc721
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop