Function at 0x51f6f0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5dd7a1
mov eax, dword fs:[0]
push eax
mov eax, 0x123c
call fcn.005c2160
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x1238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0x1250]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1260]
test ebp, ebp
mov ebx, dword [esp + 0x1264]
je 0x51fa26
cmp byte [ebp], 0
je 0x51fa26
mov edi, dword [esp + 0x1268]
test edi, edi
je 0x51f76b
test ebx, ebx
je 0x51fa26
cmp byte [ebx], 0
je 0x51fa26
push 0xfff
lea eax, [esp + 0x251]
push 0
push eax
mov byte [esp + 0x258], 0
call fcn.005c0cf0
add esp, 0xc
lea ecx, [esp + 0x24c]
push ecx
push 0xfff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x51f982
mov edx, dword [str._:Recycled]
mov eax, dword [0x602b80]
mov ecx, dword [0x602b84]
push 0x74
mov dword [esp + 0x150], edx
lea edx, [esp + 0x15c]
push 0
push edx
lea esi, [esp + 0x258]
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], ecx
call fcn.005c0cf0
mov eax, dword [str._:Recycler]
mov ecx, dword [0x602b74]
mov edx, dword [0x602b78]
push 0x74
mov dword [esp + 0x1dc], eax
lea eax, [esp + 0x1e8]
push 0
push eax
mov dword [esp + 0x1e8], ecx
mov dword [esp + 0x1ec], edx
call fcn.005c0cf0
mov edx, dword [0x602b64]
mov ecx, dword [str._:_Recycle.Bin]
mov eax, dword [0x602b68]
push 0x70
mov dword [esp + 0xec], edx
mov dword [esp + 0xe8], ecx
mov ecx, dword [0x602b6c]
lea edx, [esp + 0xf8]
push 0
push edx
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], ecx
call fcn.005c0cf0
add esp, 0x24
push 0x63a990
lea ecx, [esp + 0xb4]
call fcn.0040b540
test edi, edi
mov dword [esp + 0x1258], 0
lea ecx, [esp + 0xb0]
je 0x51f88f
push str.ywSMPOnlyId.log
jmp 0x51f894
push str.ywSMPOnlyId
call fcn.0040b4d0
lea esp, [esp]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x51f960
push esi
call fcn.0051f510
add esp, 4
test eax, eax
jne 0x51f960
cmp dword [esp + 0xc8], 0x10
mov al, byte [esi]
mov byte [esp + 0x14c], al
mov byte [esp + 0x1cc], al
mov byte [esp + 0xcc], al
mov eax, dword [esp + 0xb4]
jae 0x51f8f0
lea eax, [esp + 0xb4]
push edi
push ebx
push ebp
push eax
lea eax, [esp + 0xdc]
push eax
call fcn.0051ef30
mov eax, dword [esp + 0xc8]
add esp, 0x14
cmp dword [esp + 0xc8], 0x10
jae 0x51f91c
lea eax, [esp + 0xb4]
push edi
push ebx
push ebp
push eax
lea ecx, [esp + 0x15c]
push ecx
call fcn.0051ef30
mov eax, dword [esp + 0xc8]
add esp, 0x14
cmp dword [esp + 0xc8], 0x10
jae 0x51f948
lea eax, [esp + 0xb4]
push edi
push ebx
push ebp
push eax
lea edx, [esp + 0x1dc]
push edx
call fcn.0051ef30
add esp, 0x14
lea esp, [esp]
mov al, byte [esi]
add esi, 1
test al, al
jne 0x51f960
cmp byte [esi], al
jne 0x51f8a0
lea ecx, [esp + 0xb0]
call fcn.0040b640
jmp 0x51fa26
push 1
push 2
lea ecx, [esp + 0x38]
call fcn.0040a750
lea ecx, [esp + 0x30]
push 0x602b34
push ecx
mov dword [esp + 0x1260], 1
call fcn.00409270
add esp, 8
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x34]
call fcn.00408c00
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x1258], 2
jb 0x51f9cd
mov eax, dword [eax + 4]
jmp 0x51f9d0
add eax, 4
push eax
push str.SaveOnlyIdBuffer
push 0x9a
push str..ywSMPpubDeviceOnlyId.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
lea ecx, [esp + 0x14]
call fcn.0040b640
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1258], 0xffffffff
call fcn.00409510
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x80], vtable.std::ios_base.0
call fcn.005d9cc4
add esp, 4
mov ecx, dword [esp + 0x1250]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1238]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x1248
ret