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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f866b
mov eax, dword fs:[0]
push eax
mov eax, 0x2dd8
call fcn.005ddc60
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x458], ecx
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
cmp ebx, 5
je 0x4a7010
cmp ebx, 4
je 0x4a7010
push 0x38
call fcn.00560437
add esp, 4
mov dword [ebp - 0x44c], eax
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.004a5da0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x44c], esi
test esi, esi
je 0x4a7010
mov dword [esi + 0x28], ebx
test edi, edi
jne 0x4a6cc6
xor ecx, ecx
jmp 0x4a6cdf
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a6cd0
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.0040c9d0
push 0
lea ecx, [esi + 4]
push 0x639ee0
mov dword [ebp - 0x448], ecx
call fcn.0040c9d0
movzx eax, word [edi]
lea ecx, [ebp - 0xd3c]
push eax
call fcn.0046fb70
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x2de4]
movzx eax, word [edi]
push eax
call fcn.00471160
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1d8c]
movzx eax, word [edi]
push eax
call fcn.0046e140
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4dc]
movzx eax, word [edi]
push eax
call fcn.004a8700
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x43c]
call fcn.00471970
mov byte [ebp - 4], 5
cmp dword [ebp - 0xd30], 0
je 0x4a6d6d
push 7
push str.FAT_RAW
jmp 0x4a6dc4
cmp dword [ebp - 0x2dd8], 0
je 0x4a6d7f
push 9
push str.FAT32_RAW
jmp 0x4a6dc4
cmp dword [ebp - 0x1d80], 0
je 0x4a6d91
push 9
push str.exFAT_RAW
jmp 0x4a6dc4
cmp dword [ebp - 0x4b8], 0
je 0x4a6da3
push 8
push str.NTFS_RAW
jmp 0x4a6dc4
push dword [esi]
lea ecx, [ebp - 0x43c]
call fcn.00471cc0
test al, al
je 0x4a6dbd
push 8
push str.HFS_Plus
jmp 0x4a6dc4
push 3
push 0x65357c
lea ecx, [esi + 8]
call fcn.0040c9d0
mov dword [esi + 0xc], 1
lea ecx, [ebp - 0x444]
push 0x63d048
mov dword [esi + 0x10], 0x200
call fcn.0040c380
mov byte [ebp - 4], 6
lea eax, [ebp - 0x440]
push 2
push eax
mov ecx, esi
call fcn.0046c6c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x444]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0040ceb0
mov byte [ebp - 4], 6
or edi, 0xffffffff
mov edx, dword [ebp - 0x440]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a6e37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push dword [ebp - 0x444]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a6ebd
push 0
lea eax, [ebp - 0x440]
mov dword [ebp - 0x440], 0
push eax
push 8
lea eax, [ebp - 0x454]
push eax
push 0
push 0
push 0x7405c
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4a6eb6
mov eax, dword [ebp - 0x454]
push 0
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x450]
push 0x200
mov dword [esi + 0x24], eax
push dword [ebp - 0x450]
push dword [ebp - 0x454]
call fcn.005dda10
mov dword [esi + 0x18], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x18]
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.004a61d0
mov eax, dword [esi + 0x20]
or eax, dword [esi + 0x24]
jne 0x4a6ee6
cmp dword [esi + 0x18], eax
jne 0x4a6ee6
push ecx
mov ecx, esi
call fcn.004a6770
xor esi, esi
jmp 0x4a6f9f
mov ebx, dword [ebp - 0x448]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x4a6f88
push 0x650a3c
mov edx, str.LocalDiskVolumeName
lea ecx, [ebp - 0x440]
call fcn.004db870
add esp, 4
mov byte [ebp - 4], 0xa
mov edx, dword [eax]
mov esi, dword [ebx]
sub esi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x4a6f67
cmp dword [esi + 0xc], 0
jl 0x4a6f5c
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4a6f5c
call fcn.0040c950
mov dword [ebp - 0x448], eax
lea edx, [esi + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a6f55
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x448]
add eax, 0x10
mov dword [ebx], eax
jmp 0x4a6f67
push dword [edx - 0xc]
mov ecx, ebx
push edx
call fcn.0040c9d0
mov byte [ebp - 4], 6
mov eax, edi
mov edx, dword [ebp - 0x440]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a6f88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x458]
lea eax, [ebp - 0x44c]
push eax
add ecx, 0xc
call fcn.004a7e80
mov esi, eax
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x444]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4a6fbe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x43c]
call fcn.00471af0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x4dc]
call fcn.004a70c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1d8c]
call fcn.0046e300
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2de4]
call fcn.004712f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd3c]
call fcn.004a7030
mov eax, esi
jmp 0x4a7012
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 - 0x14]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 4