Function at 0x45fed0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46bee0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc48
mov eax, dword [0x48644c]
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 0x45ffc6
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 0x47be14
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.00421c00
add esp, 4
cmp esi, 0xffffffff
jne 0x45ffe3
test al, al
je 0x45ffbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.GetHardID::PhysicalDrive_d_failed_err:_d__n
push 0x9d2
push str..PcCode.cpp
push 1
call fcn.00421c20
add esp, 0xc
push eax
call fcn.00421e50
add esp, 0x10
inc edi
cmp edi, 3
jl 0x45ff40
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00436153
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test al, al
je 0x46000a
push edi
push str.GetHardID::PhysicalDrive_d_Success_n
push 0x9d8
push str..PcCode.cpp
push 1
call fcn.00421c20
add esp, 0xc
push eax
call fcn.00421e50
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 0x45ffc6
cmp eax, 3
je 0x45ffc6
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.0045fd10
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.0045fd10
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.0045fd10
push 1
call fcn.00421c00
add esp, 4
test al, al
je 0x460175
push 0x9fe
push str..PcCode.cpp
push 1
call fcn.00421c20
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.00421e50
add esp, 0x14
push 1
call fcn.00421c00
add esp, 4
test al, al
je 0x4601ac
push 0x9ff
push str..PcCode.cpp
push 1
call fcn.00421c20
add esp, 0xc
lea ecx, [ebp - 0x1ac]
push ecx
push str.GetHardID_vid:_s_n
push eax
call fcn.00421e50
add esp, 0xc
push 1
call fcn.00421c00
add esp, 4
test al, al
je 0x4601e3
push 0xa00
push str..PcCode.cpp
push 1
call fcn.00421c20
add esp, 0xc
lea edx, [ebp - 0xa4]
push edx
push str.GetHardID_Pid:_s_n
push eax
call fcn.00421e50
add esp, 0xc
push 1
call fcn.00421c00
add esp, 4
test al, al
je 0x46021a
push 0xa01
push str..PcCode.cpp
push 1
call fcn.00421c20
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
push str.GetHardID_Sid:_s_n
push eax
call fcn.00421e50
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 0x460226
lea eax, [ebp - 0x128]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x460240
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 0x460258
lea eax, [ebp - 0xa4]
lea edx, [eax + 1]
jmp 0x460270
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x460270
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 0x460288
push 1
call fcn.00421c00
add esp, 4
test al, al
je 0x4602c9
push 0xa0d
push str..PcCode.cpp
push 1
call fcn.00421c20
add esp, 0xc
lea edx, [ebp - 0x44c]
push edx
push str.GetHardID_full_hardid:_s_n
push eax
call fcn.00421e50
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 0x46031b
movsx edx, byte [esi + edi]
push edx
call dword [sym.imp.MSVCR71.dll_isspace]
add esp, 4
test eax, eax
je 0x460318
inc ebx
inc esi
jmp 0x460300
cmp ebx, 0xf
jle 0x460366
push 1
call fcn.00421c00
add esp, 4
test al, al
je 0x460351
push 0xa1f
push str..PcCode.cpp
push 1
call fcn.00421c20
add esp, 0xc
push edi
push str.GetHardID_Failed
push eax
call fcn.00421e50
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 0x45ffc6
mov eax, edi
lea edx, [eax + 1]
jmp 0x460370
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x460370
sub eax, edx
cmp eax, 6
push 1
jae 0x4603c4
call fcn.00421c00
add esp, 4
test al, al
je 0x4603af
push 0xa27
push str..PcCode.cpp
push 1
call fcn.00421c20
add esp, 0xc
push edi
push str.GetHardID_Failed_id
push eax
call fcn.00421e50
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 0x45ffc6
call fcn.00421c00
add esp, 4
test al, al
je 0x4603f3
push 0xa2c
push str..PcCode.cpp
push 1
call fcn.00421c20
add esp, 0xc
push edi
push str.GetHardID_out_hardid:_s_n
push eax
call fcn.00421e50
add esp, 0xc
mov eax, 1
jmp 0x45ffc8