Function at 0x4014a0
Capabilities:
Connect to wmi namespace via wbemlocator
Get common file path
Get disk information
Get mac address on windows
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x660
mov eax, dword [0x416050]
xor eax, esp
mov dword [esp + 0x65c], eax
push ebx
push edi
push 0x200
push 0
push esi
call fcn.00404310
add esp, 0xc
push 0x200
lea eax, [esi + 0x200]
push 0
push eax
call fcn.00404310
add esp, 0xc
push 0x200
lea eax, [esi + 0x400]
push 0
push eax
call fcn.00404310
add esp, 0xc
push 0x200
lea ebx, [esi + 0x600]
push 0
push ebx
call fcn.00404310
add esp, 0xc
push 0x200
lea edi, [esi + 0x800]
push 0
push edi
call fcn.00404310
add esp, 0xc
push 0x200
lea eax, [esi + 0xa00]
push 0
push eax
call fcn.00404310
add esp, 0xc
push 0x200
lea eax, [esi + 0xc00]
push 0
push eax
call fcn.00404310
add esp, 0xc
push 0x200
lea eax, [esi + 0xe00]
push 0
push eax
call fcn.00404310
add esp, 0xc
push 0x200
lea eax, [esi + 0x1000]
push 0
push eax
call fcn.00404310
add esp, 0xc
push 0x200
lea eax, [esi + 0x1200]
push 0
push eax
call fcn.00404310
add esp, 0xc
push 0x200
lea eax, [esi + 0x1400]
push 0
push eax
call fcn.00404310
add esp, 0xc
push 0x200
lea eax, [esi + 0x1600]
push 0
push eax
call fcn.00404310
add esp, 0xc
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jl 0x401b65
lea ecx, [esp + 0x38]
push ecx
push 0x4122d4
push 1
push 0
push 0x4123a4
mov dword [esp + 0x4c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x401b65
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
mov dword [esp + 0x2c], 0
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push str.ROOTCIMV2
push eax
call edx
test eax, eax
jl 0x401b55
mov eax, dword [esp + 0x10]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jl 0x401b39
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
push 0
push 0x30
push str.SELECT__FROM_Win32_ComputerSystemProduct
mov dword [esp + 0x38], 0
mov ecx, dword [eax]
push 0x413fc4
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x40172e
lea edx, [esp + 0x48]
push edx
xor eax, eax
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x401722
cmp dword [esp + 0x48], 0
jbe 0x401722
xor ecx, ecx
push ecx
push ecx
xor eax, eax
mov word [esp + 0x20], cx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push str.UUID
push eax
call edx
test eax, eax
jl 0x401716
mov eax, dword [esp + 0x20]
push 0x100
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
xor ebx, ebx
push ebx
push 0x30
push str.SELECT__FROM_Win32_ComputerSystemProduct
push 0x413fc4
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x4017ed
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0xc]
push edx
push 1
mov dword [esp + 0x54], ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x4017e1
cmp dword [esp + 0x48], ebx
jbe 0x4017e1
push ebx
xor ecx, ecx
xor eax, eax
push ebx
mov word [esp + 0x20], cx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push str.Name
push eax
call edx
test eax, eax
jl 0x4017d5
mov eax, dword [esp + 0x20]
push 0x100
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_OperatingSystem
push 0x413fc4
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x4018b0
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0xc]
push edx
push 1
mov dword [esp + 0x54], ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x4018a4
cmp dword [esp + 0x48], ebx
jbe 0x4018a4
push ebx
xor ecx, ecx
xor eax, eax
push ebx
mov word [esp + 0x20], cx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push str.SerialNumber
push eax
call edx
test eax, eax
jl 0x401898
mov eax, dword [esp + 0x20]
push 0x100
push eax
lea eax, [esi + 0xa00]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_OperatingSystem
push 0x413fc4
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x401999
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0xc]
push edx
push 1
mov dword [esp + 0x54], ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x40198d
cmp dword [esp + 0x48], ebx
jbe 0x40198d
push ebx
xor ecx, ecx
xor eax, eax
push ebx
mov word [esp + 0x20], cx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push str.InstallDate
push eax
call edx
test eax, eax
jl 0x401981
mov eax, dword [esp + 0x20]
push 0x100
push eax
lea edi, [esi + 0xc00]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp word [edi], bx
je 0x401976
mov ecx, edi
mov eax, edi
cmp word [ecx], 0x2e
jne 0x40196c
xor edx, edx
mov word [ecx], dx
add eax, 2
mov ecx, eax
cmp word [eax], bx
jne 0x401961
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_BIOS
push 0x413fc4
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x401a5c
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0xc]
push edx
push 1
mov dword [esp + 0x54], ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x401a50
cmp dword [esp + 0x48], ebx
jbe 0x401a50
push ebx
xor ecx, ecx
xor eax, eax
push ebx
mov word [esp + 0x20], cx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push str.SerialNumber
push eax
call edx
test eax, eax
jl 0x401a44
mov eax, dword [esp + 0x20]
push 0x100
push eax
lea eax, [esi + 0xe00]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push ebx
push 0x30
push str.SELECT__FROM_Win32_BIOS
push 0x413fc4
push eax
mov eax, dword [ecx + 0x50]
call eax
test eax, eax
jl 0x401b3b
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0xc]
push edx
push 1
mov dword [esp + 0x54], ebx
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x401b13
cmp dword [esp + 0x48], ebx
jbe 0x401b13
push ebx
xor ecx, ecx
xor eax, eax
push ebx
mov word [esp + 0x20], cx
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x26], eax
mov dword [esp + 0x2a], eax
mov dword [esp + 0x2e], eax
mov word [esp + 0x32], ax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push str.SMBIOSBIOSVersion
push eax
call edx
test eax, eax
jl 0x401b07
mov eax, dword [esp + 0x20]
push 0x100
push eax
lea eax, [esi + 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x401b67
xor ebx, ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x401b67
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
xor ebx, ebx
call edx
jmp 0x401b67
xor ebx, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x40], ebx
mov eax, 1
xor edx, edx
cpuid
mov dword [esp + 0x44], edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
push eax
push ecx
push str._08X_08X
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
xor ebx, ebx
jmp 0x401ba0
xor edx, edx
push 0x1fe
push edx
lea eax, [esp + 0x46a]
push eax
mov word [esp + 0x46c], dx
call fcn.00404310
add esp, 0xc
push ebx
lea ecx, [esp + 0x464]
call fcn.004011c0
add esp, 4
test eax, eax
jne 0x401bdc
inc ebx
cmp ebx, 0xa
jl 0x401ba0
jmp 0x401bf1
lea ecx, [esp + 0x460]
push ecx
lea eax, [esi + 0x200]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
lea edx, [esp + 0x30]
push edx
push eax
mov byte [esp + 0x50], 0
mov dword [esp + 0x51], eax
mov byte [esp + 0x55], al
mov dword [esp + 0x38], eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov eax, dword [esp + 0x30]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x401c68
lea ecx, [esp + 0x30]
push ecx
push ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x401c68
mov edi, dword [esp + 0x48]
lea ecx, [ebx + 8]
call fcn.00401350
cmp eax, 1
je 0x401c46
test eax, eax
jne 0x401c60
mov edi, dword [ebx + 0x194]
mov dx, word [ebx + 0x198]
mov dword [esp + 0x48], edi
mov word [esp + 0x4c], dx
test eax, eax
je 0x401c6c
mov ebx, dword [ebx]
test ebx, ebx
jne 0x401c35
jmp 0x401c6c
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
movzx edx, byte [esp + 0x4c]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
shr eax, 8
movzx ecx, al
push ecx
push edx
mov eax, edi
shr eax, 0x18
push eax
mov ecx, edi
shr ecx, 0x10
movzx edx, cl
push edx
movzx edx, byte [esp + 0x58]
mov eax, edi
shr eax, 8
movzx ecx, al
push ecx
push edx
lea eax, [esi + 0x400]
push str._02X__02X__02X__02X__02X__02X
push eax
call ebx
add esp, 0x20
xor edi, edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x44]
push eax
push edi
push edi
push 0x41410c
mov dword [esp + 0x54], edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x401ce8
mov ecx, dword [esp + 0x34]
push ecx
lea eax, [esi + 0x1200]
push str._08X
push eax
call ebx
add esp, 0xc
push 0x206
lea eax, [esp + 0x25e]
xor edx, edx
push edi
push eax
mov word [esp + 0x264], dx
call fcn.00404310
add esp, 0xc
push 0x206
lea edx, [esp + 0x56]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x5c], cx
call fcn.00404310
add esp, 0xc
lea eax, [esp + 0x258]
push eax
push edi
push edi
push 0x25
push edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x401eea
push str.kernel32.dll
lea ecx, [esp + 0x25c]
push ecx
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x401ddc
push edi
push edi
push 3
push edi
push 1
push 0x80000000
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401ddc
push edi
push edi
lea ecx, [esp + 0x18]
push ecx
push ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x401dd5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edi
add eax, 0x2ac18000
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
mov dword [esp + 0x3c], edi
call fcn.004111a0
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.user32.dll
lea edx, [esp + 0x25c]
push edx
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x401e63
push edi
push edi
push 3
push edi
push 1
push 0x80000000
lea ecx, [esp + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401e63
push edi
push edi
lea edx, [esp + 0x18]
push edx
push ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x401e5c
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edi
add eax, 0x2ac18000
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
mov dword [esp + 0x3c], edi
call fcn.004111a0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.notepad.exe
lea eax, [esp + 0x25c]
push eax
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x401eea
push edi
push edi
push 3
push edi
push 1
push 0x80000000
lea edx, [esp + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401eea
push edi
push edi
lea eax, [esp + 0x18]
push eax
push ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x401ee3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edi
add eax, 0x2ac18000
push 0x989680
adc ecx, 0xfe624e21
push ecx
push eax
mov dword [esp + 0x3c], edi
call fcn.004111a0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
push str._llu__llu__llu
lea eax, [esi + 0x1400]
push 0x100
push eax
call fcn.00403876
mov ecx, dword [esp + 0x688]
add esp, 0x24
pop edi
pop ebx
xor ecx, esp
mov eax, esi
call fcn.004037ea
mov esp, ebp
pop ebp
ret