Function at 0x488a30
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49f5c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc48
mov eax, dword [0x4d757c]
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
test eax, eax
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xc54], ecx
je 0x488b26
mov ebx, dword [sym.imp.MSVCR71.dll_swprintf]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [ebp - 0x24c], cx
xor eax, eax
mov ecx, 0x27
lea edi, [ebp - 0x24a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
lea ecx, [ecx]
push edi
push str.Drive
push str.Physical
push 0x4c3b3c
lea edx, [ebp - 0x24c]
push str._s_s_s_d
push edx
call ebx
add esp, 0x18
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 1
mov esi, eax
call fcn.00450490
add esp, 4
cmp esi, 0xffffffff
jne 0x488b43
test al, al
je 0x488b1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.GetHardID::PhysicalDrive_d_failed_err:_d__n
push 0xa12
push str..PcCode.cpp
push 1
call fcn.004504b0
add esp, 0xc
push eax
call fcn.004506e0
add esp, 0x10
inc edi
cmp edi, 3
jl 0x488aa0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0045a4fd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test al, al
je 0x488b6a
push edi
push str.GetHardID::PhysicalDrive_d_Success_n
push 0xa18
push str..PcCode.cpp
push 1
call fcn.004504b0
add esp, 0xc
push eax
call fcn.004506e0
add esp, 0xc
xor eax, eax
mov byte [ebp - 0x44c], 0
mov ecx, 0x7f
lea edi, [ebp - 0x44b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0xc4c], 0
mov ecx, 0x1ff
lea edi, [ebp - 0xc4b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x128], 0
mov ecx, 0x20
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
mov byte [ebp - 0xa4], al
mov ecx, 0x20
lea edi, [ebp - 0xa3]
rep stosd dword es:[edi], eax
xor ebx, ebx
push ebx
mov byte [ebp - 0x1ac], al
mov ecx, 0x20
lea edi, [ebp - 0x1ab]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0xc50]
push ecx
push 0x800
lea edx, [ebp - 0xc4c]
push edx
push 0xc
lea eax, [ebp - 0x20]
push eax
push 0x2d1400
push esi
mov dword [ebp - 0xc50], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
mov eax, dword [ebp - 0xc30]
cmp eax, 2
je 0x488b26
cmp eax, 3
je 0x488b26
mov edx, dword [ebp - 0xc40]
mov esi, dword [ebp - 0xc54]
push 0x80
lea ecx, [ebp - 0x1ac]
push ecx
push ebx
push edx
lea eax, [ebp - 0xc4c]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00488870
mov edx, dword [ebp - 0xc3c]
push 0x80
lea ecx, [ebp - 0xa4]
push ecx
push ebx
push edx
lea eax, [ebp - 0xc4c]
push eax
mov ecx, esi
call fcn.00488870
mov edx, dword [ebp - 0xc34]
push 0x80
lea ecx, [ebp - 0x128]
push ecx
push 1
push edx
lea eax, [ebp - 0xc4c]
push eax
mov ecx, esi
call fcn.00488870
push 1
call fcn.00450490
add esp, 4
test al, al
je 0x488cd5
push 0xa3e
push str..PcCode.cpp
push 1
call fcn.004504b0
mov ecx, dword [ebp - 0xc50]
mov edx, dword [ebp - 0xc30]
add esp, 0xc
push ecx
push edx
push edi
push str.GetHardID_result:_d__type:_d_outlen:_d_n
push eax
call fcn.004506e0
add esp, 0x14
push 1
call fcn.00450490
add esp, 4
test al, al
je 0x488d0c
push 0xa3f
push str..PcCode.cpp
push 1
call fcn.004504b0
add esp, 0xc
lea ecx, [ebp - 0x1ac]
push ecx
push str.GetHardID_vid:_s_n
push eax
call fcn.004506e0
add esp, 0xc
push 1
call fcn.00450490
add esp, 4
test al, al
je 0x488d43
push 0xa40
push str..PcCode.cpp
push 1
call fcn.004504b0
add esp, 0xc
lea edx, [ebp - 0xa4]
push edx
push str.GetHardID_Pid:_s_n
push eax
call fcn.004506e0
add esp, 0xc
push 1
call fcn.00450490
add esp, 4
test al, al
je 0x488d7a
push 0xa41
push str..PcCode.cpp
push 1
call fcn.004504b0
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
push str.GetHardID_Sid:_s_n
push eax
call fcn.004506e0
add esp, 0xc
lea ecx, [ebp - 0x128]
lea edx, [ebp - 0x44c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x488d86
lea eax, [ebp - 0x128]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x488da0
sub eax, edx
mov esi, eax
lea ecx, [ebp - 0xa4]
lea edx, [ebp + esi - 0x44c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x488db8
lea eax, [ebp - 0xa4]
lea edx, [eax + 1]
jmp 0x488dd0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x488dd0
sub eax, edx
add esi, eax
lea ecx, [ebp - 0x1ac]
lea edx, [ebp + esi - 0x44c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x488de8
push 1
call fcn.00450490
add esp, 4
test al, al
je 0x488e29
push 0xa4d
push str..PcCode.cpp
push 1
call fcn.004504b0
add esp, 0xc
lea edx, [ebp - 0x44c]
push edx
push str.GetHardID_full_hardid:_s_n
push eax
call fcn.004506e0
add esp, 0xc
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x44c]
mov edx, dword [ebp - 0x448]
mov eax, edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x444]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x440]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x43c]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
xor esi, esi
lea esp, [esp]
cmp esi, 0x14
jge 0x488e7b
movsx edx, byte [esi + edi]
push edx
call dword [sym.imp.MSVCR71.dll_isspace]
add esp, 4
test eax, eax
je 0x488e78
inc ebx
inc esi
jmp 0x488e60
cmp ebx, 0xf
jle 0x488ec6
push 1
call fcn.00450490
add esp, 4
test al, al
je 0x488eb1
push 0xa5f
push str..PcCode.cpp
push 1
call fcn.004504b0
add esp, 0xc
push edi
push str.GetHardID_Failed
push eax
call fcn.004506e0
add esp, 0xc
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
jmp 0x488b26
mov eax, edi
lea edx, [eax + 1]
jmp 0x488ed0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x488ed0
sub eax, edx
cmp eax, 6
push 1
jae 0x488f24
call fcn.00450490
add esp, 4
test al, al
je 0x488f0f
push 0xa67
push str..PcCode.cpp
push 1
call fcn.004504b0
add esp, 0xc
push edi
push str.GetHardID_Failed_id
push eax
call fcn.004506e0
add esp, 0xc
xor ecx, ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], ecx
jmp 0x488b26
call fcn.00450490
add esp, 4
test al, al
je 0x488f53
push 0xa6c
push str..PcCode.cpp
push 1
call fcn.004504b0
add esp, 0xc
push edi
push str.GetHardID_out_hardid:_s_n
push eax
call fcn.004506e0
add esp, 0xc
mov eax, 1
jmp 0x488b28