Function at 0x4a6718
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b896c
mov eax, dword fs:[0]
push eax
sub esp, 0x6c0
mov eax, dword [0x4ec06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x630]
call fcn.00405d78
and dword [ebp - 4], 0
push 0x4c963c
lea ecx, [ebp - 0x690]
call fcn.00404d2c
mov byte [ebp - 4], 1
push 0x4c9640
lea ecx, [ebp - 0x678]
call fcn.00404d2c
mov byte [ebp - 4], 2
lea eax, [ebp - 0x690]
push eax
lea edx, [ebp - 0x678]
lea ecx, [ebp - 0x630]
call 0x4174f3
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x678]
call fcn.00405118
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x690]
call fcn.00405118
lea ecx, [ebp - 0x630]
call fcn.00403bbd
test eax, eax
jbe 0x4a67fd
lea ecx, [ebp - 0x630]
call fcn.00403bbd
dec eax
push eax
lea ecx, [ebp - 0x630]
call fcn.0040afdc
movzx eax, word [eax]
cmp eax, 0x5c
jne 0x4a67fd
push 0
lea ecx, [ebp - 0x630]
call fcn.00403bbd
dec eax
push eax
lea ecx, [ebp - 0x630]
call fcn.0040af9e
mov ecx, dword [ebp + 8]
call fcn.00404e0f
mov ecx, eax
call fcn.00415d24
mov byte [ebp - 0x691], al
movzx eax, byte [ebp - 0x691]
test eax, eax
je 0x4a684e
mov ecx, dword [ebp + 8]
call fcn.00403bbd
add eax, 0x1e
cmp eax, 0x104
jae 0x4a683b
mov dword [ebp - 0x69c], 1
jmp 0x4a6842
and dword [ebp - 0x69c], 0
mov al, byte [ebp - 0x69c]
mov byte [ebp - 0x691], al
movzx eax, byte [ebp - 0x691]
test eax, eax
je 0x4a6868
push dword [ebp + 8]
call fcn.004a6bb6
pop ecx
mov byte [ebp - 0x691], al
movzx eax, byte [ebp - 0x691]
test eax, eax
je 0x4a6b7e
push 0x100
lea eax, [ebp - 0x618]
push eax
push 0x100
lea eax, [ebp - 0x418]
push eax
push 0x100
lea eax, [ebp - 0x218]
push eax
push 3
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404e0f
push eax
call fcn.0046a164
add esp, 0x24
mov dword [ebp - 0x6cc], eax
cmp dword [ebp - 0x6cc], 0
jne 0x4a68f1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4a68dc
mov dword [ebp - 0x6a0], 1
jmp 0x4a68e3
and dword [ebp - 0x6a0], 0
mov al, byte [ebp - 0x6a0]
mov byte [ebp - 0x691], al
jmp 0x4a68f8
mov byte [ebp - 0x691], 0
movzx eax, byte [ebp - 0x691]
test eax, eax
je 0x4a6b7e
lea ecx, [ebp - 0x6c8]
call fcn.00403b7f
mov byte [ebp - 4], 3
push 0x7fffffff
push 0x5c
lea edx, [ebp - 0x6c8]
lea ecx, [ebp - 0x218]
call 0x4174dd
pop ecx
pop ecx
lea ecx, [ebp - 0x6c8]
call fcn.00405868
mov dword [ebp - 0x6a4], eax
cmp dword [ebp - 0x6a4], 2
jae 0x4a6956
mov byte [ebp - 0x691], 0
jmp 0x4a6a65
and dword [ebp - 0x698], 0
mov dword [ebp - 0x698], 1
jmp 0x4a6976
mov eax, dword [ebp - 0x698]
inc eax
mov dword [ebp - 0x698], eax
mov eax, dword [ebp - 0x6a4]
dec eax
cmp dword [ebp - 0x698], eax
jae 0x4a6a65
push dword [ebp - 0x698]
lea ecx, [ebp - 0x6c8]
call fcn.0040584d
mov ecx, eax
call fcn.00403bbd
test eax, eax
jbe 0x4a69b1
mov dword [ebp - 0x6a8], 1
jmp 0x4a69b8
and dword [ebp - 0x6a8], 0
movzx eax, byte [ebp - 0x691]
and eax, dword [ebp - 0x6a8]
mov byte [ebp - 0x691], al
push dword [ebp - 0x698]
lea ecx, [ebp - 0x6c8]
call fcn.0040584d
mov ecx, eax
call fcn.00403bbd
inc eax
cmp eax, 0xf5
jae 0x4a69f7
mov dword [ebp - 0x6ac], 1
jmp 0x4a69fe
and dword [ebp - 0x6ac], 0
movzx eax, byte [ebp - 0x691]
and eax, dword [ebp - 0x6ac]
mov byte [ebp - 0x691], al
push 0x4c9644
push dword [ebp - 0x698]
lea ecx, [ebp - 0x6c8]
call fcn.0040584d
mov ecx, eax
call fcn.00404e0f
push eax
call fcn.0046a1bb
pop ecx
pop ecx
test eax, eax
jne 0x4a6a46
mov dword [ebp - 0x6b0], 1
jmp 0x4a6a4d
and dword [ebp - 0x6b0], 0
movzx eax, byte [ebp - 0x691]
and eax, dword [ebp - 0x6b0]
mov byte [ebp - 0x691], al
jmp 0x4a6969
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x660]
call fcn.00404d2c
mov byte [ebp - 4], 4
lea eax, [ebp - 0x618]
push eax
lea ecx, [ebp - 0x648]
call fcn.00404d2c
lea ecx, [ebp - 0x660]
call fcn.00403bbd
test eax, eax
jbe 0x4a6aa8
mov dword [ebp - 0x6b4], 1
jmp 0x4a6aaf
and dword [ebp - 0x6b4], 0
movzx eax, byte [ebp - 0x691]
and eax, dword [ebp - 0x6b4]
mov byte [ebp - 0x691], al
push 0x4c9658
lea ecx, [ebp - 0x660]
call fcn.00404e0f
push eax
call fcn.0046a1bb
pop ecx
pop ecx
test eax, eax
jne 0x4a6aea
mov dword [ebp - 0x6b8], 1
jmp 0x4a6af1
and dword [ebp - 0x6b8], 0
movzx eax, byte [ebp - 0x691]
and eax, dword [ebp - 0x6b8]
mov byte [ebp - 0x691], al
lea ecx, [ebp - 0x648]
call fcn.00403bbd
test eax, eax
jbe 0x4a6b55
push str.__:___
lea ecx, [ebp - 0x648]
call fcn.00404e0f
push eax
call fcn.0046a1bb
pop ecx
pop ecx
test eax, eax
jne 0x4a6b3b
mov dword [ebp - 0x6bc], 1
jmp 0x4a6b42
and dword [ebp - 0x6bc], 0
movzx eax, byte [ebp - 0x691]
and eax, dword [ebp - 0x6bc]
mov byte [ebp - 0x691], al
lea ecx, [ebp - 0x648]
call fcn.00405118
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x660]
call fcn.00405118
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c8]
call fcn.00405a54
mov al, byte [ebp - 0x691]
mov byte [ebp - 0x692], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x630]
call fcn.00405118
mov al, byte [ebp - 0x692]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461014
leave
ret