Function at 0x5149a0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5d09a1
mov eax, dword fs:[0]
push eax
mov eax, 0x123c
call fcn.005b5ef0
mov eax, dword [0x65b4e4]
xor eax, esp
mov dword [esp + 0x1238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x65b4e4]
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 0x514cd6
cmp byte [ebp], 0
je 0x514cd6
mov edi, dword [esp + 0x1268]
test edi, edi
je 0x514a1b
test ebx, ebx
je 0x514cd6
cmp byte [ebx], 0
je 0x514cd6
push 0xfff
lea eax, [esp + 0x251]
push 0
push eax
mov byte [esp + 0x258], 0
call fcn.005b4520
add esp, 0xc
lea ecx, [esp + 0x24c]
push ecx
push 0xfff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x514c32
mov edx, dword [str._:Recycled]
mov eax, dword [0x5f49e8]
mov ecx, dword [0x5f49ec]
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.005b4520
mov eax, dword [str._:Recycler]
mov ecx, dword [0x5f49dc]
mov edx, dword [0x5f49e0]
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.005b4520
mov edx, dword [0x5f49cc]
mov ecx, dword [str._:_Recycle.Bin]
mov eax, dword [0x5f49d0]
push 0x70
mov dword [esp + 0xec], edx
mov dword [esp + 0xe8], ecx
mov ecx, dword [0x5f49d4]
lea edx, [esp + 0xf8]
push 0
push edx
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], ecx
call fcn.005b4520
add esp, 0x24
push 0x62a4a0
lea ecx, [esp + 0xb4]
call fcn.0040bf50
test edi, edi
mov dword [esp + 0x1258], 0
lea ecx, [esp + 0xb0]
je 0x514b3f
push str.ywSMPOnlyId.log
jmp 0x514b44
push str.ywSMPOnlyId
call fcn.0040bee0
lea esp, [esp]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x514c10
push esi
call fcn.005147c0
add esp, 4
test eax, eax
jne 0x514c10
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 0x514ba0
lea eax, [esp + 0xb4]
push edi
push ebx
push ebp
push eax
lea eax, [esp + 0xdc]
push eax
call fcn.005141e0
mov eax, dword [esp + 0xc8]
add esp, 0x14
cmp dword [esp + 0xc8], 0x10
jae 0x514bcc
lea eax, [esp + 0xb4]
push edi
push ebx
push ebp
push eax
lea ecx, [esp + 0x15c]
push ecx
call fcn.005141e0
mov eax, dword [esp + 0xc8]
add esp, 0x14
cmp dword [esp + 0xc8], 0x10
jae 0x514bf8
lea eax, [esp + 0xb4]
push edi
push ebx
push ebp
push eax
lea edx, [esp + 0x1dc]
push edx
call fcn.005141e0
add esp, 0x14
lea esp, [esp]
mov al, byte [esi]
add esi, 1
test al, al
jne 0x514c10
cmp byte [esi], al
jne 0x514b50
lea ecx, [esp + 0xb0]
call fcn.0040c050
jmp 0x514cd6
push 1
push 2
lea ecx, [esp + 0x38]
call fcn.0040b160
lea ecx, [esp + 0x30]
push 0x5f499c
push ecx
mov dword [esp + 0x1260], 1
call fcn.00409c80
add esp, 8
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x34]
call fcn.00409610
cmp dword [eax + 0x18], 0x10
mov byte [esp + 0x1258], 2
jb 0x514c7d
mov eax, dword [eax + 4]
jmp 0x514c80
add eax, 4
push eax
push str.SaveOnlyIdBuffer
push 0x9a
push str..ywSMPpubDeviceOnlyId.cpp
push 0xf0000000
call fcn.00409980
mov ecx, eax
call fcn.004fa910
lea ecx, [esp + 0x14]
call fcn.0040c050
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1258], 0xffffffff
call fcn.00409f20
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x80], vtable.std::ios_base.0
call fcn.005cccbe
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.005b0968
add esp, 0x1248
ret