Function at 0x4056a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x4f22ec]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x184]
push edi
push 0x100
xor ebx, ebx
mov dword [ebp - 0x19c], edx
push ebx
push eax
mov dword [ebp - 0x198], ecx
mov dword [ebp - 0x194], esi
call fcn.00493600
mov eax, dword [str..:]
xor edi, edi
mov dword [ebp - 0x10], eax
add esp, 0xc
mov ax, word [0x4ce794]
mov word [ebp - 0xc], ax
mov al, byte [0x4ce796]
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x18c], edi
mov byte [ebp - 0xa], al
cmp dword [0x52bc90], ebx
jne 0x40581c
xor esi, esi
push esi
push esi
push 0xffffffffffffffff
push str.Ntdll
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x190], eax
cmp eax, 1
jle 0x4057fa
push 2
push eax
call fcn.0049570f
mov edi, eax
add esp, 8
test edi, edi
je 0x4057fa
push dword [ebp - 0x190]
push edi
push 0xffffffffffffffff
push str.Ntdll
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, dword [ebp - 0x190]
jne 0x4057fa
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x4057fa
cmp word [0x4fad98], 0x40
jb 0x40579d
push str.Error:_MAX_LIBRARY_HANDLES_is_too_small_n
call fcn.004407e0
add esp, 4
jmp 0x4057fa
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4057e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ax, 0x57
jne 0x4057ca
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x4057e0
call fcn.00440bb0
push eax
push edi
push str.Unable_to_load__S.dll:__s
call fcn.004407e0
add esp, 0xc
jmp 0x4057fa
mov cx, word [0x4fad98]
movzx eax, cx
inc cx
mov word [0x4fad98], cx
mov dword [eax*4 + 0x542fc0], esi
push edi
call fcn.004998ec
add esp, 4
push str.NtQueryVolumeInformationFile
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [ebp - 0x194]
xor edi, edi
mov dword [0x52bc90], eax
mov eax, dword [ebp - 0x19c]
test eax, eax
je 0x405828
mov byte [eax], bl
test esi, esi
je 0x40582e
mov dword [esi], ebx
mov esi, dword [ebp - 0x198]
test esi, esi
js 0x405af8
cmp esi, 0x80
jb 0x40584c
cmp esi, 0xc0
jbe 0x405863
push 0x45a
push str.C:UsersgamerDownloads_rufus72_rufus_7_srcdrive.c
push str._DriveIndex___DRIVE_INDEX_MIN____DriveIndex___DRIVE_INDEX_MAX_
call fcn.0049ed6b
add esp, 0xc
lea eax, [esi - 0x80]
cmp eax, 0x40
ja 0x405af8
lea eax, [ebp - 0x84]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov dword [ebp - 0x1a0], eax
test eax, eax
jne 0x4058a0
call fcn.00440bb0
push eax
push str.GetLogicalDriveStrings_failed:__s
call fcn.004407e0
add esp, 8
jmp 0x405af8
cmp eax, 0x69
jbe 0x4058ba
push 0x69
push eax
push str.GetLogicalDriveStrings:_Buffer_too_small__required__lu_vs.__zu_
call fcn.004407e0
add esp, 0xc
jmp 0x405af8
mov al, byte [ebp - 0x84]
lea esi, [ebp - 0x84]
test al, al
je 0x40598f
xor edx, edx
movsx eax, al
mov ebx, edx
push eax
call fcn.0049f230
add esp, 4
test eax, eax
je 0x405ac4
movsx eax, byte [esi]
push eax
call fcn.0049f025
add esp, 4
mov byte [esi], al
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ebx, eax
cmp ebx, 2
je 0x405907
cmp ebx, 3
jne 0x405968
movsx eax, byte [esi]
push eax
call fcn.0049f025
add esp, 4
push eax
push str.._c:
lea eax, [ebp - 0x10]
push 7
push eax
call fcn.00403820
sub esp, 8
mov byte [ebp - 0xa], 0
lea ecx, [ebp - 0x10]
call fcn.004416c0
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
jne 0x405a26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
jne 0x405968
movsx eax, byte [esi]
push eax
call fcn.0049f025
add esp, 4
push eax
push str.Warning:_Time_out_while_trying_to_query_drive__c
call fcn.004407e0
add esp, 8
mov edx, dword [ebp - 0x188]
mov ecx, esi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405973
sub ecx, edi
mov edi, dword [ebp - 0x18c]
inc esi
add esi, ecx
mov al, byte [esi]
test al, al
jne 0x4058d0
mov ebx, 1
test edi, edi
jne 0x405af8
mov edi, dword [ebp - 0x194]
test edi, edi
je 0x405af8
mov ecx, dword [ebp - 0x198]
xor edx, edx
push 0
push 0
call fcn.00404180
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 0x4059f7
test esi, esi
je 0x4059f7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x405af8
cmp dword [ebp - 0x1a0], 0
jbe 0x405af8
mov eax, dword [ebp - 0x17c]
cmp eax, 0xc
jne 0x405aed
mov dword [edi], 3
jmp 0x405af8
mov eax, dword [0x52bc90]
test eax, eax
je 0x405a55
push 4
push 8
lea ecx, [ebp - 0x1a8]
push ecx
lea ecx, [ebp - 0x1b0]
push ecx
push edi
call eax
test eax, eax
jne 0x405a55
test byte [ebp - 0x1a4], 4
jne 0x405968
lea edx, [ebp - 0x10]
mov ecx, edi
call fcn.00405580
mov dword [ebp - 0x190], eax
test edi, edi
je 0x405a76
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x190]
mov ecx, dword [ebp - 0x198]
add ecx, 0xffffff80
cmp eax, ecx
jne 0x405968
inc dword [ebp - 0x18c]
mov edx, dword [ebp - 0x19c]
test edx, edx
je 0x405aa9
mov ecx, dword [ebp - 0x188]
mov al, byte [esi]
mov byte [edx + ecx], al
inc ecx
mov dword [ebp - 0x188], ecx
mov eax, dword [ebp - 0x194]
mov edx, dword [ebp - 0x188]
test eax, eax
je 0x40596e
mov dword [eax], ebx
jmp 0x40596e
mov dword [ebp - 0x18c], edi
mov edx, ebx
mov dword [ebp - 0x188], edx
test esi, esi
jne 0x40596e
xor ecx, ecx
mov dword [ebp - 0x188], edx
mov dword [ebp - 0x18c], edi
jmp 0x405982
cmp eax, 0xb
jne 0x405af8
mov dword [edi], 2
mov edx, dword [ebp - 0x19c]
test edx, edx
je 0x405b0c
mov eax, dword [ebp - 0x188]
mov byte [edx + eax], 0
mov ecx, dword [ebp - 8]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491940
mov esp, ebp
pop ebp
ret