Function at 0x477d50
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, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x4019b8
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 - 0x3c], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], esi
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
push eax
lea eax, [ebp - 0x28]
push eax
call ebx
mov ecx, dword [ebp + 8]
push 0x4103a0
sub esp, 0x10
mov eax, dword [ecx]
mov edx, esp
mov ecx, 8
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x5c], ecx
mov dword [edx], ecx
mov ecx, dword [ebp - 0x58]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [edx + 0xc], eax
call fcn.00477be0
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x20]
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x24]
call edi
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x24]
push ecx
push edx
call fcn.0047d540
push eax
lea eax, [ebp - 0x1c]
push eax
call ebx
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x20]
push ecx
push edx
push 2
call dword [fcn.004012f0]
add esp, 0xc
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x60]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
cmp eax, esi
fnclex
jge 0x477e52
mov ecx, dword [ebp - 0x1c]
push 0x28
push 0x40e2a8
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
cmp dword [ebp - 0x60], esi
jne 0x477e6a
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov edx, dword [edx]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
jmp 0x477f31
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x28]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x88]
cmp eax, esi
fnclex
jge 0x477e95
mov ecx, dword [ebp - 0x1c]
push 0x88
push 0x40e2a8
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edi, dword [ebp - 0x28]
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x54], 0x410220
mov dword [ebp - 0x5c], 8
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
mov edx, dword [edi]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
push eax
push ecx
push edi
call dword [edx + 0x20]
cmp eax, esi
fnclex
jge 0x477ed5
push 0x20
push 0x40e2e4
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x4c]
push ecx
push eax
mov edx, dword [eax]
mov edi, eax
call dword [edx + 0x68]
cmp eax, esi
fnclex
jge 0x477ef9
push 0x68
push 0x40f554
push edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x28]
push eax
push ecx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x3c]
push edx
push eax
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x18
push 0x40e2a8
push esi
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
lea ecx, [ebp - 0x1c]
push eax
push ecx
call ebx
push 0x477f98
jmp 0x477f8e
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
ret