Function at 0x47ce10
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x403646
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x401bb0
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xb0], ebx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 0x84], 0x415628
mov esi, 8
mov dword [ebp - 0x8c], esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x7c], 0x4008
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcTrimVar]
mov dword [ebp - 0x94], 0x412318
mov dword [ebp - 0x9c], esi
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x4c]
push edx
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
call esi
push eax
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x5c]
push ecx
call esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
mov ecx, 0x4ea094
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x10
mov edx, dword [0x4ea094]
push edx
call fcn.004713e0
cmp dword [0x4ea074], ebx
jne 0x47cf3d
push 0x4ea074
push 0x410c40
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaNew2]
call edi
jmp 0x47cf43
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaNew2]
mov esi, dword [0x4ea074]
mov eax, dword [esi]
lea ecx, [ebp - 0xb0]
push ecx
push esi
call dword [eax + 0x50]
fnclex
cmp eax, ebx
jge 0x47cf6f
push 0x50
push 0x410c6c
push esi
push eax
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
call ebx
jmp 0x47cf75
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
cmp word [ebp - 0xb0], 0
mov eax, dword [0x4ea074]
je 0x47d065
test eax, eax
jne 0x47cf98
push 0x4ea074
push 0x410c40
call edi
mov esi, dword [0x4ea074]
mov edx, dword [esi]
push esi
call dword [edx + 0x80]
fnclex
test eax, eax
jge 0x47cfbb
push 0x80
push 0x410c6c
push esi
push eax
call ebx
push 0x410bf8
push 0
call dword [sym.imp.MSVBVM60.DLL___vbaCastObj]
push eax
push 0x4ea074
call dword [sym.imp.MSVBVM60.DLL___vbaObjSet]
mov ecx, 0x80020004
mov dword [ebp - 0x64], ecx
mov eax, 0xa
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x84], 0x4129b0
mov edi, 8
mov dword [ebp - 0x8c], edi
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x4c]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
call esi
mov dword [ebp - 0x74], 0x415680
mov dword [ebp - 0x7c], edi
lea edx, [ebp - 0x7c]
lea ecx, [ebp - 0x3c]
call esi
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x4c]
push edx
push 0x10
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcMsgBox]
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push 4
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x14
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x47d262
jmp 0x47d258
test eax, eax
jne 0x47d075
push 0x4ea074
push 0x410c40
call edi
mov esi, dword [0x4ea074]
mov edx, dword [esi]
lea eax, [ebp - 0x28]
push eax
push esi
call dword [edx + 0x54]
fnclex
test eax, eax
jge 0x47d096
push 0x54
push 0x410c6c
push esi
push eax
call ebx
mov eax, dword [ebp - 0x28]
mov esi, eax
xor ecx, ecx
mov dword [ebp - 0x74], ecx
mov edx, 2
mov dword [ebp - 0x7c], edx
mov edi, dword [eax]
lea ebx, [ebp - 0x2c]
push ebx
sub esp, 0x10
mov ebx, esp
mov dword [ebx], edx
mov edx, dword [ebp - 0x78]
mov dword [ebx + 4], edx
mov dword [ebx + 8], ecx
mov ecx, dword [ebp - 0x70]
mov dword [ebx + 0xc], ecx
push eax
call dword [edi + 0x28]
fnclex
test eax, eax
jge 0x47d0dd
push 0x28
push 0x4113e0
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov eax, dword [ebp - 0x2c]
mov esi, eax
mov edx, dword [eax]
lea ecx, [ebp - 0x3c]
push ecx
push eax
call dword [edx + 0x34]
fnclex
test eax, eax
jge 0x47d101
push 0x34
push 0x411648
push esi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov dword [ebp - 0x84], 0x411618
mov dword [ebp - 0x8c], 8
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaVarCat]
push eax
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.MSVBVM60.DLL_rtcTrimVar]
lea eax, [ebp - 0x5c]
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 - 0x2c]
push ecx
lea edx, [ebp - 0x28]
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeObjList]
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x3c]
push edx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x1c
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x47d262
jmp 0x47d258
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret