Function at 0x4a1360
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b0902
mov eax, dword fs:[0]
push eax
sub esp, 0x6c0
mov eax, dword [0x4df06c]
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.0040479a
and dword [ebp - 4], 0
push 0x4c1188
lea ecx, [ebp - 0x690]
call fcn.004097aa
mov byte [ebp - 4], 1
push 0x4c118c
lea ecx, [ebp - 0x678]
call fcn.004097aa
mov byte [ebp - 4], 2
lea eax, [ebp - 0x690]
push eax
lea edx, [ebp - 0x678]
lea ecx, [ebp - 0x630]
call 0x41659e
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x678]
call fcn.0040a301
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x690]
call fcn.0040a301
lea ecx, [ebp - 0x630]
call fcn.00404530
test eax, eax
jbe 0x4a1443
lea ecx, [ebp - 0x630]
call fcn.00404530
dec eax
push eax
lea ecx, [ebp - 0x630]
call fcn.0040aa73
movzx eax, word [eax]
cmp eax, 0x5c
jne 0x4a1443
lea ecx, [ebp - 0x630]
call fcn.00404530
dec eax
push eax
lea ecx, [ebp - 0x630]
call fcn.0040ae6d
mov ecx, dword [ebp + 8]
call fcn.0040a2c4
mov ecx, eax
call fcn.00415059
mov byte [ebp - 0x691], al
movzx eax, byte [ebp - 0x691]
test eax, eax
je 0x4a1494
mov ecx, dword [ebp + 8]
call fcn.00404530
add eax, 0x1e
cmp eax, 0x104
jae 0x4a1481
mov dword [ebp - 0x69c], 1
jmp 0x4a1488
and dword [ebp - 0x69c], 0
mov al, byte [ebp - 0x69c]
mov byte [ebp - 0x691], al
movzx eax, byte [ebp - 0x691]
test eax, eax
je 0x4a14ae
push dword [ebp + 8]
call fcn.004a17fe
pop ecx
mov byte [ebp - 0x691], al
movzx eax, byte [ebp - 0x691]
test eax, eax
je 0x4a17c4
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.0040a2c4
push eax
call fcn.0046768b
add esp, 0x24
mov dword [ebp - 0x6cc], eax
cmp dword [ebp - 0x6cc], 0
jne 0x4a1537
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4a1522
mov dword [ebp - 0x6a0], 1
jmp 0x4a1529
and dword [ebp - 0x6a0], 0
mov al, byte [ebp - 0x6a0]
mov byte [ebp - 0x691], al
jmp 0x4a153e
mov byte [ebp - 0x691], 0
movzx eax, byte [ebp - 0x691]
test eax, eax
je 0x4a17c4
lea ecx, [ebp - 0x6c8]
call fcn.00403fe0
mov byte [ebp - 4], 3
push SysReAllocString
push 0x5c
lea edx, [ebp - 0x6c8]
lea ecx, [ebp - 0x218]
call 0x416588
pop ecx
pop ecx
lea ecx, [ebp - 0x6c8]
call fcn.0040425a
mov dword [ebp - 0x6a4], eax
cmp dword [ebp - 0x6a4], 2
jae 0x4a159c
mov byte [ebp - 0x691], 0
jmp 0x4a16ab
and dword [ebp - 0x698], 0
mov dword [ebp - 0x698], 1
jmp 0x4a15bc
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 0x4a16ab
push dword [ebp - 0x698]
lea ecx, [ebp - 0x6c8]
call fcn.0040423d
mov ecx, eax
call fcn.00404530
test eax, eax
jbe 0x4a15f7
mov dword [ebp - 0x6a8], 1
jmp 0x4a15fe
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.0040423d
mov ecx, eax
call fcn.00404530
inc eax
cmp eax, 0xf5
jae 0x4a163d
mov dword [ebp - 0x6ac], 1
jmp 0x4a1644
and dword [ebp - 0x6ac], 0
movzx eax, byte [ebp - 0x691]
and eax, dword [ebp - 0x6ac]
mov byte [ebp - 0x691], al
push 0x4c1190
push dword [ebp - 0x698]
lea ecx, [ebp - 0x6c8]
call fcn.0040423d
mov ecx, eax
call fcn.0040a2c4
push eax
call fcn.004676e4
pop ecx
pop ecx
test eax, eax
jne 0x4a168c
mov dword [ebp - 0x6b0], 1
jmp 0x4a1693
and dword [ebp - 0x6b0], 0
movzx eax, byte [ebp - 0x691]
and eax, dword [ebp - 0x6b0]
mov byte [ebp - 0x691], al
jmp 0x4a15af
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x660]
call fcn.004097aa
mov byte [ebp - 4], 4
lea eax, [ebp - 0x618]
push eax
lea ecx, [ebp - 0x648]
call fcn.004097aa
lea ecx, [ebp - 0x660]
call fcn.00404530
test eax, eax
jbe 0x4a16ee
mov dword [ebp - 0x6b4], 1
jmp 0x4a16f5
and dword [ebp - 0x6b4], 0
movzx eax, byte [ebp - 0x691]
and eax, dword [ebp - 0x6b4]
mov byte [ebp - 0x691], al
push 0x4c11a4
lea ecx, [ebp - 0x660]
call fcn.0040a2c4
push eax
call fcn.004676e4
pop ecx
pop ecx
test eax, eax
jne 0x4a1730
mov dword [ebp - 0x6b8], 1
jmp 0x4a1737
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.00404530
test eax, eax
jbe 0x4a179b
push str.__:___
lea ecx, [ebp - 0x648]
call fcn.0040a2c4
push eax
call fcn.004676e4
pop ecx
pop ecx
test eax, eax
jne 0x4a1781
mov dword [ebp - 0x6bc], 1
jmp 0x4a1788
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.0040a301
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x660]
call fcn.0040a301
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6c8]
call fcn.00404285
mov al, byte [ebp - 0x691]
mov byte [ebp - 0x692], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x630]
call fcn.0040a301
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.0045e3e7
mov esp, ebp
pop ebp
ret