Function at 0x4076a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x184]
push 0x100
xor ebx, ebx
mov dword [ebp - 0x194], ecx
mov esi, edx
mov dword [ebp - 0x188], edi
push ebx
push eax
mov dword [ebp - 0x198], esi
call fcn.004ab0f0
mov eax, dword [str..:]
add esp, 0xc
mov dword [ebp - 0x10], eax
mov ax, word [0x52b05c]
mov word [ebp - 0xc], ax
mov al, byte [0x52b05e]
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x190], ebx
mov byte [ebp - 0xa], al
cmp dword [0x58b648], ebx
jne 0x407805
xor esi, esi
xor edi, edi
push esi
push esi
push 0xffffffffffffffff
push str.Ntdll
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18c], eax
cmp eax, 1
jle 0x4077df
push 2
push eax
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x4077df
push dword [ebp - 0x18c]
push esi
push 0xffffffffffffffff
push str.Ntdll
push edi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, dword [ebp - 0x18c]
jne 0x4077df
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
jne 0x4077df
cmp word [0x55a758], 0x40
jb 0x40779b
push str.Error:_MAX_LIBRARY_HANDLES_is_too_small_n
call fcn.0044b0b0
add esp, 4
jmp 0x4077df
push 0x800
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4077cb
mov cx, word [0x55a758]
movzx eax, cx
inc cx
mov word [0x55a758], cx
mov dword [eax*4 + 0x5a29e0], edi
jmp 0x4077df
call fcn.0044b6b0
push eax
push esi
push str.Unable_to_load__S.dll:__s
call fcn.0044b0b0
add esp, 0xc
push esi
call fcn.004d1211
add esp, 4
push str.NtQueryVolumeInformationFile
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [ebp - 0x188]
mov esi, dword [ebp - 0x198]
mov dword [0x58b648], eax
test esi, esi
je 0x40780b
mov byte [esi], bl
test edi, edi
je 0x407811
mov dword [edi], ebx
mov esi, dword [ebp - 0x194]
test esi, esi
js 0x407a90
cmp esi, 0x80
jb 0x40782f
cmp esi, 0xc0
jbe 0x407846
push 0x45a
push str.D:_a_rufus_rufus_srcdrive.c
push str._DriveIndex___DRIVE_INDEX_MIN____DriveIndex___DRIVE_INDEX_MAX_
call fcn.004dfbbc
add esp, 0xc
lea eax, [esi - 0x80]
cmp eax, 0x40
ja 0x407a90
lea eax, [ebp - 0x84]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x1a0], eax
test eax, eax
jne 0x407883
call fcn.0044b6b0
push eax
push str.GetLogicalDriveStrings_failed:__s
call fcn.0044b0b0
add esp, 8
jmp 0x407a90
cmp eax, 0x69
jbe 0x40789d
push 0x69
push eax
push str.GetLogicalDriveStrings:_Buffer_too_small__required__lu_vs.__zu_
call fcn.0044b0b0
add esp, 0xc
jmp 0x407a90
mov al, byte [ebp - 0x84]
lea esi, [ebp - 0x84]
test al, al
je 0x407a06
movsx eax, al
push eax
call fcn.004e1260
add esp, 4
test eax, eax
je 0x407949
movsx eax, byte [esi]
push eax
call fcn.004e01e0
add esp, 4
mov byte [esi], al
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebx, eax
cmp ebx, 2
je 0x4078e6
cmp ebx, 3
jne 0x407949
movsx eax, byte [esi]
push eax
call fcn.004e01e0
add esp, 4
push eax
push str.._c:
lea eax, [ebp - 0x10]
push 7
push eax
call fcn.004050d0
sub esp, 8
mov byte [ebp - 0xa], 0
lea ecx, [ebp - 0x10]
call fcn.0044c1c0
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
jne 0x407958
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
jne 0x407943
movsx eax, byte [esi]
push eax
call fcn.004e01e0
add esp, 4
push eax
push str.Warning:_Time_out_while_trying_to_query_drive__c
call fcn.0044b0b0
add esp, 8
mov edi, dword [ebp - 0x188]
test esi, esi
jne 0x4079e8
xor ecx, ecx
jmp 0x4079f9
mov eax, dword [0x58b648]
test eax, eax
je 0x407983
push 4
push 8
lea ecx, [ebp - 0x1a8]
push ecx
lea ecx, [ebp - 0x1b0]
push ecx
push edi
call eax
test eax, eax
jne 0x407983
test byte [ebp - 0x1a4], 4
jne 0x407943
lea edx, [ebp - 0x10]
mov ecx, edi
call fcn.00407580
mov dword [ebp - 0x18c], eax
test edi, edi
je 0x4079a4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18c]
mov ecx, dword [ebp - 0x194]
add ecx, 0xffffff80
cmp eax, ecx
jne 0x407943
inc dword [ebp - 0x190]
mov ecx, dword [ebp - 0x198]
test ecx, ecx
je 0x4079d3
mov edx, dword [ebp - 0x19c]
mov al, byte [esi]
mov byte [ecx + edx], al
inc edx
mov dword [ebp - 0x19c], edx
mov edi, dword [ebp - 0x188]
test edi, edi
je 0x407949
mov dword [edi], ebx
jmp 0x407949
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4079f0
sub ecx, edx
inc esi
add esi, ecx
mov al, byte [esi]
test al, al
jne 0x4078b1
cmp dword [ebp - 0x190], 0
mov ebx, 1
jne 0x407a90
test edi, edi
je 0x407a90
mov ecx, dword [ebp - 0x194]
xor edx, edx
push 0
push 0
call fcn.00405fd0
add esp, 8
mov esi, eax
lea eax, [ebp - 0x1a0]
push 0
push eax
push 0x100
lea eax, [ebp - 0x184]
push eax
push 0
push 0
push 0x700a0
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebx, eax
cmp esi, 0xffffffff
je 0x407a65
test esi, esi
je 0x407a65
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x407a90
cmp dword [ebp - 0x1a0], 0
jbe 0x407a90
mov eax, dword [ebp - 0x17c]
cmp eax, 0xc
jne 0x407a85
mov dword [edi], 3
jmp 0x407a90
cmp eax, 0xb
jne 0x407a90
mov dword [edi], 2
mov eax, dword [ebp - 0x198]
test eax, eax
je 0x407aa4
mov ecx, dword [ebp - 0x19c]
mov byte [eax + ecx], 0
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8b60
mov esp, ebp
pop ebp
ret