Function at 0x409c30
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3c0c
call fcn.004cf3e0
mov eax, dword [0x61df80]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
jmp 0x409c67
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x10
jge 0x40a04f
mov dword [ebp - 0x114], 0
mov ecx, dword [ebp - 4]
push ecx
push str..PhysicalDrive_d
lea edx, [ebp - 0x110]
push edx
call fcn.004c7ef1
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
jne 0x409cc0
jmp 0x40a04a
mov dword [ebp - 0x2834], 0
xor ecx, ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
push 0x2710
push 0
lea edx, [ebp - 0x2830]
push edx
call fcn.004ce490
add esp, 0xc
push 0
lea eax, [ebp - 0x2834]
push eax
push 0x2710
lea ecx, [ebp - 0x2830]
push ecx
push 0xc
lea edx, [ebp - 0x120]
push edx
push 0x2d1400
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40a031
lea ecx, [ebp - 0x2830]
mov dword [ebp - 0x300c], ecx
call fcn.004094e0
mov dword [ebp - 0x3bd4], eax
push 0x3e8
push 0
lea edx, [ebp - 0x3bd0]
push edx
call fcn.004ce490
add esp, 0xc
lea eax, [ebp - 0x3bd0]
push eax
push 0
mov ecx, dword [ebp - 0x300c]
mov edx, dword [ecx + 0xc]
push edx
lea eax, [ebp - 0x2830]
push eax
call fcn.00409930
add esp, 0x10
lea ecx, [ebp - 0x3bd0]
push ecx
push 0x3e8
lea edx, [ebp - 0x33f8]
push edx
call fcn.004c9494
add esp, 0xc
push 0x3e8
push 0
lea eax, [ebp - 0x3bd0]
push eax
call fcn.004ce490
add esp, 0xc
lea ecx, [ebp - 0x3bd0]
push ecx
push 0
mov edx, dword [ebp - 0x300c]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp - 0x2830]
push ecx
call fcn.00409930
add esp, 0x10
lea edx, [ebp - 0x3bd0]
push edx
push 0x3e8
lea eax, [ebp - 0x3008]
push eax
call fcn.004c9494
add esp, 0xc
push 0x3e8
push 0
lea ecx, [ebp - 0x3bd0]
push ecx
call fcn.004ce490
add esp, 0xc
lea edx, [ebp - 0x3bd0]
push edx
push 0
mov eax, dword [ebp - 0x300c]
mov ecx, dword [eax + 0x14]
push ecx
lea edx, [ebp - 0x2830]
push edx
call fcn.00409930
add esp, 0x10
lea eax, [ebp - 0x3bd0]
push eax
push 0x3e8
lea ecx, [ebp - 0x2c20]
push ecx
call fcn.004c9494
add esp, 0xc
push 0x3e8
push 0
lea edx, [ebp - 0x3bd0]
push edx
call fcn.004ce490
add esp, 0xc
lea eax, [ebp - 0x3bd0]
push eax
push 1
mov ecx, dword [ebp - 0x300c]
mov edx, dword [ecx + 0x18]
push edx
lea eax, [ebp - 0x2830]
push eax
call fcn.00409930
add esp, 0x10
lea ecx, [ebp - 0x3bd0]
push ecx
push 0x3e8
lea edx, [ebp - 0x37e0]
push edx
call fcn.004c9494
add esp, 0xc
movsx eax, byte [0x62aff8]
test eax, eax
jne 0x409faf
movzx ecx, byte [ebp - 0x37e0]
push ecx
call fcn.004c92b2
add esp, 4
test eax, eax
jne 0x409ede
movzx edx, byte [ebp - 0x37cd]
push edx
call fcn.004c92b2
add esp, 4
test eax, eax
je 0x409faf
lea eax, [ebp - 0x37e0]
mov dword [ebp - 0x3bf0], eax
mov dword [ebp - 0x3bf4], 0x62aff8
mov ecx, dword [ebp - 0x3bf4]
mov dword [ebp - 0x3bf8], ecx
mov edx, dword [ebp - 0x3bf0]
mov al, byte [edx]
mov byte [ebp - 0x3bf9], al
mov ecx, dword [ebp - 0x3bf4]
mov dl, byte [ebp - 0x3bf9]
mov byte [ecx], dl
mov eax, dword [ebp - 0x3bf0]
add eax, 1
mov dword [ebp - 0x3bf0], eax
mov ecx, dword [ebp - 0x3bf4]
add ecx, 1
mov dword [ebp - 0x3bf4], ecx
cmp byte [ebp - 0x3bf9], 0
jne 0x409f00
lea edx, [ebp - 0x3008]
mov dword [ebp - 0x3c00], edx
mov dword [ebp - 0x3c04], 0x62b3f8
mov eax, dword [ebp - 0x3c04]
mov dword [ebp - 0x3c08], eax
mov ecx, dword [ebp - 0x3c00]
mov dl, byte [ecx]
mov byte [ebp - 0x3c09], dl
mov eax, dword [ebp - 0x3c04]
mov cl, byte [ebp - 0x3c09]
mov byte [eax], cl
mov edx, dword [ebp - 0x3c00]
add edx, 1
mov dword [ebp - 0x3c00], edx
mov eax, dword [ebp - 0x3c04]
add eax, 1
mov dword [ebp - 0x3c04], eax
cmp byte [ebp - 0x3c09], 0
jne 0x409f65
mov dword [ebp - 8], 1
push 0x2710
push 0
lea ecx, [ebp - 0x2830]
push ecx
call fcn.004ce490
add esp, 0xc
push 0
lea edx, [ebp - 0x2834]
push edx
push 0x2710
lea eax, [ebp - 0x2830]
push eax
push 0
push 0
push 0x700a0
mov ecx, dword [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x409ff6
jmp 0x40a02f
lea edx, [ebp - 0x2830]
mov dword [ebp - 0x3be4], edx
mov eax, dword [ebp - 0x3be4]
xor ecx, ecx
cmp dword [eax + 8], 0xc
sete cl
mov dword [ebp - 0x3be8], ecx
mov edx, dword [ebp - 0x3be4]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x3be0], eax
mov ecx, dword [edx + 0x1c]
mov dword [ebp - 0x3bdc], ecx
jmp 0x40a03d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3bec], eax
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409c5e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004c7d13
mov esp, ebp
pop ebp
ret