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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b78ee
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x63a404]
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.0056ea97
mov esi, eax
add esp, 4
mov dword [ebp - 0x68], esi
test esi, esi
je 0x54e3f2
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 0x54e3e1
jmp 0x54e3f9
mov dword [ebp - 0x64], 0
push ecx
lea edx, [ebp - 0x7c]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.0054d3a0
add esp, 4
mov byte [ebp - 4], 0
mov bl, al
test esi, esi
je 0x54e421
push 2
push esi
call fcn.0056ea89
add esp, 8
test bl, bl
je 0x54e4b1
lea ecx, [ebp - 0x7c]
call fcn.00544c60
push 0x72
mov ebx, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0x38
call fcn.0056ea97
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.00584f75
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.0054faa0
mov eax, dword [ebp - 0x58]
add esp, 0x30
test eax, eax
je 0x54e744
push 2
push eax
call fcn.0056ea89
add esp, 8
jmp 0x54e744
push 0x70
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0x37
call fcn.0056ea97
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.00584f75
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.0054faa0
mov eax, dword [ebp - 0x58]
add esp, 0x2c
test eax, eax
je 0x54e525
push 2
push eax
call fcn.0056ea89
add esp, 8
mov esi, 0x41
xor bl, bl
mov dword [ebp - 0x5c], esi
nop
test bl, bl
jne 0x54e774
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.0056e7bf
add esp, 4
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.00544840
mov esi, eax
mov byte [ebp - 4], 4
test esi, esi
je 0x54e5ac
push esi
lea ecx, [ebp - 0x58]
call fcn.00545810
mov eax, dword [esi]
test eax, eax
je 0x54e59a
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.0056ea89
add esp, 8
push 6
mov dword [ebp - 0x60], 0
mov esi, 2
call fcn.0056ea97
push 0xffffffffffffffff
push 0x625e88
mov edi, eax
lea eax, [ebp - 0x60]
push 3
push edi
push eax
mov dword [ebp - 0x70], edi
call fcn.00584f75
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.00545810
mov byte [ebp - 4], 4
test edi, edi
je 0x54e60e
push 2
push edi
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x70], 0
cmp dword [ebp - 0x58], 0
mov dword [ebp - 0x6c], 0
je 0x54e689
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x54e689
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056ea97
mov edi, eax
add esp, 4
test edi, edi
je 0x54e689
xor eax, eax
mov word [edi + esi*2], ax
test esi, esi
je 0x54e665
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 0x54e655
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.0056ea89
add esp, 8
test bl, bl
jne 0x54e692
mov esi, dword [ebp - 0x5c]
inc esi
mov dword [ebp - 0x5c], esi
jmp 0x54e695
mov esi, dword [ebp - 0x5c]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x54e6b2
push 2
push eax
call fcn.0056ea89
add esp, 8
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
cmp si, 0x5a
jbe 0x54e530
test bl, bl
jne 0x54e774
push 0x8c
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x54], 0x45
call fcn.0056ea97
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.00584f75
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.0054faa0
mov eax, dword [ebp - 0x58]
add esp, 0x2c
test eax, eax
je 0x54e742
push 2
push eax
call fcn.0056ea89
add esp, 8
xor ebx, ebx
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x54e756
push 2
push eax
call fcn.0056ea89
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.0056e5b3
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.005454a0
push 6
mov dword [ebp - 0x60], 0
mov esi, 2
call fcn.0056ea97
push 0xffffffffffffffff
push 0x625e88
mov edi, eax
lea eax, [ebp - 0x60]
push 3
push edi
push eax
mov dword [ebp - 0x68], edi
call fcn.00584f75
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.00545810
mov byte [ebp - 4], 7
test edi, edi
je 0x54e7ea
push 2
push edi
call fcn.0056ea89
add esp, 8
lea ecx, [ebp - 0x70]
call fcn.00545f90
mov esi, eax
test esi, esi
je 0x54e963
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.00524cd0
lea ecx, [ebp - 0x50]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x54e8a1
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.0056e7bf
add esp, 4
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 9
push ecx
mov ecx, eax
call fcn.005447b0
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.0056ea97
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.00584f75
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.0054faa0
mov eax, dword [ebp - 0x58]
add esp, 0x30
test eax, eax
je 0x54e950
push 2
push eax
call fcn.0056ea89
add esp, 8
push 2
push esi
call fcn.0056ea89
mov eax, dword [ebp - 0x70]
add esp, 8
jmp 0x54e499
mov eax, dword [ebp - 0x70]
xor ebx, ebx
jmp 0x54e499