Function at 0x10022d20
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002c100
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc48
mov eax, dword [0x1003b270]
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 0x10022e16
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 0x10036164
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.100017c0
add esp, 4
cmp esi, 0xffffffff
jne 0x10022e33
test al, al
je 0x10022e0c
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.10001810
add esp, 0xc
push eax
call fcn.10001a30
add esp, 0x10
inc edi
cmp edi, 3
jl 0x10022d90
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.1001590b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test al, al
je 0x10022e5a
push edi
push str.GetHardID::PhysicalDrive_d_Success_n
push 0xa18
push str..PcCode.cpp
push 1
call fcn.10001810
add esp, 0xc
push eax
call fcn.10001a30
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 0x10022e16
cmp eax, 3
je 0x10022e16
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.10022b60
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.10022b60
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.10022b60
push 1
call fcn.100017c0
add esp, 4
test al, al
je 0x10022fc5
push 0xa3e
push str..PcCode.cpp
push 1
call fcn.10001810
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.10001a30
add esp, 0x14
push 1
call fcn.100017c0
add esp, 4
test al, al
je 0x10022ffc
push 0xa3f
push str..PcCode.cpp
push 1
call fcn.10001810
add esp, 0xc
lea ecx, [ebp - 0x1ac]
push ecx
push str.GetHardID_vid:_s_n
push eax
call fcn.10001a30
add esp, 0xc
push 1
call fcn.100017c0
add esp, 4
test al, al
je 0x10023033
push 0xa40
push str..PcCode.cpp
push 1
call fcn.10001810
add esp, 0xc
lea edx, [ebp - 0xa4]
push edx
push str.GetHardID_Pid:_s_n
push eax
call fcn.10001a30
add esp, 0xc
push 1
call fcn.100017c0
add esp, 4
test al, al
je 0x1002306a
push 0xa41
push str..PcCode.cpp
push 1
call fcn.10001810
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
push str.GetHardID_Sid:_s_n
push eax
call fcn.10001a30
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 0x10023076
lea eax, [ebp - 0x128]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10023090
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 0x100230a8
lea eax, [ebp - 0xa4]
lea edx, [eax + 1]
jmp 0x100230c0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100230c0
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 0x100230d8
push 1
call fcn.100017c0
add esp, 4
test al, al
je 0x10023119
push 0xa4d
push str..PcCode.cpp
push 1
call fcn.10001810
add esp, 0xc
lea edx, [ebp - 0x44c]
push edx
push str.GetHardID_full_hardid:_s_n
push eax
call fcn.10001a30
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 0x1002316b
movsx edx, byte [esi + edi]
push edx
call dword [sym.imp.MSVCR71.dll_isspace]
add esp, 4
test eax, eax
je 0x10023168
inc ebx
inc esi
jmp 0x10023150
cmp ebx, 0xf
jle 0x100231b6
push 1
call fcn.100017c0
add esp, 4
test al, al
je 0x100231a1
push 0xa5f
push str..PcCode.cpp
push 1
call fcn.10001810
add esp, 0xc
push edi
push str.GetHardID_Failed
push eax
call fcn.10001a30
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 0x10022e16
mov eax, edi
lea edx, [eax + 1]
jmp 0x100231c0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100231c0
sub eax, edx
cmp eax, 6
push 1
jae 0x10023214
call fcn.100017c0
add esp, 4
test al, al
je 0x100231ff
push 0xa67
push str..PcCode.cpp
push 1
call fcn.10001810
add esp, 0xc
push edi
push str.GetHardID_Failed_id
push eax
call fcn.10001a30
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 0x10022e16
call fcn.100017c0
add esp, 4
test al, al
je 0x10023243
push 0xa6c
push str..PcCode.cpp
push 1
call fcn.10001810
add esp, 0xc
push edi
push str.GetHardID_out_hardid:_s_n
push eax
call fcn.10001a30
add esp, 0xc
mov eax, 1
jmp 0x10022e18