Function at 0x439880
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d30
call fcn.004beaf0
mov eax, dword [0x54c384]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2d28], ecx
test ecx, ecx
je 0x439b5e
mov eax, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2d24], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d14], ebx
mov dword [ebp - 0x2d20], esi
mov dword [ebp - 0x2d30], edi
mov dword [ebp - 0x2d2c], eax
nop word [eax + eax]
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x5ec]
push 0x200
push eax
call fcn.004391a0
add esp, 0x10
lea eax, [ebp - 0x5ec]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call edi
mov edi, eax
mov dword [ebp - 0x2d1c], edi
cmp edi, 0xffffffff
je 0x439b35
push 0x2710
lea eax, [ebp - 0x2cfc]
mov dword [ebp - 0x2d00], 0
push 0
push eax
mov dword [ebp - 0x2d04], 0
mov dword [ebp - 0x2d0c], 0
mov dword [ebp - 0x2d08], 0
call fcn.004c05c0
add esp, 0xc
lea eax, [ebp - 0x2d00]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2cfc]
push eax
push 0xc
lea eax, [ebp - 0x2d0c]
push eax
push 0x2d1400
push edi
call dword [ebp - 0x2d24]
test eax, eax
je 0x439b2a
push 0x3e7
lea eax, [ebp - 0x3eb]
push 0
push eax
call fcn.004c05c0
mov eax, dword [ebp - 0x2ce4]
add esp, 0xc
mov byte [ebp - 0x3ec], 0
test eax, eax
jle 0x439adf
lea edi, [ebp - 0x2cfc]
xor bh, bh
xor esi, esi
mov ecx, 1
add edi, eax
mov dword [ebp - 0x2d10], ecx
mov eax, edi
mov dword [ebp - 0x2d18], eax
mov al, byte [eax]
test al, al
je 0x439a95
movsx eax, al
push eax
call fcn.004c8068
mov bl, al
movsx eax, bl
push eax
call fcn.004ce733
mov cl, byte [ebp + esi - 0x3ec]
add esp, 8
test eax, eax
movzx edx, bl
mov eax, 0x30
cmovne edx, eax
shl cl, 4
inc bh
mov byte [ebp + esi - 0x3ec], cl
lea eax, [edx - 0x30]
cmp al, 9
jbe 0x439a2c
lea eax, [edx - 0x61]
cmp al, 5
ja 0x439a64
lea eax, [edx - 0x57]
or cl, al
mov byte [ebp + esi - 0x3ec], cl
cmp bh, 2
jne 0x439a58
test cl, cl
je 0x439a4e
movsx eax, cl
push eax
call fcn.004ce704
add esp, 4
test eax, eax
je 0x439a64
inc esi
xor bh, bh
mov byte [ebp + esi - 0x3ec], bh
mov eax, dword [ebp - 0x2d18]
inc eax
jmp 0x4399d4
mov dword [ebp - 0x2d10], 1
xor esi, esi
mov bl, byte [edi]
test bl, bl
je 0x439a95
movsx eax, bl
push eax
call fcn.004ce704
add esp, 4
test eax, eax
je 0x439a91
mov byte [ebp + esi - 0x3ec], bl
inc esi
inc edi
jmp 0x439a70
xor ecx, ecx
jmp 0x439a9b
mov ecx, dword [ebp - 0x2d10]
xor edi, edi
test ecx, ecx
cmovne edi, esi
xor edx, edx
mov byte [ebp + edi - 0x3ec], 0
test edi, edi
jle 0x439ad3
mov cl, byte [ebp + edx - 0x3ec]
mov al, byte [ebp + edx - 0x3eb]
mov byte [ebp + edx - 0x3ec], al
mov byte [ebp + edx - 0x3eb], cl
add edx, 2
cmp edx, edi
jl 0x439ab0
mov edi, dword [ebp - 0x2d1c]
mov ebx, dword [ebp - 0x2d14]
mov ecx, dword [ebp - 0x2d28]
lea esi, [ebp - 0x3ec]
mov edx, 0x64
sub esi, ecx
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x439b0b
mov al, byte [esi + ecx]
test al, al
je 0x439b0b
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x439af2
mov esi, dword [ebp - 0x2d20]
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov byte [eax], 0
mov eax, 1
cmovne ebx, eax
mov dword [ebp - 0x2d14], ebx
push edi
call dword [ebp - 0x2d2c]
test ebx, ebx
jne 0x439b4b
mov edi, dword [ebp - 0x2d30]
inc esi
mov dword [ebp - 0x2d20], esi
cmp esi, 0x10
jl 0x4398e0
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bdaf8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004bdaf8
mov esp, ebp
pop ebp
ret