Function at 0x54f160
Capabilities:
Get disk information
Get disk size
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b870e
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x63b404]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 4], 0
push 0x62
mov dword [ebp - 0x64], 0x30
call fcn.0056f8a6
mov esi, eax
add esp, 4
mov dword [ebp - 0x68], esi
test esi, esi
je 0x54f1e2
xor eax, eax
mov edi, str.HKLMSoftwareMicrosoftCryptographyMachineGuid
mov word [esi + 0x60], ax
mov ecx, esi
sub edi, esi
mov edx, 0x30
mov ax, word [edi + ecx]
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x54f1d1
jmp 0x54f1e9
mov dword [ebp - 0x64], 0
push ecx
lea edx, [ebp - 0x7c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.0054e190
add esp, 4
mov byte [ebp - 4], 0
mov bl, al
test esi, esi
je 0x54f211
push 2
push esi
call fcn.0056f898
add esp, 8
test bl, bl
je 0x54f2a1
lea ecx, [ebp - 0x7c]
call fcn.00545a50
push 0x72
mov ebx, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0x38
call fcn.0056f8a6
mov ecx, dword [ebp - 0x54]
push 0xffffffffffffffff
push str.Read_HKLMSoftwareMicrosoftCryptographyMachineGuid__s
inc ecx
mov dword [ebp - 0x58], eax
push ecx
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x54]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x54], ecx
push ebx
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
push 0xcb
push str.OSystem::getUniqueDeviceID
push str.d:jenkinsworkspaceclient3.lib.platformlibplatformlib_srcosystem.cpp
push edx
call fcn.00550890
mov eax, dword [ebp - 0x58]
add esp, 0x30
test eax, eax
je 0x54f534
push 2
push eax
call fcn.0056f898
add esp, 8
jmp 0x54f534
push 0x70
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0x37
call fcn.0056f8a6
mov ecx, dword [ebp - 0x54]
push 0xffffffffffffffff
push str.Failed_HKLMSoftwareMicrosoftCryptographyMachineGuid
inc ecx
mov dword [ebp - 0x58], eax
push ecx
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x54]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x54], ecx
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 3
push eax
push 0xcf
push str.OSystem::getUniqueDeviceID
push str.d:jenkinsworkspaceclient3.lib.platformlibplatformlib_srcosystem.cpp
push edx
call fcn.00550890
mov eax, dword [ebp - 0x58]
add esp, 0x2c
test eax, eax
je 0x54f315
push 2
push eax
call fcn.0056f898
add esp, 8
mov esi, 0x41
xor bl, bl
mov dword [ebp - 0x5c], esi
nop
test bl, bl
jne 0x54f564
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 4
xor eax, eax
push 8
mov word [ebp - 0x74], si
mov word [ebp - 0x72], ax
call fcn.0056f5ce
add esp, 4
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.00545630
mov esi, eax
mov byte [ebp - 4], 4
test esi, esi
je 0x54f39c
push esi
lea ecx, [ebp - 0x58]
call fcn.00546600
mov eax, dword [esi]
test eax, eax
je 0x54f38a
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056f898
add esp, 8
push 6
mov dword [ebp - 0x60], 0
mov esi, 2
call fcn.0056f8a6
push 0xffffffffffffffff
push 0x626fa8
mov edi, eax
lea eax, [ebp - 0x60]
push 3
push edi
push eax
mov dword [ebp - 0x70], edi
call fcn.00585d85
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x6c], esi
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x58]
call fcn.00546600
mov byte [ebp - 4], 4
test edi, edi
je 0x54f3fe
push 2
push edi
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x70], 0
cmp dword [ebp - 0x58], 0
mov dword [ebp - 0x6c], 0
je 0x54f479
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x54f479
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056f8a6
mov edi, eax
add esp, 4
test edi, edi
je 0x54f479
xor eax, eax
mov word [edi + esi*2], ax
test esi, esi
je 0x54f455
mov edx, dword [ebp - 0x58]
mov ecx, edi
sub edx, edi
mov ax, word [edx + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
sub esi, 1
jne 0x54f445
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
movzx ebx, bl
mov eax, 1
push 2
push edi
cmove ebx, eax
call fcn.0056f898
add esp, 8
test bl, bl
jne 0x54f482
mov esi, dword [ebp - 0x5c]
inc esi
mov dword [ebp - 0x5c], esi
jmp 0x54f485
mov esi, dword [ebp - 0x5c]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x54f4a2
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
cmp si, 0x5a
jbe 0x54f320
test bl, bl
jne 0x54f564
push 0x8c
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x54], 0x45
call fcn.0056f8a6
mov ecx, dword [ebp - 0x54]
push 0xffffffffffffffff
push str.Failed_to_generate_MachineID_legacywise_as_no_valid_fixed_drive_found
inc ecx
mov dword [ebp - 0x58], eax
push ecx
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x54]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x54], ecx
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xb
push eax
push 0x10d
push str.OSystem::getUniqueDeviceID
push str.d:jenkinsworkspaceclient3.lib.platformlibplatformlib_srcosystem.cpp
push edx
call fcn.00550890
mov eax, dword [ebp - 0x58]
add esp, 0x2c
test eax, eax
je 0x54f532
push 2
push eax
call fcn.0056f898
add esp, 8
xor ebx, ebx
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x54f546
push 2
push eax
call fcn.0056f898
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056f3c2
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 7
call fcn.00546290
push 6
mov dword [ebp - 0x60], 0
mov esi, 2
call fcn.0056f8a6
push 0xffffffffffffffff
push 0x626fa8
mov edi, eax
lea eax, [ebp - 0x60]
push 3
push edi
push eax
mov dword [ebp - 0x68], edi
call fcn.00585d85
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x64], esi
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x70]
call fcn.00546600
mov byte [ebp - 4], 7
test edi, edi
je 0x54f5da
push 2
push edi
call fcn.0056f898
add esp, 8
lea ecx, [ebp - 0x70]
call fcn.00546d80
mov esi, eax
test esi, esi
je 0x54f753
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x5c]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
xor dword [ebp - 0x5c], 0x95959ff5
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x90]
mov ecx, 0x63
cmp eax, ecx
cmova eax, ecx
xor dword [ebp - 0x8c], 0x95959ff5
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xb4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x68]
xor ecx, 0x95959ff5
push 5
push ecx
xor eax, 0x95959ff5
mov dword [ebp - 0x64], ecx
push eax
push dword [ebp - 0x8c]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x50]
push dword [ebp - 0x90]
push dword [ebp - 0x5c]
push str._08X_02X_08X_08X_08X_02X
push eax
call fcn.00525ac0
lea ecx, [ebp - 0x50]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x54f691
movzx eax, byte [ebp - 0x2c]
sub ecx, edx
xor edx, edx
cmp ecx, 0x24
push 8
cmova eax, edx
mov byte [ebp - 0x2c], al
call fcn.0056f5ce
add esp, 4
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 9
push ecx
mov ecx, eax
call fcn.005455a0
mov byte [ebp - 4], 7
mov ebx, eax
push 0x38
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x54], 0x1b
call fcn.0056f8a6
mov ecx, dword [ebp - 0x54]
push 0xffffffffffffffff
push str.Created_legacy_MachineID__s
inc ecx
mov dword [ebp - 0x58], eax
push ecx
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x54]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x54], ecx
push ebx
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0xa
push eax
push 0x107
push str.OSystem::getUniqueDeviceID
push str.d:jenkinsworkspaceclient3.lib.platformlibplatformlib_srcosystem.cpp
push edx
call fcn.00550890
mov eax, dword [ebp - 0x58]
add esp, 0x30
test eax, eax
je 0x54f740
push 2
push eax
call fcn.0056f898
add esp, 8
push 2
push esi
call fcn.0056f898
mov eax, dword [ebp - 0x70]
add esp, 8
jmp 0x54f289
mov eax, dword [ebp - 0x70]
xor ebx, ebx
jmp 0x54f289