Function at 0x4b7290
Capabilities:
Connect to wmi namespace via wbemlocator
Get common file path
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp byte [0x568461], bl
je 0x4b737a
lea eax, [ebp - 0x2a8]
push eax
push 0x5020f8
mov esi, 1
push esi
push ebx
push 0x5021c8
mov dword [ebp - 0x2a8], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4b7374
mov eax, dword [ebp - 0x2a8]
lea edx, [ebp - 0x2a4]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x2a4], ebx
mov ecx, dword [eax]
push str.ROOTCIMV2
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
js 0x4b7366
mov eax, dword [ebp - 0x2a4]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0x2a4]
js 0x4b735e
lea edx, [ebp - 0x2b4]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_Processor
mov dword [ebp - 0x2b4], ebx
mov ecx, dword [eax]
push 0x52550c
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jns 0x4b738d
mov eax, dword [ebp - 0x2a4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x2a8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e4746
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 0x2ac], ebx
cmp eax, ebx
je 0x4b7417
mov ecx, dword [eax]
lea edx, [ebp - 0x2ac]
push edx
lea edx, [ebp - 0x2b8]
push edx
push esi
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x2ac], ebx
je 0x4b7411
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x2c8]
push edx
push ebx
push str.ProcessorID
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4b7411
cmp word [ebp - 0x2c8], si
je 0x4b7411
mov eax, dword [ebp - 0x2c0]
mov edx, 0x568a30
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4b73f5
lea ecx, [ebp - 0x2c8]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x2b4]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x2a4]
lea edx, [ebp - 0x2b0]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_ComputerSystemProduct
mov dword [ebp - 0x2b0], ebx
mov ecx, dword [eax]
push 0x52550c
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
js 0x4b7358
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x2ac], ebx
cmp eax, ebx
je 0x4b74ff
mov ecx, dword [eax]
lea edx, [ebp - 0x2ac]
push edx
lea edx, [ebp - 0x2b8]
push edx
push esi
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x2ac], ebx
je 0x4b74f9
mov eax, dword [ebp - 0x2b8]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [ebp - 0x2c8]
push edx
push ebx
push str.UUID
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jne 0x4b74f9
cmp word [ebp - 0x2c8], si
je 0x4b74f9
mov eax, dword [ebp - 0x2c0]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b74b6
mov edi, 0x568a30
sub eax, edx
add edi, 0xfffffffe
jmp 0x4b74d0
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4b74d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x2c8]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x2b0]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push 0x206
lea edx, [ebp - 0x29e]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x2a0], cx
call fcn.004e8ba0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, dword [str..C:]
mov edx, dword [0x525f80]
mov eax, dword [0x525f84]
mov dword [ebp - 0x14], ecx
mov cx, word [0x525f88]
push 0x7e
mov dword [ebp - 0xc], eax
mov word [ebp - 8], cx
mov dword [ebp - 0x10], edx
mov dx, word [ebp - 0x2a0]
lea ecx, [ebp - 0x96]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0xc], dx
mov word [ebp - 0x98], ax
call fcn.004e8ba0
lea edx, [ebp - 0x14]
add esp, 0xc
push edx
lea esi, [ebp - 0x98]
call fcn.004ada00
mov eax, esi
add esp, 4
xor ecx, ecx
lea esi, [eax + 2]
jmp 0x4b75a0
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4b75a0
sub eax, esi
sar eax, 1
je 0x4b7601
mov edx, 0x20
cmp word [ebp + ecx*2 - 0x98], dx
jne 0x4b75c7
inc ecx
cmp ecx, eax
jb 0x4b75b6
jmp 0x4b7601
lea eax, [ebp + ecx*2 - 0x98]
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4b75d0
mov edi, 0x568a30
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4b75e5
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x2a4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x2a8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret