Function at 0x4643a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x401f26
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], 0x401e38
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb8], eax
mov edx, 0x407918
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
call fcn.00463d60
mov si, ax
neg si
sbb esi, esi
neg esi
call fcn.004642f0
neg ax
sbb eax, eax
neg eax
or esi, eax
je 0x4649c9
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 0x9c], 0x40fe24
mov edx, 8
mov dword [ebp - 0xa4], edx
mov eax, 1
mov dword [ebp - 0x7c], eax
mov ecx, 2
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0xac], 0x40fe98
mov dword [ebp - 0xb4], edx
lea edx, [ebp - 0xa4]
push edx
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [ebp - 0x80]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x78]
mov dword [edx + 0xc], eax
push 1
push 0x40cb18
mov ecx, dword [0x46902c]
push ecx
lea edx, [ebp - 0x44]
push edx
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaLateMemCallLd]
call edi
add esp, 0x20
push eax
lea eax, [ebp - 0x54]
push eax
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
call esi
push eax
lea ecx, [ebp - 0xb4]
push ecx
lea edx, [ebp - 0x64]
push edx
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x54]
push ecx
lea edx, [ebp - 0x44]
push edx
push 3
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
call ebx
add esp, 0x10
mov eax, dword [ebp - 0x20]
push eax
push 0x40ff08
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov dword [ebp - 0x3c], eax
mov eax, 8
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x7c], 0x40ba10
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0x40c200
mov edx, dword [0x46902c]
push edx
lea eax, [ebp - 0x54]
push eax
call edi
add esp, 0x10
push eax
lea ecx, [ebp - 0x64]
push ecx
call esi
push eax
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x74]
push eax
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x44]
push ecx
push 4
call ebx
add esp, 0x14
lea eax, [ebp - 0x20]
mov dword [ebp - 0x7c], eax
mov ecx, 0x4008
mov dword [ebp - 0x84], ecx
mov edx, 1
push 0x40a00c
sub esp, 0x10
mov esi, esp
mov dword [esi], ecx
mov ecx, dword [ebp - 0x80]
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x78]
mov dword [esi + 0xc], eax
sub esp, 0x10
mov ecx, esp
mov eax, 2
mov dword [ecx], eax
mov eax, dword [ebp - 0x90]
mov dword [ecx + 4], eax
mov dword [ecx + 8], edx
mov edx, dword [ebp - 0x88]
mov dword [ecx + 0xc], edx
push 2
push 0x409fe8
mov eax, dword [0x46902c]
push eax
lea ecx, [ebp - 0x44]
push ecx
call edi
add esp, 0x30
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaCastObjVar]
push eax
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
lea ecx, [ebp - 0x44]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
lea edx, [ebp - 0xb8]
push edx
push eax
call dword [ecx + 0x48]
fnclex
test eax, eax
jge 0x46462c
push 0x48
push 0x40a00c
mov ecx, dword [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0xb8]
test eax, eax
je 0x46480b
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [edx + 0x24]
fnclex
test eax, eax
jge 0x46465f
push 0x24
push 0x40a00c
mov edx, dword [ebp - 0x24]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x7c], 0x40ff64
mov ecx, 8
mov dword [ebp - 0x84], ecx
mov edx, dword [eax]
lea esi, [ebp - 0x34]
push esi
sub esp, 0x10
mov esi, esp
mov dword [esi], ecx
mov ecx, dword [ebp - 0x80]
mov dword [esi + 4], ecx
mov ecx, dword [ebp - 0x7c]
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x78]
mov dword [esi + 0xc], ecx
push eax
call dword [edx + 0x34]
fnclex
test eax, eax
jge 0x4646b8
push 0x34
push 0x40a030
mov edx, dword [ebp - 0xc0]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], eax
mov ecx, 9
mov dword [ebp - 0x44], ecx
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [ebp - 0x40]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [edx + 0xc], eax
push 1
push 0x40c344
mov ecx, dword [0x46902c]
push ecx
lea edx, [ebp - 0x54]
push edx
call edi
add esp, 0x20
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x30]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
call esi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x44]
push ecx
push 2
call ebx
add esp, 0xc
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [edx + 0x24]
fnclex
test eax, eax
jge 0x46474b
push 0x24
push 0x40a00c
mov edx, dword [ebp - 0x24]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0x7c], 0x40ff78
mov eax, 8
mov dword [ebp - 0x84], eax
mov ecx, dword [ecx]
lea edx, [ebp - 0x34]
push edx
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [ebp - 0x80]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x7c]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x78]
mov dword [edx + 0xc], eax
mov edx, dword [ebp - 0x30]
push edx
call dword [ecx + 0x34]
fnclex
test eax, eax
jge 0x4647a7
push 0x34
push 0x40a030
mov ecx, dword [ebp - 0xc0]
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x3c], eax
mov ecx, 9
mov dword [ebp - 0x44], ecx
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [ebp - 0x40]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [edx + 0xc], eax
push 1
push 0x40b7c0
mov ecx, dword [0x46902c]
push ecx
lea edx, [ebp - 0x54]
push edx
call edi
add esp, 0x20
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaI4Var]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea ecx, [ebp - 0x30]
call esi
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x44]
push eax
push 2
call ebx
add esp, 0xc
jmp 0x464811
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x7c], eax
mov ecx, 0x4009
mov dword [ebp - 0x84], ecx
sub esp, 0x10
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [ebp - 0x80]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x78]
mov dword [edx + 0xc], eax
push 1
push 0x409da4
mov ecx, dword [0x46902c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaLateMemCall]
add esp, 0x1c
push 0x40a00c
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
lea ecx, [ebp - 0x30]
call esi
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x464a2d
jmp 0x464a1a
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x464a2d
jmp 0x464a1a
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
ret