Function at 0x4cd940
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x404986
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x401800
xor esi, esi
push 0x419240
push esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], 0xffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push eax
lea eax, [ebp - 0x28]
push eax
call edi
mov ecx, dword [ebp + 8]
push 0x41ab68
mov edx, dword [ecx]
push edx
call fcn.004c78b0
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x20]
call ebx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x24]
call ebx
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
call fcn.004cc1f0
push eax
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
push ecx
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
add esp, 0xc
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x50]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x68]
cmp eax, esi
fnclex
jge 0x4cda27
mov ecx, dword [ebp - 0x1c]
push 0x68
push 0x419250
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
cmp dword [ebp - 0x50], esi
jle 0x4cdaf9
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x54]
cmp eax, esi
fnclex
jge 0x4cda55
mov edx, dword [ebp - 0x1c]
push 0x54
push 0x419250
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea ebx, [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
push ebx
mov edx, 8
sub esp, 0x10
mov edi, dword [eax]
mov ebx, esp
mov ecx, 0x41a85c
push eax
mov dword [ebp - 0x58], eax
mov dword [ebx], edx
mov edx, dword [ebp - 0x48]
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x40]
mov dword [ebx + 0xc], ecx
call dword [edi + 0x28]
cmp eax, esi
fnclex
jge 0x4cda9d
mov edx, dword [ebp - 0x58]
push 0x28
push 0x419274
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x3c]
push edx
push eax
mov ecx, dword [eax]
mov edi, eax
call dword [ecx + 0x34]
cmp eax, esi
fnclex
jge 0x4cdac1
push 0x34
push 0x419284
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x28]
push ecx
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
add esp, 0xc
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
push 0x4cdb54
jmp 0x4cdb4a
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov edx, dword [eax]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 0x4cdb54
jmp 0x4cdb4a
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
ret