Function at 0x4cb090
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514a31
mov eax, dword fs:[0]
push eax
mov eax, 0x3190
call fcn.004e1f60
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x559330], 1
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x3164], esi
mov dword [ebp - 0x3168], edi
mov dword [ebp - 0x3174], eax
mov dword [ebp - 0x3178], 0
jne 0x4cb10a
cmp dword [ebx + 0xc], 0
je 0x4cb10a
push dword [ebp + 0x20]
push edi
push esi
call fcn.004ccb60
add esp, 0xc
test eax, eax
je 0x4cb12c
push edi
call fcn.00429ee0
add esp, 4
test eax, eax
je 0x4cb134
mov ecx, dword [ebp + 0x20]
test ecx, ecx
jne 0x4cb12c
push esi
push str.ERR_VOL_ALREADY_MOUNTED
call fcn.00419a00
add esp, 8
or eax, 0xffffffff
jmp 0x4cb9f1
push dword [ebp + 0xc]
call fcn.00429be0
add esp, 4
test eax, eax
jne 0x4cb160
mov ecx, dword [ebp + 0x20]
test ecx, ecx
jne 0x4cb12c
push esi
push str.DRIVE_LETTER_UNAVAILABLE
call fcn.00419a00
add esp, 8
or eax, 0xffffffff
jmp 0x4cb9f1
mov eax, dword [ebp - 0x3174]
test eax, eax
je 0x4cb16f
cmp dword [eax], 0
jne 0x4cb1b3
push 0
lea eax, [ebp - 0x3198]
push eax
push 0
push 0
push 0
push 0
push 0x22202c
push dword [0x559328]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
jne 0x4cb1b3
cmp dword [ebp + 0x24], eax
je 0x4cb1ac
mov ecx, dword [ebp + 0x20]
test ecx, ecx
jne 0x4cb1ac
push 3
push esi
call fcn.00417830
add esp, 8
xor eax, eax
jmp 0x4cb9f1
push 0x8ea
lea eax, [ebp - 0x3160]
push 0
push eax
call fcn.004e46b0
xor eax, eax
cmp dword [ebp + 0x18], eax
push edi
sete al
mov dword [ebp - 0x28f2], eax
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x28de], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x288e], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x288a], eax
call fcn.00429e10
add esp, 0x10
test eax, eax
je 0x4cb22e
mov eax, dword [ebp + 0x28]
or eax, dword [ebp + 0x2c]
jne 0x4cb22e
mov eax, dword [ebp + 0x30]
or eax, dword [ebp + 0x34]
jne 0x4cb22e
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x28]
push eax
push edi
call fcn.004cac60
add esp, 0xc
test eax, eax
je 0x4cb22e
xorps xmm0, xmm0
movlpd qword [ebp + 0x28], xmm0
movlpd qword [ebp + 0x30], xmm0
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x2886], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x2882], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x287e], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x287a], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2902], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x2906], eax
mov eax, dword [ebp - 0x3174]
test eax, eax
je 0x4cb2a8
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x294e], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x293e], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ebp - 0x292e], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [ebp - 0x291e], xmm0
movq xmm0, qword [eax + 0x40]
movq qword [ebp - 0x290e], xmm0
jmp 0x4cb2b2
mov dword [ebp - 0x294e], 0
mov eax, dword [ebx]
test eax, eax
jne 0x4cb302
cmp dword [ebx + 0x1c], eax
je 0x4cb302
movups xmm0, xmmword [ebx + 0x24]
mov dword [ebp - 0x28da], 1
movups xmmword [ebp - 0x28d6], xmm0
movups xmm0, xmmword [ebx + 0x34]
movups xmmword [ebp - 0x28c6], xmm0
movups xmm0, xmmword [ebx + 0x44]
movups xmmword [ebp - 0x28b6], xmm0
movups xmm0, xmmword [ebx + 0x54]
movups xmmword [ebp - 0x28a6], xmm0
movq xmm0, qword [ebx + 0x64]
movq qword [ebp - 0x2896], xmm0
jmp 0x4cb30c
mov dword [ebp - 0x28da], 0
mov dword [ebp - 0x28fa], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x28f6], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x28ea], eax
mov dword [ebp - 0x28ee], 1
call fcn.0041b290
cmp eax, 5
jne 0x4cb347
call fcn.0041b2a0
neg eax
sbb eax, eax
and dword [ebp - 0x28ee], eax
lea eax, [ebp - 0x81c]
push eax
push 2
push edi
call fcn.004293c0
lea eax, [ebp - 0x2028]
push eax
push 0
push edi
call fcn.004293c0
lea eax, [ebp - 0x81c]
push eax
call fcn.00429b60
add esp, 0x1c
mov dword [ebp - 0x3180], eax
test eax, eax
jne 0x4cb41f
push 0x400
lea eax, [ebp - 0x1824]
push eax
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumePathNameW]
test eax, eax
je 0x4cb41f
lea eax, [ebp - 0x316c]
push eax
push eax
lea eax, [ebp - 0x3184]
push eax
lea eax, [ebp - 0x316c]
push eax
lea eax, [ebp - 0x1824]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDiskFreeSpaceW]
mov ecx, dword [ebp - 0x28fe]
test eax, eax
cmovne ecx, dword [ebp - 0x3184]
cmp dword [ebp - 0x28fa], 0
mov dword [ebp - 0x28fe], ecx
jne 0x4cb41f
push 0
push 0
lea eax, [ebp - 0x3188]
push eax
lea eax, [ebp - 0x316c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x1824]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
je 0x4cb41f
mov eax, dword [ebp - 0x3188]
shr eax, 0x13
and eax, 1
mov dword [ebp - 0x28fa], eax
xor ecx, ecx
movzx eax, word [ebp + ecx - 0x2028]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x3152], ax
test ax, ax
jne 0x4cb421
cmp dword [ebx + 0xc], 0
je 0x4cb46b
lea eax, [ebp - 0x28e2]
push eax
lea eax, [ebp - 0x3150]
push 0x51ac6c
push eax
call fcn.004cbb10
add esp, 0xc
cmp eax, 1
jne 0x4cb64e
mov dword [ebp - 0x28e6], eax
jmp 0x4cb475
mov dword [ebp - 0x28e6], 0
push dword [ebx + 8]
lea eax, [ebp - 0x3194]
push eax
push edi
call fcn.004296e0
add esp, 0xc
test eax, eax
je 0x4cb4b2
push 0
push 0x200
push dword [ebp - 0x3190]
push dword [ebp - 0x3194]
call fcn.004e2bf0
or eax, edx
je 0x4cb4b2
cmp dword [ebp + 0x20], 0
je 0x4cb661
movzx eax, byte [ebp - 0x2909]
push 0
mov dword [ebp - 0x3170], eax
lea eax, [ebp - 0x319c]
push eax
push 0x8ea
lea eax, [ebp - 0x3160]
push eax
push 0x8ea
push eax
push 0x22200c
push dword [0x559328]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
lea ecx, [ebp - 0x294e]
mov dword [ebp - 0x318c], eax
mov edx, 0x48
mov esi, ecx
mov edi, edx
mov byte [esi], 0
lea esi, [esi + 1]
sub edi, 1
jne 0x4cb500
nop dword [eax + eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x4cb510
lea eax, [ebp - 0x28d6]
mov ecx, 0x48
mov esi, ecx
mov edx, eax
nop word [eax + eax]
mov byte [edx], 0
lea edx, [edx + 1]
sub esi, 1
jne 0x4cb530
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4cb540
cmp dword [ebp - 0x318c], ecx
jne 0x4cb5f9
mov esi, dword [sym.imp.KERNEL32.DLL_GetLastError]
call esi
cmp eax, 0x20
jne 0x4cb69a
cmp dword [0x57f71c], 0
je 0x4cb59f
mov eax, dword [ebp - 0x3178]
inc eax
mov dword [ebp - 0x3178], eax
cmp eax, 0xa
jge 0x4cb59f
push 0x1f4
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov esi, dword [ebp - 0x3164]
mov edi, dword [ebp - 0x3168]
jmp 0x4cb252
cmp dword [ebp - 0x28f2], 0
je 0x4cb674
cmp dword [ebp + 0x20], 0
mov esi, dword [ebp - 0x3164]
je 0x4cb5cd
mov edi, dword [ebp - 0x3168]
mov dword [ebp - 0x28f2], 0
jmp 0x4cb252
push esi
push str.FILE_IN_USE
call fcn.00419610
add esp, 8
cmp eax, 6
jne 0x4cb12c
mov edi, dword [ebp - 0x3168]
mov dword [ebp - 0x28f2], 0
jmp 0x4cb252
mov eax, dword [ebp - 0x3160]
cmp eax, 3
jne 0x4cb7f6
cmp dword [ebp + 0x24], 0
je 0x4cb1ac
mov eax, dword [0x57f718]
inc eax
mov dword [0x57f718], eax
cmp eax, 2
jle 0x4cb6c7
cmp dword [ebp - 0x288e], 0
jne 0x4cb6c7
mov esi, dword [ebp - 0x3164]
mov edi, dword [ebp - 0x3168]
mov dword [ebp - 0x288e], 1
jmp 0x4cb252
push 0x1e
push esi
call fcn.00417830
add esp, 8
or eax, 0xffffffff
jmp 0x4cb9f1
push 7
push esi
call fcn.00417830
add esp, 8
or eax, 0xffffffff
jmp 0x4cb9f1
cmp dword [ebp + 0x20], 0
jne 0x4cb12c
mov esi, dword [ebp - 0x3164]
push esi
push str.FILE_IN_USE_FAILED
call fcn.00419a00
add esp, 8
or eax, 0xffffffff
jmp 0x4cb9f1
cmp dword [ebp + 0x20], 0
jne 0x4cb6bf
cmp dword [0x57f788], 0
je 0x4cb6b0
call esi
cmp eax, 0x15
je 0x4cb6bf
mov esi, dword [ebp - 0x3164]
push esi
call fcn.00417c00
add esp, 4
or eax, 0xffffffff
jmp 0x4cb9f1
cmp dword [ebp - 0x3180], 0
je 0x4cb7d3
cmp dword [ebp - 0x28da], 0
je 0x4cb7d3
mov esi, dword [ebp - 0x3168]
lea eax, [ebp - 0x317c]
push eax
push 0x51ac6c
push esi
mov dword [ebp - 0x317c], 0xffffffff
call fcn.004172d0
add esp, 0xc
cmp eax, 1
jne 0x4cb7ef
push dword [ebp - 0x317c]
lea eax, [ebp - 0x282c]
push str.DeviceHarddisk_dPartition0
push 0x401
push eax
call fcn.00405500
lea eax, [ebp - 0x282c]
push eax
call fcn.004cafb0
add esp, 0x14
push esi
push dword [ebp - 0x3170]
test eax, eax
je 0x4cb7e0
lea eax, [ebp - 0x2874]
push eax
call fcn.00417340
push 0x5171d0
push eax
lea eax, [ebp - 0x285c]
mov dword [ebp - 4], 0
push eax
call fcn.00403cd0
mov esi, eax
push str.HIDDEN_VOL_PROT_PASSWORD_US_KEYB_LAYOUT
mov byte [ebp - 4], 1
call fcn.004bb8b0
push eax
lea eax, [ebp - 0x2844]
push esi
push eax
call fcn.00403cd0
add esp, 0x28
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x4cb79b
mov eax, dword [eax]
mov esi, dword [ebp - 0x3164]
push esi
push eax
call fcn.00419c80
add esp, 8
lea ecx, [ebp - 0x2844]
call fcn.00495b40
lea ecx, [ebp - 0x285c]
call fcn.00495b40
lea ecx, [ebp - 0x2874]
call fcn.00495b40
xor eax, eax
jmp 0x4cb9f1
mov esi, dword [ebp - 0x3168]
push esi
push dword [ebp - 0x3170]
mov esi, dword [ebp - 0x3164]
push esi
call fcn.00417d50
add esp, 0xc
xor eax, eax
jmp 0x4cb9f1
test eax, eax
je 0x4cb81c
mov ecx, dword [ebp + 0x20]
test ecx, ecx
jne 0x4cb1ac
mov esi, dword [ebp - 0x3164]
push eax
push esi
call fcn.00417830
add esp, 8
xor eax, eax
jmp 0x4cb9f1
cmp dword [0x568600], 0
mov edi, dword [ebp + 0xc]
jne 0x4cb9ca
mov esi, dword [ebp - 0x3164]
lea eax, [edi + 0x41]
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x288e]
mov dword [ebp - 0x16], 0x3a
cmp eax, dword [ebx + 0x10]
je 0x4cb863
test eax, eax
je 0x4cb863
cmp dword [ebp + 0x24], 0
je 0x4cb863
push esi
push str.HEADER_DAMAGED_AUTO_USED_HEADER_BAK
call fcn.00419c20
add esp, 8
mov eax, dword [ebp - 0x315c]
mov dword [0x57f794], eax
test eax, eax
je 0x4cb8b0
lea eax, [ebp - 0x18]
push eax
push str.MOUNTED_VOLUME_DIRTY
call fcn.004bb8b0
add esp, 4
push eax
lea eax, [ebp - 0x1020]
push eax
call fcn.004054c0
lea eax, [ebp - 0x1020]
push esi
push eax
call fcn.004197d0
add esp, 0x14
cmp eax, 6
jne 0x4cb8b0
push 1
push edi
call fcn.00425af0
add esp, 8
cmp dword [ebp - 0x3158], 0
je 0x4cb921
cmp dword [ebp - 0x3180], 0
jne 0x4cb8f3
lea eax, [ebp - 0x81c]
push eax
call fcn.00426c40
add esp, 4
test eax, eax
jne 0x4cb921
lea eax, [ebp - 0x81c]
push eax
call fcn.00429c00
add esp, 4
test eax, eax
jne 0x4cb921
lea eax, [ebp - 0x18]
push eax
push str.MOUNTED_CONTAINER_FORCED_READ_ONLY
jmp 0x4cb8fc
lea eax, [ebp - 0x18]
push eax
push str.MOUNTED_DEVICE_FORCED_READ_ONLY
call fcn.004bb8b0
add esp, 4
push eax
lea eax, [ebp - 0x1020]
push eax
call fcn.004054c0
lea eax, [ebp - 0x1020]
push esi
push eax
call fcn.00419c80
add esp, 0x14
cmp dword [ebp - 0x3154], 0
je 0x4cb9ca
lea eax, [ebp - 0x81c]
push str.DeviceHarddisk
push eax
call fcn.0042c560
lea ecx, [ebp - 0x81c]
add esp, 8
cmp eax, ecx
jne 0x4cb9ca
lea eax, [ebp - 0x18]
push eax
push str.MOUNTED_DEVICE_FORCED_READ_ONLY_WRITE_PROTECTION
call fcn.004bb8b0
add esp, 4
push eax
lea eax, [ebp - 0x1020]
push eax
call fcn.004054c0
lea eax, [ebp - 0x1020]
push esi
push eax
call fcn.00419c80
push 0xb
call fcn.0041c0d0
add esp, 0x18
test eax, eax
je 0x4cb9ca
lea eax, [ebp - 0x81c]
push str.DeviceHarddiskVolume
push eax
call fcn.0042c560
lea ecx, [ebp - 0x81c]
add esp, 8
cmp eax, ecx
je 0x4cb9ca
push esi
push str.ASK_REMOVE_DEVICE_WRITE_PROTECTION
call fcn.004194f0
add esp, 8
cmp eax, 6
jne 0x4cb9ca
lea eax, [ebp - 0x81c]
push eax
push esi
call fcn.0042a900
add esp, 8
push 0
push edi
push 0x8000
mov dword [0x57f718], 0
call fcn.004ca970
mov eax, dword [ebp - 0x28f2]
add esp, 0xc
neg eax
sbb eax, eax
add eax, 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret