Function at 0x417150
Capabilities:
Get storage device properties
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x728
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x30f]
push ebx
push eax
mov dword [ebp - 0x724], esi
xor edi, edi
mov byte [ebp - 0x310], bl
call fcn.00419b60
push 0x103
lea ecx, [ebp - 0x107]
push ebx
push ecx
mov byte [ebp - 0x108], bl
call fcn.00419b60
add esp, 0x18
xor eax, eax
mov byte [esi], bl
mov dword [ebp - 0x720], eax
jmp 0x4171c6
mov eax, dword [ebp - 0x720]
cmp eax, 0x10
jge 0x4173cc
push eax
lea edx, [ebp - 0x310]
push str..PhysicalDrive_d
push edx
call fcn.0041874b
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x417234
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x310]
push ecx
lea edx, [ebp - 0x108]
push str.R_D_I_W_Z_R_e1____C_F__.failed__szDriveName:_s__dwErrCode:_lu_n
push edx
call fcn.0041874b
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4173be
push 0x3ff
lea ecx, [ebp - 0x70f]
push ebx
push ecx
mov byte [ebp - 0x710], bl
call fcn.00419b60
add esp, 0xc
push ebx
xor eax, eax
lea edx, [ebp - 0x728]
push edx
push 0x400
mov dword [ebp - 0x71c], eax
mov dword [ebp - 0x718], eax
mov dword [ebp - 0x714], eax
lea eax, [ebp - 0x710]
push eax
push 0xc
lea ecx, [ebp - 0x71c]
push ecx
push 0x2d1400
push esi
mov dword [ebp - 0x728], ebx
mov dword [ebp - 0x71c], ebx
mov dword [ebp - 0x718], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4172d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x310]
push edx
push str.R_D_I_W_Z_R_e2____D_I_C_I_S_Q_P_.failed__szDriveName:_s__dwErrCode:_lu_n
lea eax, [ebp - 0x108]
push eax
call fcn.0041874b
add esp, 0x10
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x4173b7
push 0x103
lea edx, [ebp - 0x20b]
push ebx
push edx
mov byte [ebp - 0x20c], bl
call fcn.00419b60
mov ecx, dword [ebp - 0x6f8]
lea eax, [ebp - 0x20c]
push eax
push 1
push ecx
lea edx, [ebp - 0x710]
push edx
call fcn.00416cf0
movsx eax, byte [ebp - 0x20c]
push eax
call fcn.004196e0
add esp, 0x20
test eax, eax
jne 0x41735b
movsx ecx, byte [ebp - 0x1f9]
push ecx
call fcn.004196e0
add esp, 4
test eax, eax
jne 0x41735b
lea eax, [ebp - 0x20c]
lea edx, [eax + 1]
jmp 0x417340
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x417340
sub eax, edx
lea edx, [ebp - 0x310]
push edx
push eax
push str.R_D_I_W_Z_R_e4____szSerialNumber.error__nLength:_d__szDriveName:_s_n
jmp 0x4172b5
mov edi, dword [ebp - 0x724]
lea eax, [ebp - 0x20c]
mov edx, edi
mov ecx, eax
sub edx, ecx
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x417370
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x417380
sub eax, edx
push eax
lea edx, [ebp - 0x310]
push edx
lea eax, [ebp - 0x108]
push str.R_D_I_W_Z_R_OK____succeed__szDriveName:_s__nSnLength:_d_n
push eax
call fcn.0041874b
add esp, 0x10
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x720]
cmp edi, ebx
je 0x4171c0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004180c9
mov esp, ebp
pop ebp
ret