Function at 0x454770
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4e5ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebp
push esi
lea eax, [esp + 0x40]
xor ebp, ebp
push eax
mov esi, ecx
mov dword [esp + 0x14], ebp
call fcn.0043f2e0
push 2
mov dword [esp + 0x14], ebp
call fcn.00445f00
add esp, 8
cmp eax, ebp
mov dword [esp + 0xc], eax
je 0x4547b5
mov word [eax], bp
push ebp
push 0x2c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
mov dword [esp + 0x48], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], SysReAllocStringLen
call fcn.0043b730
mov eax, dword [esp + 0x40]
cmp word [eax], bp
je 0x454a80
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.00449970
add esp, 8
test eax, eax
jle 0x454a80
push ebx
lea eax, [esp + 0x44]
push edi
push eax
call fcn.0043f2e0
mov eax, dword [esp + 0x18]
add esp, 4
cmp word [eax], 0x2a
push eax
sete bl
mov byte [esp + 0x17], bl
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov esi, eax
add esi, 2
lea eax, [esi + esi + 2]
push ecx
call fcn.00445f60
add esp, 4
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x454847
mov word [eax + esi*2], bp
mov dword [esp + 0x1c], ebp
push 0x858
call fcn.00445f00
mov ecx, eax
add esp, 4
cmp ecx, ebp
mov dword [esp + 0x20], ecx
je 0x454865
mov word [ecx], bp
test bl, bl
lea eax, [ecx + 0x20e]
mov word [ecx], bp
mov byte [esp + 0x40], 2
mov edi, eax
mov word [eax + 2], bp
mov word [eax], bp
je 0x454892
push eax
push 0x324
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [esp + 0x14]
jmp 0x454898
mov eax, dword [esp + 0x14]
mov edi, eax
cmp word [eax], bp
je 0x4548b2
cmp word [eax + 2], 0x3a
jne 0x4548b2
mov word [eax + 4], 0x5c
mov edx, dword [esp + 0x14]
mov word [edx + 6], bp
push 0xffffffffffffffff
push 0xffffffffffffffff
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerBitBucketVolume_
lea ecx, [esp + 0x28]
call fcn.00446330
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [ebx + ebx + 0x416]
push esi
mov dword [esp + 0x30], ebx
call fcn.00445f60
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x1c], ebp
je 0x4548f9
mov word [ebp + ebx*2 + 0x414], 0
mov eax, dword [esp + 0x24]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
lea esp, [esp]
mov al, byte [esp + 0x13]
test al, al
je 0x454936
mov si, word [edi + 4]
push edi
mov word [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
mov word [edi + 4], si
jne 0x454a06
mov esi, dword [esp + 0x20]
push 0x208
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x454963
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45495a
mov eax, 1
mov dword [esp + 0x18], eax
jmp 0x454a06
mov eax, esi
mov ecx, str._Volume
mov dword [esp + 0x24], 9
movzx edx, word [eax]
movsx ebx, byte [ecx]
or edx, 0x20
or ebx, 0x20
add eax, 2
inc ecx
cmp ebx, edx
jne 0x454993
dec dword [esp + 0x24]
jns 0x454972
mov esi, dword [esp + 0x20]
add esi, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ebx, ebx
cmp word [esi + eax*2 - 2], 0x5c
jne 0x4549a9
mov word [esi + eax*2 - 2], bx
mov eax, dword [esp + 0x2c]
push 0x208
push esi
lea ecx, [ebp + eax*2]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 4
lea edx, [esp + 0x34]
push edx
push 4
push str.MaxCapacity
push ebp
push SysReAllocStringLen
call fcn.004402a0
add esp, 0x18
cmp eax, ebx
jne 0x4549e2
mov dword [esp + 0x18], ebx
push 4
lea eax, [esp + 0x38]
push eax
push 4
push str.NukeOnDelete
push ebp
push SysReAllocStringLen
call fcn.004402a0
add esp, 0x18
cmp eax, ebx
jne 0x454a06
mov dword [esp + 0x18], ebx
mov al, byte [esp + 0x13]
test al, al
je 0x454a25
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [edi + eax*2 + 2], 0
lea edi, [edi + eax*2 + 2]
jne 0x454910
mov ecx, dword [esp + 0x20]
mov edx, dword [0x51927c]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
add ecx, 0xfffffff8
push ecx
push 0
push edx
call esi
test ebp, ebp
pop edi
pop ebx
je 0x454a52
mov eax, dword [0x51927c]
add ebp, 0xfffffff8
push ebp
push 0
push eax
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x454a69
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
mov eax, dword [esp + 0x10]
pop esi
pop ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
mov eax, dword [esp + 0xc]
cmp eax, ebp
je 0x454a9a
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x30]
pop esi
mov eax, 0x80070057
pop ebp
mov dword fs:[0], ecx
add esp, 0x34
ret 4