Function at 0x4bb840
Capabilities:
Check if file exists
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d5412
push eax
mov dword fs:[0], esp
sub esp, 0x44c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x5040a8
call fcn.0042d3e0
xor ebx, ebx
test eax, eax
je 0x4bb9a1
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x4bb881
mov eax, 0x4d68e8
lea ecx, [esp + 0x5c]
push 0x400
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x4bb9a1
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebp
cmp eax, 2
jne 0x4bbaf9
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], dl
call fcn.00406ad6
mov edi, str.Device_
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x464], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], ebx
push ecx
push str.Device_
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], ebx
call fcn.0040695a
mov eax, dword [0x4d68ec]
lea ecx, [esp + 0x14]
push eax
push ebx
push esi
mov dword [esp + 0x470], 1
call fcn.00430660
mov eax, dword [esp + 0x18]
mov ecx, 0x4d68e8
cmp eax, ebx
je 0x4bb915
mov ecx, eax
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x4bb921
mov eax, 0x4d68e8
push ecx
push eax
push 1
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x4bb976
call ebp
push eax
push str.CDriver:_DefineDosDevice_error:__d_n
push 0x503ff0
call fcn.00423100
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x464], 0xffffffff
je 0x4bb964
push eax
call fcn.004be17b
add esp, 4
mov dword [esp + 0x24], ebx
push 1
lea ecx, [esp + 0x18]
call fcn.00406ad6
xor eax, eax
jmp 0x4bbb1e
mov eax, dword [esp + 0x24]
mov dword [esp + 0x464], 0xffffffff
cmp eax, ebx
je 0x4bb996
push eax
call fcn.004be17b
add esp, 4
mov dword [esp + 0x24], ebx
push 1
lea ecx, [esp + 0x18]
call fcn.00406ad6
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x30], cl
lea ecx, [esp + 0x30]
call fcn.00406ad6
mov edi, str.._
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x464], 2
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x3c], ebx
push ecx
push str.._
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], ebx
call fcn.0040695a
mov edx, dword [0x4d68ec]
lea ecx, [esp + 0x2c]
push edx
push ebx
push esi
mov dword [esp + 0x470], 3
call fcn.00430660
mov ecx, 0x5040a8
xor edi, edi
call fcn.0042d400
test eax, eax
je 0x4bba81
lea eax, [esp + 0x13]
lea ecx, [esp + 0x44]
push eax
call fcn.0041dbef
mov edi, str..VxD
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x464], 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x54], ebx
push ecx
push str..VxD
lea ecx, [esp + 0x4c]
mov dword [esp + 0x60], ebx
call fcn.0040695a
mov ecx, dword [0x4d68ec]
lea edx, [esp + 0x44]
push ecx
push ebx
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x470], 5
call fcn.00430660
lea ecx, [esp + 0x44]
mov byte [esp + 0x464], 3
call fcn.00405d6e
mov edi, 0x40000000
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x4bba8e
mov eax, 0x4d68e8
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x60]
push 0xffffffffffffffff
push edi
push 3
push ebx
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bbaca
mov eax, dword [esp + 0x30]
cmp eax, ebx
jne 0x4bbab7
mov eax, 0x4d68e8
push eax
push str.CreateFile_call_failed_to_open__s
push 0x503ff0
call fcn.004234a0
add esp, 0xc
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x4bbadf
push eax
call fcn.004be17b
add esp, 4
mov dword [esp + 0x3c], ebx
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x4bbb1c
mov al, byte [ecx - 1]
cmp al, bl
je 0x4bbb12
cmp al, 0xff
je 0x4bbb12
dec al
mov byte [ecx - 1], al
jmp 0x4bbb1c
call ebp
push eax
push str.CDriver:_QueryDosDevice_error:__d_n
push 0x503ff0
call fcn.00423100
add esp, 0xc
xor eax, eax
jmp 0x4bbb1e
dec ecx
push ecx
call fcn.004be17b
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x458
ret