Function at 0x100406ab
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006e833
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push esi
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10040932
mov dword [ebp - 0x30], 0x14ef
cmp dword [ebp - 0x30], 0x128f
jge 0x100408e8
lea eax, [ebp - 0x10]
push eax
push 0x100077f4
call fcn.10054b0b
pop ecx
pop ecx
push dword [ebp - 0x10]
lea ecx, [ebp - 0x6c]
call fcn.100183ab
and dword [ebp - 4], 0
and dword [ebp - 0x1c], 0
jmp 0x10040713
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x10]
jge 0x10040735
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x6c]
call fcn.10018487
push eax
push 0x100077f4
call fcn.10054b0b
pop ecx
pop ecx
jmp 0x1004070c
cmp dword [ebp - 0x10], 1
jg 0x10040753
push 0
lea ecx, [ebp - 0x6c]
call fcn.10018487
push dword [eax]
push 0x10007ccc
call fcn.100552e3
pop ecx
pop ecx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x6c]
call fcn.10018461
push dword [eax]
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x6c]
call fcn.1001846f
push dword [eax]
call fcn.10046820
pop ecx
pop ecx
or dword [ebp - 0x34], 0xffffffff
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x60]
call fcn.100183e7
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], 1
jmp 0x1004079e
mov eax, dword [ebp - 0x20]
inc eax
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x10]
jge 0x100407c9
lea ecx, [ebp - 0x6c]
call fcn.100462b3
mov esi, eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x60]
call fcn.10018487
mov ecx, dword [esi]
mov dword [eax], ecx
lea ecx, [ebp - 0x6c]
call fcn.100462ba
jmp 0x10040796
and dword [ebp - 0x18], 0
jmp 0x100407d6
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x10]
jge 0x10040811
push dword [ebp - 0x18]
lea ecx, [ebp - 0x60]
call fcn.10018487
cmp dword [eax], 0
jge 0x1004080f
lea ecx, [ebp - 0x6c]
call fcn.100462b3
mov esi, eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x60]
call fcn.10018487
mov ecx, dword [esi]
mov dword [eax], ecx
lea ecx, [ebp - 0x6c]
call fcn.100462ba
jmp 0x100407cf
and dword [ebp - 0x28], 0
mov dword [ebp - 0x14], 1
jmp 0x10040825
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, dword [ebp - 0x10]
jge 0x10040886
mov eax, dword [ebp - 0x14]
dec eax
push eax
lea ecx, [ebp - 0x60]
call fcn.10018487
mov esi, eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x60]
call fcn.10018487
mov ecx, dword [esi]
cmp ecx, dword [eax]
jle 0x10040877
push dword [ebp - 0x14]
lea ecx, [ebp - 0x60]
call fcn.10018487
mov esi, eax
mov eax, dword [ebp - 0x14]
inc eax
push eax
lea ecx, [ebp - 0x60]
call fcn.10018487
mov ecx, dword [esi]
cmp ecx, dword [eax]
jge 0x10040877
mov dword [ebp - 0x2c], 1
jmp 0x1004087b
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
jmp 0x1004081e
push dword [ebp - 0x28]
push 0x10007808
call fcn.100552e3
pop ecx
pop ecx
and dword [ebp - 0x24], 0
jmp 0x100408a2
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x10]
jge 0x100408c5
push dword [ebp - 0x24]
lea ecx, [ebp - 0x60]
call fcn.10018487
push dword [eax]
push 0x100078f8
call fcn.100552e3
pop ecx
pop ecx
jmp 0x1004089b
push 0x1000775d
call fcn.100555f7
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.1001845c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.1001845c
lea eax, [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x1004091c
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x1004091a
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
jmp 0x10040930
push 0
push 0x148e
push 0x18ad
push 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10040958
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x4c], eax
push 0x4c1a
push dword [ebp - 0x48]
push 1
push dword [ebp - 0x4c]
push 0x3da
call fcn.10034048
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret