Function at 0x455800
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4ea0f8
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.00443850
push 2
mov dword [esp + 0x14], ebp
call fcn.00449130
add esp, 8
cmp eax, ebp
mov dword [esp + 0xc], eax
je 0x455845
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.0043de70
mov eax, dword [esp + 0x40]
cmp word [eax], bp
je 0x455b10
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.0044cd70
add esp, 8
test eax, eax
jle 0x455b10
push ebx
lea eax, [esp + 0x44]
push edi
push eax
call fcn.00443850
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.00449190
add esp, 4
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x4558d7
mov word [eax + esi*2], bp
mov dword [esp + 0x1c], ebp
push 0x858
call fcn.00449130
mov ecx, eax
add esp, 4
cmp ecx, ebp
mov dword [esp + 0x20], ecx
je 0x4558f5
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 0x455922
push eax
push 0x324
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [esp + 0x14]
jmp 0x455928
mov eax, dword [esp + 0x14]
mov edi, eax
cmp word [eax], bp
je 0x455942
cmp word [eax + 2], 0x3a
jne 0x455942
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.00449560
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.00449190
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x1c], ebp
je 0x455989
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 0x4559c6
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 0x455a96
mov esi, dword [esp + 0x20]
push 0x208
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x4559f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4559ea
mov eax, 1
mov dword [esp + 0x18], eax
jmp 0x455a96
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 0x455a23
dec dword [esp + 0x24]
jns 0x455a02
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 0x455a39
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.00444820
add esp, 0x18
cmp eax, ebx
jne 0x455a72
mov dword [esp + 0x18], ebx
push 4
lea eax, [esp + 0x38]
push eax
push 4
push str.NukeOnDelete
push ebp
push SysReAllocStringLen
call fcn.00444820
add esp, 0x18
cmp eax, ebx
jne 0x455a96
mov dword [esp + 0x18], ebx
mov al, byte [esp + 0x13]
test al, al
je 0x455ab5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [edi + eax*2 + 2], 0
lea edi, [edi + eax*2 + 2]
jne 0x4559a0
mov ecx, dword [esp + 0x20]
mov edx, dword [0x51d3c8]
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 0x455ae2
mov eax, dword [0x51d3c8]
add ebp, 0xfffffff8
push ebp
push 0
push eax
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x455af9
mov ecx, dword [0x51d3c8]
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 0x455b2a
mov edx, dword [0x51d3c8]
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