Function at 0x403948
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4d8300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0xc]
xor bl, bl
or edi, 0xffffffff
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x118], eax
mov byte [ebp - 0x111], bl
test esi, esi
je 0x403c8f
push esi
call fcn.004816f0
pop ecx
cmp eax, 5
jb 0x403c8f
cmp byte [esi], 0x5c
jne 0x403c8f
cmp byte [esi + 1], 0x5c
jne 0x403c8f
cmp byte [esi + 3], 0x5c
jne 0x403c8f
push 0xe
push str._GLOBALROOT
push esi
call fcn.00487510
add esp, 0xc
test eax, eax
jne 0x403a2f
lea edi, [esi + 0xe]
mov ebx, 0x104
test edi, edi
je 0x4039eb
push edi
call fcn.004816f0
inc eax
pop ecx
cmp eax, ebx
jae 0x4039ee
push edi
call fcn.004816f0
pop ecx
inc eax
jmp 0x4039f0
mov eax, ebx
push eax
lea eax, [ebp - 0x110]
push edi
push eax
call fcn.00476fc0
add esp, 0xc
test edi, edi
jne 0x403a09
xor eax, eax
jmp 0x403a1c
push edi
call fcn.004816f0
inc eax
pop ecx
cmp eax, ebx
jae 0x403a1f
push edi
call fcn.004816f0
pop ecx
lea ebx, [eax + 1]
mov byte [ebp + ebx - 0x111], 0
mov bl, byte [ebp - 0x111]
jmp 0x403a5c
push 0x104
lea eax, [ebp - 0x110]
push eax
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x403a5c
lea eax, [ebp - 0x110]
push 0x4b44ac
push eax
call fcn.00486c30
pop ecx
pop ecx
and dword [ebp - 0x11c], 0
mov ecx, SHChangeNotifyRegister
cmp dword [ebp - 0x128], 0
mov eax, 0xc0000000
push 3
cmovne ecx, eax
mov dword [ebp - 0x120], ecx
pop edx
push 0
push 0x80
xor eax, eax
push edx
inc eax
cmp dword [ebp - 0x118], 0
push 0
cmovne eax, edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403b71
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x403ac5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x403b58
mov eax, dword [ebp - 0x11c]
test eax, eax
jne 0x403af0
lea eax, [ebp - 0x110]
push eax
push str.Notice:_Volume_Device_Path_is__s
call fcn.0042ed57
push esi
push str.Waiting_for_access_on__s...
call fcn.0042ed57
add esp, 0x10
jmp 0x403b2f
cmp dword [ebp - 0x118], 0
jne 0x403b2f
cmp eax, 0x32
jle 0x403b2f
push str.Warning:_Could_not_obtain_exclusive_rights._Retrying_with_write_sharing_enabled...
call fcn.0042ed57
pop ecx
push 0
push ecx
push ecx
mov edx, 0x2710
mov dword [ebp - 0x118], 1
lea ecx, [ebp - 0x110]
call fcn.0041c637
mov bl, al
add esp, 0xc
or bl, 0x40
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 0x120]
inc eax
mov dword [ebp - 0x11c], eax
push 3
pop edx
cmp eax, 0x96
jl 0x403a80
call fcn.0042fc51
push eax
push esi
push 0x4b4544
call fcn.0042ed57
add esp, 0xc
jmp 0x403c8f
cmp dword [ebp - 0x128], 0
je 0x403b9d
cmp dword [ebp - 0x118], 0
mov ecx, str.exclusive
mov eax, str.shared
cmove eax, ecx
push eax
push esi
push str.Opened__s_for__s_write_access
call fcn.0042ed57
add esp, 0xc
cmp dword [ebp - 0x124], 0
je 0x403c8f
xor ecx, ecx
lea eax, [ebp - 0x12c]
push ecx
push eax
push ecx
push ecx
push ecx
push ecx
push 0x90083
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x403bd3
push str.I_O_boundary_checks_disabled
call fcn.0042ed57
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
add eax, 0x3a98
mov ecx, edx
mov dword [ebp - 0x120], eax
adc ecx, 0
mov dword [ebp - 0x124], ecx
push 0
lea eax, [ebp - 0x12c]
push eax
push 0
push 0
push 0
push 0
push 0x90018
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x403c8f
test dword [0x4dc5d0], 0x80000000
jne 0x403c3c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
cmp edx, dword [ebp - 0x124]
jb 0x403bef
ja 0x403c3c
cmp eax, dword [ebp - 0x120]
jb 0x403bef
call fcn.0042fc51
push eax
push esi
push str.Could_not_lock_access_to__s:__s
call fcn.0042ed57
add esp, 0xc
test dword [0x4dc5d0], 0x80000000
jne 0x403c79
test bl, bl
jne 0x403c79
push 0
push ecx
push ecx
mov edx, 0x2710
lea ecx, [ebp - 0x110]
call fcn.0041c637
add esp, 0xc
mov bl, al
and bl, 7
cmp bl, 1
je 0x403c8f
test edi, edi
je 0x403c8f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475c80
leave
ret