Function at 0x50bbc0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x402ab6
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], 0x402178
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
xor ebx, ebx
mov edx, 0x41b918
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.0050b990
lea ecx, [ebp - 0x24]
mov di, ax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp di, bx
jne 0x50c368
mov edx, 0x410a6c
lea ecx, [ebp - 0x40]
call esi
mov edx, 0x41b94c
lea ecx, [ebp - 0x3c]
call esi
mov edx, 0x40eae0
lea ecx, [ebp - 0x38]
call esi
mov edx, 0x410a6c
lea ecx, [ebp - 0x34]
call esi
mov edx, 0x4104e0
lea ecx, [ebp - 0x30]
call esi
mov edx, 0x40eae0
lea ecx, [ebp - 0x2c]
call esi
mov edx, 0x41b92c
lea ecx, [ebp - 0x28]
call esi
mov edx, 0x41b918
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.0050b6b0
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, 0x410a6c
lea ecx, [ebp - 0x40]
call esi
mov edx, 0x41b94c
lea ecx, [ebp - 0x3c]
call esi
mov edx, 0x40eae0
lea ecx, [ebp - 0x38]
call esi
mov edx, 0x410a6c
lea ecx, [ebp - 0x34]
call esi
mov edx, 0x4104e0
lea ecx, [ebp - 0x30]
call esi
mov edx, 0x40eae0
lea ecx, [ebp - 0x2c]
call esi
mov edx, 0x41b96c
lea ecx, [ebp - 0x28]
call esi
mov edx, 0x41b958
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.0050b6b0
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, 0x410a6c
lea ecx, [ebp - 0x40]
call esi
mov edx, 0x41b94c
lea ecx, [ebp - 0x3c]
call esi
mov edx, 0x40eae0
lea ecx, [ebp - 0x38]
call esi
mov edx, 0x410a6c
lea ecx, [ebp - 0x34]
call esi
mov edx, 0x4104e0
lea ecx, [ebp - 0x30]
call esi
mov edx, 0x40eae0
lea ecx, [ebp - 0x2c]
call esi
mov edx, 0x41b990
lea ecx, [ebp - 0x28]
call esi
mov edx, 0x41b97c
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.0050b6b0
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, 0x410a6c
lea ecx, [ebp - 0x40]
call esi
mov edx, 0x41b94c
lea ecx, [ebp - 0x3c]
call esi
mov edx, 0x40eae0
lea ecx, [ebp - 0x38]
call esi
mov edx, 0x410a6c
lea ecx, [ebp - 0x34]
call esi
mov edx, 0x4104e0
lea ecx, [ebp - 0x30]
call esi
mov edx, 0x40eae0
lea ecx, [ebp - 0x2c]
call esi
mov edx, 0x41b9b8
lea ecx, [ebp - 0x28]
call esi
mov edx, 0x41b9a4
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.0050b6b0
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, 0x410a6c
lea ecx, [ebp - 0x40]
call esi
mov edx, 0x41b94c
lea ecx, [ebp - 0x3c]
call esi
mov edx, 0x40eae0
lea ecx, [ebp - 0x38]
call esi
mov edx, 0x410a6c
lea ecx, [ebp - 0x34]
call esi
mov edx, 0x4104e0
lea ecx, [ebp - 0x30]
call esi
mov edx, 0x40eae0
lea ecx, [ebp - 0x2c]
call esi
mov edx, 0x41b9e4
lea ecx, [ebp - 0x28]
call esi
mov edx, 0x41b0d0
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.0050b6b0
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, 0x410a6c
lea ecx, [ebp - 0x40]
call esi
mov edx, 0x41b94c
lea ecx, [ebp - 0x3c]
call esi
mov edx, 0x40eae0
lea ecx, [ebp - 0x38]
call esi
mov edx, 0x410a6c
lea ecx, [ebp - 0x34]
call esi
mov edx, 0x4104e0
lea ecx, [ebp - 0x30]
call esi
mov edx, 0x40eae0
lea ecx, [ebp - 0x2c]
call esi
mov edx, 0x41ba10
lea ecx, [ebp - 0x28]
call esi
mov edx, 0x41b9fc
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.0050b6b0
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, 0x410a6c
lea ecx, [ebp - 0x40]
call esi
mov edx, 0x41b94c
lea ecx, [ebp - 0x3c]
call esi
mov edx, 0x40eae0
lea ecx, [ebp - 0x38]
call esi
mov edx, 0x410a6c
lea ecx, [ebp - 0x34]
call esi
mov edx, 0x4104e0
lea ecx, [ebp - 0x30]
call esi
mov edx, 0x40eae0
lea ecx, [ebp - 0x2c]
call esi
mov edx, 0x41ba54
lea ecx, [ebp - 0x28]
call esi
mov edx, 0x41ba40
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.0050b6b0
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, 0x41bbc4
lea ecx, [ebp - 0x18]
call esi
mov edx, dword [ebp - 0x18]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
push edx
push 0x41bdb8
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 0x41bfac
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov ecx, dword [ebp - 0x18]
push ecx
push 0x41c19c
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov edx, dword [ebp - 0x18]
push edx
push 0x41c390
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov eax, dword [ebp - 0x18]
push eax
push 0x41c578
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov ecx, dword [ebp - 0x18]
push ecx
push 0x41c760
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov edx, dword [ebp - 0x18]
push edx
push 0x41c958
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov eax, dword [ebp - 0x18]
push eax
push 0x41cb40
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov ecx, dword [ebp - 0x18]
push ecx
push 0x41cd28
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov edx, dword [ebp - 0x18]
push edx
push 0x41cf0c
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
mov eax, dword [ebp - 0x18]
push eax
push 0x41d0f0
call esi
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x6c], 0x4174ec
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 0x50c368
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 0x50c251
cmp word [ecx], 1
jne 0x50c251
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
movsx esi, si
sub esi, edx
cmp esi, eax
jb 0x50c248
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x20]
lea eax, [esi*4]
jmp 0x50c25a
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], 0x40eab0
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 0x50c34f
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 0x50c2fa
cmp word [ecx], 1
jne 0x50c2fa
movsx esi, word [ebp - 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x10]
sub esi, edx
cmp esi, eax
jb 0x50c2f1
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x1c]
lea eax, [esi*4]
jmp 0x50c303
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x1c]
mov ecx, dword [ecx + 0xc]
mov edx, dword [0x530558]
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 0x50c33b
mov ecx, dword [0x530558]
push 0x40
push 0x411dc0
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 0x50c3e8
mov dword [ebp - 0x14], eax
mov esi, eax
jmp 0x50c208
push 0x50c3d7
jmp 0x50c3c1
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