Function at 0x4240dc
Capabilities:
Connect to wmi namespace via wbemlocator
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x6bd6f8]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x7c
mov eax, 0x5b70b6
call fcn.00580b7e
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0042450d
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
lea eax, [ebp - 0x20]
push eax
push 0x5cdacc
push 1
push ebx
push 0x5cdb9c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x20]
mov edi, eax
mov esi, dword [eax]
add esi, 0xc
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push str.ROOTDEFAULT
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
push edi
call dword [esi]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
lea ecx, [ebp - 0x30]
call fcn.00426b60
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x30]
push edx
push ebx
push ebx
push 0x6825a4
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x424435
lea ecx, [ebp - 0x2c]
call fcn.00426b60
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x2c]
push edx
push ebx
push 0x6825c0
push eax
call dword [ecx + 0x4c]
test eax, eax
jl 0x424429
lea ecx, [ebp - 0x14]
call fcn.00426b60
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push ebx
push eax
call dword [ecx + 0x3c]
test eax, eax
jl 0x42441d
lea eax, [ebp - 0x4c]
push eax
call fcn.00413cf5
mov byte [ebp - 4], 8
lea eax, [ebp - 0x4c]
push eax
call fcn.0041c75d
pop ecx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x3c]
sub eax, dword [ebp - 0x40]
sar eax, 2
mov edi, dword [ebp - 0x1c]
cmp edi, eax
jae 0x424410
lea esi, [ebp - 0x4c]
call fcn.004138a1
mov esi, dword [eax]
push 8
pop eax
mov word [ebp - 0x64], ax
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jne 0x424246
cmp esi, ebx
je 0x424246
push 0x8007000e
call fcn.004b0c10
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x64]
push edx
push ebx
push str.Drive
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x4242fa
push 0xb
pop eax
mov word [ebp - 0x74], ax
or eax, 0xffffffff
mov word [ebp - 0x6c], ax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x74]
push edx
push ebx
push str.WaitTillEnabled
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x4242ec
lea ecx, [ebp - 0x24]
call fcn.00426b60
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push ebx
lea edx, [ebp - 0x24]
push edx
push dword [ebp - 0x14]
push ebx
push ebx
push str.Enable
push str.SystemRestore
push eax
call dword [ecx + 0x60]
cmp eax, ebx
jl 0x4242e0
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x88]
push edx
push ebx
push str.ReturnValue
push eax
call dword [ecx + 0x10]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x24]
call fcn.004218ee
mov byte [ebp - 4], 9
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x28]
push eax
call fcn.004084d7
mov byte [ebp - 4], 0xc
mov edi, dword [ebp - 0x1c]
lea esi, [ebp - 0x4c]
call fcn.004138a1
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
jge 0x42432e
push 0x80070057
call fcn.00402d73
movzx eax, word [eax]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x1c]
lea esi, [ebp - 0x4c]
call fcn.004138a1
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
jl 0x424324
movzx eax, word [eax]
movzx ecx, word [ebp - 0x34]
push ecx
movzx eax, ax
push eax
push str.resize_shadowstorage__on_C:__for_C:__maxsize20__
lea eax, [ebp - 0x28]
call fcn.004175e6
add esp, 0xc
lea esi, [ebp - 0x54]
call fcn.00475c10
mov byte [ebp - 4], 0xd
xor eax, eax
mov word [ebp], ax
push 0x206
push ebx
lea eax, [ebp + 2]
push eax
call fcn.005780d0
add esp, 0xc
push 0x400
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [ebp]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x42439a
push 7
pop ecx
mov esi, str._vssadmin.exe
rep movsd dword es:[edi], dword [esi]
push ecx
mov eax, esp
mov dword [ebp - 0x34], esp
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.004084fe
mov byte [ebp - 4], 0xe
push ecx
mov eax, esp
mov dword [ebp - 0x78], esp
lea ecx, [ebp]
push ecx
push eax
call fcn.0040852d
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 0xd
call fcn.0042402d
pop ecx
pop ecx
mov byte [ebp - 4], 0xc
lea esi, [ebp - 0x54]
call fcn.00475c50
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.0040856e
mov byte [ebp - 4], 8
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
inc dword [ebp - 0x1c]
jmp 0x424205
mov byte [ebp - 4], 7
lea eax, [ebp - 0x4c]
push eax
call fcn.00413877
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
call fcn.004218ee
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.004218ee
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.004218ee
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
call fcn.004201c8
mov byte [ebp - 4], bl
lea eax, [ebp - 0x20]
push eax
call fcn.004201c8
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0057340c
add ebp, 0x20c
leave
ret