Function at 0x5159d0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5d19c1
mov eax, dword fs:[0]
push eax
mov eax, 0x123c
call fcn.005b6f10
mov eax, dword [0x65d4e4]
xor eax, esp
mov dword [esp + 0x1238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65d4e4]
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 0x515d06
cmp byte [ebp], 0
je 0x515d06
mov edi, dword [esp + 0x1268]
test edi, edi
je 0x515a4b
test ebx, ebx
je 0x515d06
cmp byte [ebx], 0
je 0x515d06
push 0xfff
lea eax, [esp + 0x251]
push 0
push eax
mov byte [esp + 0x258], 0
call fcn.005b5540
add esp, 0xc
lea ecx, [esp + 0x24c]
push ecx
push 0xfff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x515c62
mov edx, dword [str._:Recycled]
mov eax, dword [0x5f59e8]
mov ecx, dword [0x5f59ec]
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.005b5540
mov eax, dword [str._:Recycler]
mov ecx, dword [0x5f59dc]
mov edx, dword [0x5f59e0]
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.005b5540
mov edx, dword [0x5f59cc]
mov ecx, dword [str._:_Recycle.Bin]
mov eax, dword [0x5f59d0]
push 0x70
mov dword [esp + 0xec], edx
mov dword [esp + 0xe8], ecx
mov ecx, dword [0x5f59d4]
lea edx, [esp + 0xf8]
push 0
push edx
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], ecx
call fcn.005b5540
add esp, 0x24
push 0x62b600
lea ecx, [esp + 0xb4]
call fcn.0040be30
test edi, edi
mov dword [esp + 0x1258], 0
lea ecx, [esp + 0xb0]
je 0x515b6f
push str.ywSMPOnlyId.log
jmp 0x515b74
push str.ywSMPOnlyId
call fcn.0040bdc0
lea esp, [esp]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x515c40
push esi
call fcn.005157f0
add esp, 4
test eax, eax
jne 0x515c40
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 0x515bd0
lea eax, [esp + 0xb4]
push edi
push ebx
push ebp
push eax
lea eax, [esp + 0xdc]
push eax
call fcn.00515210
mov eax, dword [esp + 0xc8]
add esp, 0x14
cmp dword [esp + 0xc8], 0x10
jae 0x515bfc
lea eax, [esp + 0xb4]
push edi
push ebx
push ebp
push eax
lea ecx, [esp + 0x15c]
push ecx
call fcn.00515210
mov eax, dword [esp + 0xc8]
add esp, 0x14
cmp dword [esp + 0xc8], 0x10
jae 0x515c28
lea eax, [esp + 0xb4]
push edi
push ebx
push ebp
push eax
lea edx, [esp + 0x1dc]
push edx
call fcn.00515210
add esp, 0x14
lea esp, [esp]
mov al, byte [esi]
add esi, 1
test al, al
jne 0x515c40
cmp byte [esi], al
jne 0x515b80
lea ecx, [esp + 0xb0]
call fcn.0040bf30
jmp 0x515d06
push 1
push 2
lea ecx, [esp + 0x38]
call fcn.0040b040
lea ecx, [esp + 0x30]
push 0x5f599c
push ecx
mov dword [esp + 0x1260], 1
call fcn.00409b60
add esp, 8
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x34]
call fcn.004094f0
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x1258], 2
jb 0x515cad
mov eax, dword [eax + 4]
jmp 0x515cb0
add eax, 4
push eax
push str.SaveOnlyIdBuffer
push 0x9a
push str..ywSMPpubDeviceOnlyId.cpp
push 0xf0000000
call fcn.00409860
mov ecx, eax
call fcn.004fb930
lea ecx, [esp + 0x14]
call fcn.0040bf30
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1258], 0xffffffff
call fcn.00409e00
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x80], vtable.std::ios_base.0
call fcn.005cdcde
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.005b1988
add esp, 0x1248
ret