Function at 0x47c6c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x403646
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401ba0
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaAryConstruct2]
push 8
lea eax, [ebp - 0x30]
xor ebx, ebx
push 0x4155f0
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb8], ebx
call esi
push 0x11
lea ecx, [ebp - 0x70]
push 0x41560c
push ecx
call esi
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x413000
mov ecx, edi
call esi
mov edx, 0x413000
lea ecx, [edi + 4]
call esi
mov edx, 0x413000
lea ecx, [edi + 8]
call esi
mov edx, 0x413000
lea ecx, [edi + 0xc]
call esi
mov edx, 0x413000
lea ecx, [edi + 0x10]
call esi
mov edx, 0x413000
lea ecx, [edi + 0x14]
call esi
mov edx, 0x413000
lea ecx, [edi + 0x18]
call esi
mov edx, 0x413000
lea ecx, [edi + 0x1c]
call esi
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x7c]
mov eax, dword [edi]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.0041118c
mov dword [ebp - 0xb4], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x7c]
push edx
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x50], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov eax, dword [ebp - 0x50]
cmp eax, 1
jge 0x47c801
mov dword [ebp - 0x14], 2
push 0x47cdc4
jmp 0x47cd79
push ebx
push eax
push 1
lea ecx, [ebp - 0x44]
push 0x11
push ecx
push 1
push 0x80
call dword [sym.imp.MSVBVM60.DLL___vbaRedim]
mov edx, dword [ebp - 0x44]
add esp, 0x1c
lea eax, [ebp - 0x78]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x78]
cmp ecx, ebx
je 0x47c859
cmp word [ecx], 1
jne 0x47c859
mov eax, dword [ecx + 0x14]
mov edx, dword [ecx + 0x10]
neg eax
cmp eax, edx
mov dword [ebp - 0xbc], eax
jb 0x47c862
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0xbc]
jmp 0x47c862
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx + 0xc]
mov edx, dword [ebp - 0x50]
add ecx, eax
mov eax, dword [edi]
push ecx
push edx
push ebx
lea ecx, [ebp - 0x7c]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.0041113c
mov dword [ebp - 0xb4], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x7c]
push edx
push edi
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov edi, dword [ebp - 0xb4]
lea ecx, [ebp - 0x7c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp edi, ebx
jne 0x47c8c5
mov dword [ebp - 0x14], 2
push 0x47cdc4
jmp 0x47cd79
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x78]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x47c8f4
cmp word [eax], 1
jne 0x47c8f4
mov edi, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
neg edi
cmp edi, ecx
jb 0x47c8fc
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
jmp 0x47c8fc
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov edi, eax
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x40]
push eax
push ecx
lea edx, [ebp - 0x7c]
push 0x415464
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0xc]
add ecx, edi
push ecx
call fcn.004111d4
mov dword [ebp - 0xb4], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov edi, dword [ebp - 0xb4]
lea ecx, [ebp - 0x7c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp edi, ebx
jne 0x47c95c
mov dword [ebp - 0x14], 2
push 0x47cdc4
jmp 0x47cd79
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x64]
push eax
push ecx
push edx
call fcn.0041124c
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, dword [ebp - 0x64]
movzx cx, byte [eax + 3]
imul cx, cx, 0x100
movzx dx, byte [eax + 2]
jo 0x47cdfc
add cx, dx
jo 0x47cdfc
xor edx, edx
mov dl, byte [eax]
imul edx, edx, 0x10000
movsx ecx, cx
jo 0x47cdfc
add ecx, edx
jo 0x47cdfc
xor edx, edx
mov dl, byte [eax + 1]
lea eax, [ebp - 0x18]
imul edx, edx, 0x1000000
jo 0x47cdfc
add ecx, edx
lea edx, [ebp - 0x90]
jo 0x47cdfc
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0xb0]
push ecx
push edx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xb0], 0x4003
call dword [sym.imp.MSVBVM60.DLL_rtcHexVarFromVar]
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x3c]
call edi
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLenBstr]
cmp eax, 8
jge 0x47ca3f
mov edx, dword [ebp - 0x3c]
push 0x415394
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x3c]
call edi
jmp 0x47ca18
mov ecx, dword [ebp - 0x24]
mov edx, 0x41549c
call esi
mov eax, dword [ebp - 0x24]
mov edx, 0x4154b8
lea ecx, [eax + 4]
call esi
mov ecx, dword [ebp - 0x24]
mov edx, 0x4154dc
add ecx, 8
call esi
mov eax, dword [ebp - 0x24]
mov edx, 0x4154f8
lea ecx, [eax + 0xc]
call esi
mov ecx, dword [ebp - 0x24]
mov edx, 0x415518
add ecx, 0x10
call esi
mov eax, dword [ebp - 0x24]
mov edx, 0x41553c
lea ecx, [eax + 0x14]
call esi
mov ecx, dword [ebp - 0x24]
mov edx, 0x415564
add ecx, 0x18
call esi
mov eax, dword [ebp - 0x24]
mov edx, 0x415580
lea ecx, [eax + 0x1c]
call esi
xor edi, edi
mov dword [ebp - 0x48], edi
mov eax, 7
cmp di, ax
jg 0x47cd37
lea ecx, [ebp - 0x90]
lea edx, [ebp - 0xa0]
push ecx
push 0xff
push edx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x90], 2
call dword [sym.imp.MSVBVM60.DLL_rtcStringVar]
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0xa0]
lea edx, [ebp - 0x90]
push ecx
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
movsx edi, di
add esp, 0xc
cmp edi, 8
jb 0x47cb1f
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov eax, dword [ebp - 0x3c]
push 0x4155b8
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x7c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x412fa8
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x80]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov ecx, dword [ebp - 0x24]
push eax
mov edx, dword [ecx + edi*4]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea eax, [ebp - 0x80]
lea ecx, [ebp - 0x7c]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
mov edx, dword [ebp - 0x44]
add esp, 0xc
lea eax, [ebp - 0x78]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov eax, dword [ebp - 0x78]
cmp eax, ebx
je 0x47cbbd
cmp word [eax], 1
jne 0x47cbbd
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
neg ecx
cmp ecx, edx
mov dword [ebp - 0xbc], ecx
jb 0x47cbb5
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xdc], ecx
jmp 0x47cbc9
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x50]
lea edx, [ebp - 0x40]
push ecx
push edx
lea ecx, [ebp - 0x7c]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
mov edx, dword [ebp - 0x78]
push eax
mov eax, dword [edx + 0xc]
mov edx, dword [ebp - 0xdc]
add eax, edx
push eax
call fcn.004111d4
mov dword [ebp - 0xb4], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea ecx, [ebp - 0x78]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x58]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x7c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp dword [ebp - 0x38], ebx
je case.default.0x47ccc2
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x54]
push edx
lea ecx, [ebp - 0x7c]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
call fcn.00411290
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x54]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrToUnicode]
lea ecx, [ebp - 0x7c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov ecx, dword [ebp - 0x54]
push 1
push ecx
push 0x4155e8
push ebx
call dword [sym.imp.MSVBVM60.DLL___vbaInStr]
sub eax, 1
lea edx, [ebp - 0x90]
jo 0x47cdfc
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x54]
push edx
push 1
push eax
mov dword [ebp - 0x90], 3
call dword [sym.imp.MSVBVM60.DLL_rtcMidCharBstr]
mov edx, eax
lea ecx, [ebp - 0x54]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x90]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
cmp edi, 7
ja case.default.0x47ccc2
jmp dword [edi*4 + 0x47cddc]
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp + 0xc]
jmp 0x47cd1c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x54]
add ecx, 4
jmp 0x47cd1c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x54]
lea ecx, [eax + 8]
jmp 0x47cd1c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x54]
add ecx, 0xc
jmp 0x47cd1c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x54]
lea ecx, [eax + 0x10]
jmp 0x47cd1c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x54]
add ecx, 0x14
jmp 0x47cd1c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x54]
lea ecx, [eax + 0x18]
jmp 0x47cd1c
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x54]
add ecx, 0x1c
call esi
mov eax, 1
add ax, word [ebp - 0x48]
jo 0x47cdfc
mov dword [ebp - 0x48], eax
mov edi, eax
jmp 0x47caa9
mov dword [ebp - 0x14], 1
push 0x47cdc4
jmp 0x47cd79
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
lea edx, [ebp - 0xb4]
xor ebx, ebx
lea ecx, [ebp - 0x30]
push edx
push ebx
mov dword [ebp - 0xb4], ecx
call esi
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x3c]
call edi
lea eax, [ebp - 0x44]
push eax
push ebx
call esi
lea ecx, [ebp - 0x54]
call edi
lea ecx, [ebp - 0x58]
call edi
lea edx, [ebp - 0xb8]
lea ecx, [ebp - 0x70]
push edx
push ebx
mov dword [ebp - 0xb8], ecx
call esi
ret
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop