Function at 0x4081a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x43d004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov bh, byte [ebp + 8]
lea eax, [ebp - 0x190]
push esi
push edi
push 0x104
push 0
xor bl, bl
mov byte [ebp - 0x193], dl
push eax
mov esi, ecx
mov byte [ebp - 0x192], bh
mov byte [ebp - 0x191], bl
call fcn.00418c40
add esp, 0xc
lea eax, [ebp - 0x88]
push esi
push str..PhysicalDrive_d
push 0x80
push eax
call fcn.00401010
add esp, 0x10
lea eax, [ebp - 0x190]
push 0x104
push eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x408248
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.QueryDosDeviceA_failed_error:_u
call fcn.0040f530
push 0x436d34
lea eax, [ebp - 0x190]
push 0x104
push eax
call fcn.0041c016
add esp, 0x14
jmp 0x40825c
lea eax, [ebp - 0x190]
push eax
push str.QueryDosDeviceA_success__s
call fcn.0040f530
add esp, 8
xor esi, esi
mov ecx, 0x80000000
test bh, bh
mov eax, 0xc0000000
cmovne ecx, eax
mov dword [ebp - 0x198], ecx
xor eax, eax
test bl, bl
push 0
push 0xa0000080
setne al
push 3
push 0
lea eax, [eax*2 + 1]
push eax
push ecx
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebx, eax
lea eax, [ebp - 0x88]
push ebx
push eax
push esi
push str.__d__CreateFileA__s_code:_u__p
call fcn.0040f530
add esp, 0x14
cmp edi, 0xffffffff
jne 0x408355
cmp ebx, 0x20
je 0x4082cf
cmp ebx, 5
jne 0x408335
test esi, esi
jne 0x4082f6
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x88]
push eax
push str.Waiting_for_access_on__s___s_...
call fcn.0040f530
mov bl, byte [ebp - 0x191]
add esp, 0xc
jmp 0x40831a
mov bl, byte [ebp - 0x191]
test bl, bl
jne 0x40831a
cmp esi, 0x32
jle 0x40831a
push str.Warning:_Could_not_obtain_exclusive_rights._Retrying_with_write_sharing_enabled...
call fcn.0040f530
mov bl, 1
add esp, 4
mov byte [ebp - 0x191], bl
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x198]
inc esi
cmp esi, 0x96
jl 0x408273
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x88]
push eax
push str.Could_not_open__s__u
call fcn.0040f530
add esp, 0xc
jmp 0x40843e
cmp byte [ebp - 0x192], 0
je 0x408387
cmp byte [ebp - 0x191], 0
mov ecx, str.exclusive
mov eax, str.shared
cmove eax, ecx
push eax
lea eax, [ebp - 0x88]
push eax
push str.Opened__s_for__s_write_access
call fcn.0040f530
add esp, 0xc
cmp byte [ebp - 0x193], 0
je 0x408472
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea eax, [ebp - 0x19c]
push 0
push eax
push 0
push 0
push 0
push 0
push 0x90083
push edi
call esi
test eax, eax
je 0x4083c4
push str.I_O_boundary_checks_disabled
call fcn.0040f530
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ebx, eax
add ebx, 0x3a98
adc edx, 0
mov dword [ebp - 0x198], edx
nop dword [eax + eax]
push 0
lea eax, [ebp - 0x19c]
push eax
push 0
push 0
push 0
push 0
push 0x90018
push edi
call esi
test eax, eax
jne 0x408465
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp edx, dword [ebp - 0x198]
jb 0x4083e0
ja 0x408419
cmp eax, ebx
jb 0x4083e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x88]
push eax
push str.Could_not_lock_access_to__s__u
call fcn.0040f530
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
lea eax, [ebp - 0x190]
push eax
push str.Can_get_handle_of__s__maybe_some_process_control_it.
call fcn.0040f530
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417710
mov esp, ebp
pop ebp
ret
push str.FSCTL_LOCK_VOLUME_success
call fcn.0040f530
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417710
mov esp, ebp
pop ebp
ret