Function at 0x475dd0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485e70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc48
mov eax, dword [0x4ac3b8]
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 0x475ec6
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 0x49e6a0
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.004497e0
add esp, 4
cmp esi, 0xffffffff
jne 0x475ee3
test al, al
je 0x475ebc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.GetHardID::PhysicalDrive_d_failed_err:_d__n
push 0x9b8
push str..PcCode.cpp
push 1
call fcn.00449830
add esp, 0xc
push eax
call fcn.00449a60
add esp, 0x10
inc edi
cmp edi, 3
jl 0x475e40
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0045015b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test al, al
je 0x475f0a
push edi
push str.GetHardID::PhysicalDrive_d_Success_n
push 0x9be
push str..PcCode.cpp
push 1
call fcn.00449830
add esp, 0xc
push eax
call fcn.00449a60
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 0x475ec6
cmp eax, 3
je 0x475ec6
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.00475c10
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.00475c10
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.00475c10
push 1
call fcn.004497e0
add esp, 4
test al, al
je 0x476075
push 0x9e4
push str..PcCode.cpp
push 1
call fcn.00449830
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.00449a60
add esp, 0x14
push 1
call fcn.004497e0
add esp, 4
test al, al
je 0x4760ac
push 0x9e5
push str..PcCode.cpp
push 1
call fcn.00449830
add esp, 0xc
lea ecx, [ebp - 0x1ac]
push ecx
push str.GetHardID_vid:_s_n
push eax
call fcn.00449a60
add esp, 0xc
push 1
call fcn.004497e0
add esp, 4
test al, al
je 0x4760e3
push 0x9e6
push str..PcCode.cpp
push 1
call fcn.00449830
add esp, 0xc
lea edx, [ebp - 0xa4]
push edx
push str.GetHardID_Pid:_s_n
push eax
call fcn.00449a60
add esp, 0xc
push 1
call fcn.004497e0
add esp, 4
test al, al
je 0x47611a
push 0x9e7
push str..PcCode.cpp
push 1
call fcn.00449830
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
push str.GetHardID_Sid:_s_n
push eax
call fcn.00449a60
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 0x476126
lea eax, [ebp - 0x128]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x476140
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 0x476158
lea eax, [ebp - 0xa4]
lea edx, [eax + 1]
jmp 0x476170
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x476170
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 0x476188
push 1
call fcn.004497e0
add esp, 4
test al, al
je 0x4761c9
push 0x9f3
push str..PcCode.cpp
push 1
call fcn.00449830
add esp, 0xc
lea edx, [ebp - 0x44c]
push edx
push str.GetHardID_full_hardid:_s_n
push eax
call fcn.00449a60
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 0x47621b
movsx edx, byte [esi + edi]
push edx
call dword [sym.imp.MSVCR71.dll_isspace]
add esp, 4
test eax, eax
je 0x476218
inc ebx
inc esi
jmp 0x476200
cmp ebx, 0xf
jle 0x476266
push 1
call fcn.004497e0
add esp, 4
test al, al
je 0x476251
push 0xa05
push str..PcCode.cpp
push 1
call fcn.00449830
add esp, 0xc
push edi
push str.GetHardID_Failed
push eax
call fcn.00449a60
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 0x475ec6
mov eax, edi
lea edx, [eax + 1]
jmp 0x476270
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x476270
sub eax, edx
cmp eax, 6
push 1
jae 0x4762c4
call fcn.004497e0
add esp, 4
test al, al
je 0x4762af
push 0xa0d
push str..PcCode.cpp
push 1
call fcn.00449830
add esp, 0xc
push edi
push str.GetHardID_Failed_id
push eax
call fcn.00449a60
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 0x475ec6
call fcn.004497e0
add esp, 4
test al, al
je 0x4762f3
push 0xa12
push str..PcCode.cpp
push 1
call fcn.00449830
add esp, 0xc
push edi
push str.GetHardID_out_hardid:_s_n
push eax
call fcn.00449a60
add esp, 0xc
mov eax, 1
jmp 0x475ec8