Function at 0x407440
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3124
call fcn.004d2a50
mov eax, dword [0x550070]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x3110], ecx
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.004d43c0
add esp, 0xc
mov byte [ebp - 0x20c], 0
push 0x103
push 0
lea ecx, [ebp - 0x20b]
push ecx
call fcn.004d43c0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, 1
imul ecx, eax, 0
movsx edx, byte [ebp + ecx - 0x108]
push edx
push 0x5120e8
lea eax, [ebp - 0x20c]
push eax
call fcn.00404c90
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x3108], eax
cmp dword [ebp - 0x3108], 0xffffffff
jne 0x4074fd
mov al, 1
jmp 0x40770e
mov byte [ebp - 0x30f9], 0
mov dword [ebp - 0x3114], 0
mov byte [ebp - 0x30ec], 0
push 0x270f
push 0
lea edx, [ebp - 0x30eb]
push edx
call fcn.004d43c0
add esp, 0xc
mov byte [ebp - 0x9dc], 0
push 0x3e7
push 0
lea eax, [ebp - 0x9db]
push eax
call fcn.004d43c0
add esp, 0xc
mov byte [ebp - 0x5f4], 0
push 0x3e7
push 0
lea ecx, [ebp - 0x5f3]
push ecx
call fcn.004d43c0
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x30f8], edx
mov dword [ebp - 0x30f4], edx
mov dword [ebp - 0x30f0], edx
mov dword [ebp - 0x30f8], 0
mov dword [ebp - 0x30f4], 0
push 0
lea eax, [ebp - 0x3114]
push eax
push 0x2710
lea ecx, [ebp - 0x30ec]
push ecx
push 0xc
lea edx, [ebp - 0x30f8]
push edx
push 0x2d1400
mov eax, dword [ebp - 0x3108]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4075cd
mov byte [ebp - 0x30f9], 2
jmp 0x4076fb
lea ecx, [ebp - 0x30ec]
mov dword [ebp - 0x310c], ecx
lea edx, [ebp - 0x5f4]
push edx
push 0
mov eax, dword [ebp - 0x310c]
mov ecx, dword [eax + 0x10]
push ecx
lea edx, [ebp - 0x30ec]
push edx
call fcn.00406d10
add esp, 0x10
lea eax, [ebp - 0x9dc]
push eax
push 1
mov ecx, dword [ebp - 0x310c]
mov edx, dword [ecx + 0x18]
push edx
lea eax, [ebp - 0x30ec]
push eax
call fcn.00406d10
add esp, 0x10
lea ecx, [ebp - 0x5f4]
mov dword [ebp - 0x3100], ecx
mov edx, dword [ebp - 0x3100]
add edx, 1
mov dword [ebp - 0x3118], edx
mov eax, dword [ebp - 0x3100]
mov cl, byte [eax]
mov byte [ebp - 0x30fa], cl
add dword [ebp - 0x3100], 1
cmp byte [ebp - 0x30fa], 0
jne 0x407638
mov edx, dword [ebp - 0x3100]
sub edx, dword [ebp - 0x3118]
mov dword [ebp - 0x311c], edx
mov eax, dword [ebp - 0x311c]
push eax
lea ecx, [ebp - 0x5f4]
push ecx
mov edx, dword [ebp - 0x3110]
add edx, 0x18
push edx
call fcn.00409230
add esp, 0xc
lea eax, [ebp - 0x9dc]
mov dword [ebp - 0x3104], eax
mov ecx, dword [ebp - 0x3104]
add ecx, 1
mov dword [ebp - 0x3120], ecx
mov edx, dword [ebp - 0x3104]
mov al, byte [edx]
mov byte [ebp - 0x30fb], al
add dword [ebp - 0x3104], 1
cmp byte [ebp - 0x30fb], 0
jne 0x4076a3
mov ecx, dword [ebp - 0x3104]
sub ecx, dword [ebp - 0x3120]
mov dword [ebp - 0x3124], ecx
mov edx, dword [ebp - 0x3124]
push edx
lea eax, [ebp - 0x9dc]
push eax
mov ecx, dword [ebp - 0x3110]
add ecx, 0x18
push ecx
call fcn.00409230
add esp, 0xc
xor edx, edx
jne 0x407565
mov eax, dword [ebp - 0x3108]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x30f9]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d181f
mov esp, ebp
pop ebp
ret