Function at 0x42a9e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x52b9ec]
push ebx
push esi
mov word [ebp - 0x148], ax
xor ebx, ebx
mov al, byte [0x52b9ee]
push edi
mov edi, dword [0x59d2d4]
mov byte [ebp - 0x146], al
cmp dword [0x59bd78], ebx
jne 0x42aa3e
push str.Process_search_thread_is_not_started_
call fcn.0044b0b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
cmp dword [0x59bd94], ebx
jne 0x42aa5d
push 0x344
push str.D:_a_rufus_rufus_srcprocess.c
push str.blocking_process.hLock___NULL
call fcn.004dfbbc
add esp, 0xc
push 4
push 0x10
call fcn.004b6706
add esp, 8
mov dword [ebp - 0x14c], eax
test eax, eax
je 0x42aa2b
test edi, edi
js 0x42aac8
cmp edi, 0x80
jb 0x42aa87
cmp edi, 0xc0
jbe 0x42aa9e
push 0xe0
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, [edi - 0x80]
cmp eax, 0x40
ja 0x42aac8
push eax
push str..PhysicalDrive_lu
lea eax, [ebp - 0x1c]
push 0x18
push eax
call fcn.004050d0
mov byte [ebp - 5], bl
lea eax, [ebp - 0x1c]
push eax
call fcn.004e03cf
add esp, 0x14
jmp 0x42aaca
xor eax, eax
push 0x104
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x144], eax
push ecx
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x42ab75
cmp byte [ebp - 0x140], bl
jne 0x42ab0c
push 2
push 1
call fcn.004b6706
add esp, 8
mov esi, eax
jmp 0x42ab62
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x140]
push eax
push 0
push 0xfde9
call esi
mov ebx, eax
cmp ebx, 1
jle 0x42ab60
push 2
push ebx
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x42ab60
push ebx
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x140]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0xfde9
call eax
cmp eax, ebx
je 0x42ab62
push esi
call fcn.004d1211
add esp, 4
xor esi, esi
mov eax, dword [ebp - 0x14c]
mov ebx, 1
mov dword [eax], esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp - 0x144]
call fcn.004d1211
add esp, 4
lea edx, [ebp - 0x38]
mov ecx, edi
push 0
call fcn.004076a0
lea edi, [ebp - 0x38]
add esp, 4
mov dword [ebp - 0x144], edi
nop dword [eax + eax]
mov al, byte [edi]
test al, al
je 0x42ac62
mov byte [ebp - 0x148], al
lea eax, [ebp - 0x140]
push 0x104
push eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x42ac4c
cmp byte [ebp - 0x140], 0
jne 0x42abe6
push 2
push 1
call fcn.004b6706
add esp, 8
mov esi, eax
jmp 0x42ac42
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x140]
push eax
push 0
push 0xfde9
call esi
mov edi, eax
cmp edi, 1
jle 0x42ac3a
push 2
push edi
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x42ac3a
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x140]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0xfde9
call eax
cmp eax, edi
je 0x42ac3c
push esi
call fcn.004d1211
add esp, 4
xor esi, esi
mov edi, dword [ebp - 0x144]
mov eax, dword [ebp - 0x14c]
mov dword [eax + ebx*4], esi
inc ebx
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
inc edi
mov dword [ebp - 0x144], edi
cmp ebx, 0x10
jb 0x42aba0
push 0x7d0
push dword [0x59bd94]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42aca5
push str.Could_not_obtain_process_search_lock
call fcn.0044b0b0
add esp, 4
push dword [ebp - 0x14c]
call fcn.004d1211
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
mov eax, dword [0x59bd90]
test eax, eax
je 0x42acd1
xor esi, esi
cmp dword [0x59bd8c], esi
jbe 0x42acd1
push dword [eax + esi*4]
call fcn.004d1211
mov eax, dword [0x59bd90]
inc esi
add esp, 4
cmp esi, dword [0x59bd8c]
jb 0x42acb8
push eax
call fcn.004d1211
mov eax, dword [ebp - 0x14c]
add esp, 4
inc dword [0x59bd84]
mov dword [0x59bd90], eax
mov dword [0x59bd8c], ebx
push dword [0x59bd98]
mov dword [0x59bd80], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x42ad1e
call fcn.0044b6b0
push eax
push str.Could_not_signal_start_event_to_process_search:__s
call fcn.0044b0b0
add esp, 8
push dword [0x59bd94]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8b60
mov esp, ebp
pop ebp
ret