Function at 0x415180
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x4030a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push esi
push edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x10], 0x4015a8
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0xb4], edi
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 1
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
push 0x409618
mov eax, dword [ebp - 0x20]
push eax
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
call esi
mov edx, eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x409674
call esi
mov dword [ebp - 0x64], eax
mov eax, 8
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x44], 0x80020004
mov dword [ebp - 0x4c], 0xa
mov dword [ebp - 0x84], 0x40967c
mov dword [ebp - 0x8c], eax
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaVarDup]
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcGetObject]
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp - 0x6c]
mov dword [ecx], edx
mov eax, dword [ebp - 0x68]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x64]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x60]
mov dword [ecx + 0xc], eax
push 1
push 0x4096e8
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x7c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaVarLateMemCallLd]
add esp, 0x20
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjVar]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x5c]
push edx
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x3c]
push edx
push 5
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
add esp, 0x18
push edi
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjIs]
test ax, ax
jne 0x415386
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x8c], 0x8002
push edi
push 0x4096fc
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaLateMemCallLd]
add esp, 0x10
push eax
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaVarTstGt]
mov esi, eax
lea ecx, [ebp - 0x3c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
cmp si, di
je 0x41536e
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaForEachCollAd]
mov si, word [ebp + 0xc]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaLateMemCall]
cmp eax, edi
je 0x41536e
push edi
push 0x409708
mov ecx, dword [ebp - 0x28]
push ecx
call ebx
add esp, 0xc
cmp si, di
je 0x415386
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaNextEachCollAd]
jmp 0x415343
push edi
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x4153de
jmp 0x4153bc
call dword [sym.imp.MSVBVM60.DLL___vbaExitProc]
push 0x4153de
jmp 0x4153bc
lea ecx, [ebp - 0xb4]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
call esi
lea ecx, [ebp - 0x20]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x24]
call esi
lea ecx, [ebp - 0x28]
call esi
ret