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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x405f86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push esi
push edi
mov dword [ebp - 0xc], esp
mov dword [ebp - 8], 0x405d40
xor esi, esi
mov edx, 0x413e90
lea ecx, [ebp - 0x1c]
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 - 0x40], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x88], esi
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov eax, dword [ebp - 0x1c]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
push 0x41f8a0
push eax
mov dword [ebp - 0x48], 0x80020004
mov dword [ebp - 0x50], 0xa
call edi
mov edx, eax
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x41f8bc
call edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x38], eax
lea edx, [ebp - 0x40]
push ecx
lea eax, [ebp - 0x60]
push edx
push eax
mov dword [ebp - 0x40], 8
call dword [sym.imp.MSVBVM60.DLL_rtcGetObject]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaObjVar]
lea ecx, [ebp - 0x60]
push ecx
call edi
lea edx, [ebp - 0x20]
push eax
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x50]
push eax
lea edx, [ebp - 0x40]
push ecx
push edx
push 3
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVarList]
mov edx, esp
mov ecx, 8
mov eax, 0x41f91c
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaLateMemCallLd]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x6c]
push 1
push 0x41391c
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 0x20]
push ecx
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x64]
mov dword [edx + 0xc], eax
lea edx, [ebp - 0x40]
push edx
call ebx
add esp, 0x20
push eax
call edi
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x88]
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaForEachCollAd]
cmp eax, esi
je 0x5d17f1
mov ecx, dword [ebp - 0x28]
push esi
push 0x41f9e8
lea edx, [ebp - 0x40]
push ecx
push edx
call ebx
add esp, 0x10
push eax
call dword [sym.imp.MSVBVM60.DLL_rtcIsNull]
mov di, ax
lea ecx, [ebp - 0x40]
not edi
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
cmp di, si
jne 0x5d17b6
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x88]
push eax
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaNextEachCollAd]
jmp 0x5d1772
mov edx, dword [ebp - 0x28]
push esi
push 0x41f9e8
lea eax, [ebp - 0x40]
push edx
push eax
call ebx
add esp, 0x10
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrVarMove]
mov edx, eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeVar]
lea ecx, [ebp - 0x88]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaExitEachColl]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaObjSetAddref]
lea edx, [ebp - 0x20]
push esi
push edx
call edi
lea eax, [ebp - 0x2c]
push esi
push eax
call edi
lea ecx, [ebp - 0x28]
push esi
push ecx
call edi
push 0x5d186a
jmp 0x5d1843
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaFreeObj]
lea ecx, [ebp - 0x88]
call esi
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea ecx, [ebp - 0x20]
call esi
lea ecx, [ebp - 0x28]
call esi
lea ecx, [ebp - 0x2c]
call esi
ret