Function at 0x477fb0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x406bc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x4019c8
xor esi, esi
push 0x40e298
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 - 0x30], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x6c], esi
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 0x4105c0
mov dword [ebp - 0x68], 8
mov edx, dword [ecx]
mov ecx, dword [eax]
push ecx
mov dword [ebp - 0x60], edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrI4]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x20]
call edi
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
push eax
call ebx
mov edx, eax
lea ecx, [ebp - 0x24]
call edi
push eax
push 0x410614
call ebx
mov edx, eax
lea ecx, [ebp - 0x28]
call edi
push eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
mov eax, dword [ebp - 0x60]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call fcn.00477be0
mov edx, eax
lea ecx, [ebp - 0x2c]
call edi
push eax
call ebx
mov edx, eax
lea ecx, [ebp - 0x30]
call edi
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x30]
push edx
push eax
call fcn.0047d540
lea ecx, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x24]
push ecx
lea eax, [ebp - 0x20]
push edx
push eax
push 5
call dword [fcn.004012f0]
add esp, 0x18
lea ecx, [ebp - 0x34]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x6c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
cmp eax, esi
fnclex
jge 0x4780fd
mov ecx, dword [ebp - 0x1c]
push 0x28
push 0x40e2a8
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
cmp dword [ebp - 0x6c], esi
jne 0x47811a
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
mov edx, dword [edx]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 0x47823d
jmp 0x478233
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x34]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x88]
cmp eax, esi
fnclex
jge 0x478145
mov ecx, dword [ebp - 0x1c]
push 0x88
push 0x40e2a8
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov ebx, dword [ebp - 0x34]
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x60], 0x410220
mov dword [ebp - 0x68], 8
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
mov edx, dword [ebx]
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x48]
push eax
push ecx
push ebx
call dword [edx + 0x20]
cmp eax, esi
fnclex
jge 0x478185
push 0x20
push 0x40e2e4
push ebx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x58]
push ecx
push eax
mov edx, dword [eax]
mov ebx, eax
call dword [edx + 0x68]
cmp eax, esi
fnclex
jge 0x4781a9
push 0x68
push 0x40f554
push ebx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x18]
call edi
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x34]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
lea edx, [ebp - 0x58]
lea eax, [ebp - 0x48]
push edx
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x18
push 0x47823d
jmp 0x478233
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
ret