Function at 0x4bb1a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x53f4a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x7f02
xor ebx, ebx
push ebx
mov edi, ecx
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x3c], eax
cmp dword [ebp + 0xc], ebx
je 0x4bb1e6
mov ecx, dword [edi + 4]
push ebx
push ebx
push 0xb
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [edi + 4]
push 0xffff0000
push ebx
push 0x1101
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x30], eax
mov eax, 0x20
xor ecx, ecx
xor edx, edx
mov word [ebp - 0x24], ax
xor eax, eax
mov dword [ebp - 0x28], 1
mov word [ebp - 0x22], cx
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], ebx
mov word [ebp - 0x1c], dx
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x30]
test dword [ebp - 0x28], ecx
je 0x4bb355
add eax, 0x41
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x24]
lea edx, [eax + 2]
jmp 0x4bb250
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4bb250
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x20]
call fcn.00403060
push 2
push 0x514eac
lea ecx, [ebp - 0x20]
call fcn.00468840
mov esi, dword [ebp - 0xc]
mov edx, esi
cmp esi, 3
jb 0x4bb28a
mov edx, 3
cmp dword [ebp - 8], 8
mov ecx, dword [ebp - 0x1c]
jae 0x4bb296
lea ecx, [ebp - 0x1c]
mov eax, 0x514ea4
cmp edx, ebx
jbe 0x4bb2c9
nop
mov bx, word [ecx]
cmp bx, word [eax]
jne 0x4bb2b7
add ecx, 2
add eax, 2
sub edx, 1
jne 0x4bb2a0
xor ebx, ebx
jmp 0x4bb2c9
mov cx, word [ecx]
cmp cx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
inc eax
xor ebx, ebx
cmp eax, ebx
jne 0x4bb2da
cmp esi, 3
jb 0x4bb2da
xor eax, eax
cmp esi, 3
setne al
cmp eax, ebx
je 0x4bb355
push 3
push 0x514e9c
push esi
push ebx
lea ecx, [ebp - 0x20]
call fcn.00460b20
test eax, eax
je 0x4bb355
cmp dword [edi + 0x48], ebx
jne 0x4bb30c
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x4bb300
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x4bb358
mov edx, dword [ebp - 0x34]
push edx
sub esp, 0x1c
mov ecx, esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x20]
mov esi, 7
xor eax, eax
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push edx
mov word [ecx + 4], ax
call fcn.00402df0
sub esp, 0x1c
mov ecx, esp
push ebx
xor eax, eax
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push 0x52a4dc
mov word [ecx + 4], ax
call fcn.00403060
mov ecx, edi
call fcn.004baec0
shl dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x2c]
inc eax
cmp eax, 0x20
mov dword [ebp - 0x2c], eax
jl 0x4bb22f
cmp dword [ebp + 0xc], ebx
je 0x4bb37c
mov ecx, dword [edi + 4]
push ebx
push 1
push 0xb
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 8], 8
jb 0x4bb38e
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004ea481
add esp, 4
mov ecx, dword [ebp - 0x3c]
xor eax, eax
push ecx
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], ebx
mov word [ebp - 0x1c], ax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret 8