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

Disassembly:
sub esp, 0x728
mov eax, dword [0x42c2f0]
xor eax, esp
mov dword [esp + 0x724], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x235]
mov esi, ecx
push ebx
push eax
mov dword [esp + 0x24], esi
xor ebp, ebp
mov byte [esp + 0x23c], bl
call fcn.00412200
push 0x103
lea ecx, [esp + 0x39]
push ebx
push ecx
mov byte [esp + 0x40], bl
call fcn.00412200
add esp, 0x18
xor edi, edi
mov byte [esi], bl
mov dword [esp + 0x10], edi
jmp 0x409e90
cmp edi, 0x10
jge 0x40a082
push edi
lea edx, [esp + 0x234]
push str..PhysicalDrive_d
push edx
call fcn.0040fac5
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [esp + 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409efd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x30]
push str.R_D_I_W_Z_R_e1____C_F__.failed__szDriveName:_s__dwErrCode:_lu_n
push edx
call fcn.0040fac5
add esp, 0x10
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40a073
push 0x3ff
lea ecx, [esp + 0x339]
push ebx
push ecx
mov byte [esp + 0x340], bl
call fcn.00412200
add esp, 0xc
push ebx
xor eax, eax
lea edx, [esp + 0x18]
push edx
push 0x400
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x340]
push eax
push 0xc
lea ecx, [esp + 0x30]
push ecx
push 0x2d1400
push esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x409f8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x234]
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, [esp + 0x34]
push eax
call fcn.0040fac5
add esp, 0x10
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40a068
push 0x103
lea edx, [esp + 0x131]
push ebx
push edx
mov byte [esp + 0x138], bl
call fcn.00412200
mov eax, dword [esp + 0x358]
lea edi, [esp + 0x138]
lea ecx, [esp + 0x340]
call fcn.004099a0
movsx eax, byte [esp + 0x138]
push eax
call fcn.00411382
add esp, 0x10
test eax, eax
jne 0x40a010
movsx ecx, byte [esp + 0x13f]
push ecx
call fcn.00411382
add esp, 4
test eax, eax
jne 0x40a010
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x409ff2
sub eax, edx
lea edx, [esp + 0x230]
push edx
push eax
push str.R_D_I_W_Z_R_e4____szSerialNumber.error__nLength:_d__szDriveName:_s_n
jmp 0x409f72
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x12c]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
cmp cl, bl
jne 0x40a021
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40a032
sub eax, edx
push eax
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x30]
push str.R_D_I_W_Z_R_OK____succeed__szDriveName:_s__nSnLength:_d_n
push eax
call fcn.0040fac5
add esp, 0x10
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x10]
add edi, 1
cmp ebp, ebx
mov dword [esp + 0x10], edi
je 0x409e90
mov ecx, dword [esp + 0x734]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0040fbc6
add esp, 0x728
ret