Function at 0x51f090
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59911a
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x6091d4]
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
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x264], 0x5e18c4
mov byte [ebp - 0x25c], 0
mov dword [ebp - 0x260], 5
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x258], 0x5e18c4
mov byte [ebp - 0x250], 0
mov dword [ebp - 0x254], 5
mov dword [ebp - 0x298], 0
mov dword [ebp - 0x2a0], 0x5e18c4
mov byte [ebp - 0x298], 0
mov dword [ebp - 0x29c], 5
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x240], 3
call fcn.004aafc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov esi, eax
test esi, esi
je 0x51f50e
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0053d036
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x51f50e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ecx, ebx
mov esi, ebx
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51f1a0
sub ecx, edx
sar ecx, 1
je 0x51f505
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x51f4cd
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x51f4cd
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x24c], 0x5e18c4
mov byte [ebp - 0x244], al
mov dword [ebp - 0x248], 5
mov byte [ebp - 4], 4
movzx eax, word [esi]
push eax
call fcn.0057c130
add esp, 4
mov word [esi], ax
lea ecx, [ebp - 0x230]
push esi
call fcn.004a94b0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x268], 0
cmovae eax, dword [ebp - 0x230]
push eax
mov dword [ebp - 0x270], 0x5e18c4
mov byte [ebp - 0x268], 0
mov dword [ebp - 0x26c], 5
call fcn.004adfd0
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 6
push eax
push str.path
lea ecx, [ebp - 0x24c]
call fcn.004ab650
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x270], 0x5e18c4
call fcn.004ab230
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x274], 0
push str.removable
mov dword [ebp - 0x27c], 0x5e18c4
mov byte [ebp - 0x274], 0
mov dword [ebp - 0x278], 5
call fcn.004adfd0
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 8
push eax
push str.type
lea ecx, [ebp - 0x24c]
call fcn.004ab650
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x27c], 0x5e18c4
call fcn.004ab230
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x280], 0
push str.encrypted
mov dword [ebp - 0x288], 0x5e18c4
mov byte [ebp - 0x280], 0
mov dword [ebp - 0x284], 5
call fcn.004adfd0
lea eax, [ebp - 0x288]
mov byte [ebp - 4], 0xa
push eax
push str.state
lea ecx, [ebp - 0x24c]
call fcn.004ab650
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x288], 0x5e18c4
call fcn.004ab230
mov byte [ebp - 4], 5
mov dword [ebp - 0x294], 0x5e18c4
mov dword [ebp - 0x28c], 0
push 0x5e1894
lea ecx, [ebp - 0x294]
mov byte [ebp - 0x28c], 0
mov dword [ebp - 0x290], 5
call fcn.004adfd0
lea eax, [ebp - 0x294]
mov byte [ebp - 4], 0xc
push eax
push str.algorithm
lea ecx, [ebp - 0x24c]
call fcn.004ab650
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x294], 0x5e18c4
call fcn.004ab230
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x23c], 0x5e18c4
mov byte [ebp - 0x234], 0
mov dword [ebp - 0x238], 5
call fcn.004ab230
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x238], 1
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 0xe
push eax
push str.strength
lea ecx, [ebp - 0x24c]
call fcn.004ab650
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x5e18c4
call fcn.004ab230
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x258]
call fcn.004ab350
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x51f493
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004a9d40
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0x5e18c4
call fcn.004ab230
mov byte [ebp - 4], 3
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51f4d2
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 2
mov eax, esi
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x51f4f0
sub eax, edx
sar eax, 1
jne 0x51f1b5
push ebx
call fcn.0053d031
add esp, 4
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x5e18c4
mov byte [ebp - 0x234], 0
mov dword [ebp - 0x238], 5
call fcn.004ab230
mov byte [ebp - 0x234], 0
mov dword [ebp - 0x238], 4
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 0x11
push eax
push str.fully_encrypted
lea ecx, [ebp - 0x264]
call fcn.004ab650
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x5e18c4
call fcn.004ab230
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 3
push eax
push str.locations
lea ecx, [ebp - 0x264]
call fcn.004ab500
mov eax, dword [ebp - 0x254]
cmp eax, 3
jne 0x51f5c6
mov eax, dword [ebp - 0x250]
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
jmp 0x51f5d8
cmp eax, 2
jne 0x51f655
mov eax, dword [ebp - 0x250]
mov eax, dword [eax + 8]
test eax, eax
je 0x51f655
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x5e18c4
mov byte [ebp - 0x234], 0
mov dword [ebp - 0x238], 5
call fcn.004ab230
mov byte [ebp - 0x234], 1
mov dword [ebp - 0x238], 4
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 0x13
push eax
push str.encryption_active
lea ecx, [ebp - 0x264]
call fcn.004ab650
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x5e18c4
call fcn.004ab230
mov byte [ebp - 4], 3
lea eax, [ebp - 0x264]
push eax
push str.result
lea ecx, [ebp - 0x2a0]
call fcn.004ab500
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x2a0]
call fcn.004ae290
mov esi, eax
cmp edi, esi
je 0x51f6be
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x51f697
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.004a9d40
mov dword [edi + 0x14], 7
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], 0
jb 0x51f6af
mov eax, dword [edi]
jmp 0x51f6b1
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
push esi
call fcn.004a9850
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x51f6dc
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.004a9d40
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x2a0], 0x5e18c4
call fcn.004ab230
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x258], 0x5e18c4
call fcn.004ab230
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x264], 0x5e18c4
call fcn.004ab230
mov dword [ebp - 4], 0x19
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0x5e18c4
call fcn.004ab230
xor eax, eax
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.0053cb86
mov esp, ebp
pop ebp
ret 0x10