Function at 0x10059989
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov esi, ecx
mov dword [ebp - 0x14], ebx
call fcn.1003f9c4
pop ecx
lea ecx, [ebp - 8]
call fcn.10046123
push ebx
push 0x2c
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 0x80000000
call fcn.1003ac0c
mov eax, dword [ebp + 8]
cmp word [eax], bx
je 0x10059b9b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 8]
push eax
call fcn.10042530
test eax, eax
pop ecx
pop ecx
jle 0x10059b9b
mov eax, dword [ebp - 8]
cmp word [eax], 0x2a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
sete byte [ebp - 1]
call esi
inc eax
inc eax
push eax
lea ecx, [ebp - 8]
call fcn.10046168
push 0x42f
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
call fcn.10046141
cmp byte [ebp - 1], bl
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + 0x20e]
mov dword [ecx], ebx
mov edi, eax
mov dword [eax + 0x648], ebx
mov dword [eax], ebx
je 0x10059a44
push eax
push 0x324
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [ebp - 8]
jmp 0x10059a49
mov eax, dword [ebp - 8]
mov edi, eax
cmp word [eax], bx
je 0x10059a62
cmp word [eax + 2], 0x3a
jne 0x10059a62
mov word [eax + 4], 0x5c
mov eax, dword [ebp - 8]
mov word [eax + 6], bx
push 0xffffffffffffffff
push 0xffffffffffffffff
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerBitBucketVolume_
lea ecx, [ebp - 0xc]
call fcn.100461de
push dword [ebp - 0xc]
call esi
mov dword [ebp - 0x18], eax
add eax, 0x20a
push eax
lea ecx, [ebp - 0xc]
call fcn.10046168
mov eax, dword [ebp - 0x28]
xor ecx, ecx
cmp eax, ebx
sete cl
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
cmp byte [ebp - 1], bl
je 0x10059aba
mov si, word [edi + 4]
push edi
mov word [edi + 4], bx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
mov word [edi + 4], si
jne 0x10059b6c
mov esi, dword [ebp - 0x10]
push 0x208
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x10059ae3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x10059adb
xor eax, eax
inc eax
mov dword [ebp - 0x14], eax
jmp 0x10059b6c
push 0xa
push dword [ebp - 0x10]
push str._Volume
call fcn.10040df5
add esp, 0xc
test al, al
je 0x10059aff
mov esi, dword [ebp - 0x10]
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2 - 2]
cmp word [eax], 0x5c
jne 0x10059b13
mov word [eax], bx
mov eax, dword [ebp - 0x18]
push 0x208
push esi
mov esi, dword [ebp - 0xc]
lea eax, [esi + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push str.MaxCapacity
push esi
mov esi, 0x80000001
push esi
call fcn.10040c59
add esp, 0x18
cmp eax, ebx
jne 0x10059b4c
mov dword [ebp - 0x14], ebx
push 4
lea eax, [ebp - 0x20]
push eax
push 4
push str.NukeOnDelete
push dword [ebp - 0xc]
push esi
call fcn.10040c59
add esp, 0x18
cmp eax, ebx
jne 0x10059b6c
mov dword [ebp - 0x14], ebx
cmp byte [ebp - 1], bl
je 0x10059b85
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
cmp word [edi], bx
jne 0x10059a99
lea ecx, [ebp - 0x10]
call fcn.1003f96c
lea ecx, [ebp - 0xc]
call fcn.1003f96c
mov esi, dword [ebp - 0x14]
pop edi
jmp 0x10059ba0
mov esi, 0x80070057
lea ecx, [ebp - 8]
call fcn.1003f96c
mov eax, esi
pop esi
pop ebx
leave
ret 4