Function at 0x408e20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4745d6
mov eax, dword fs:[0]
push eax
sub esp, 0x50c
mov eax, dword [0x4931e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x45c], ebx
mov esi, ecx
mov dword [ebp - 0x460], esi
xor eax, eax
mov dword [ebp - 0x464], 0
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
mov dword [ebp - 4], eax
push 0x206
push eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
test ebx, ebx
je 0x40907b
lea eax, [ebp - 0x428]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x40907b
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call sub.MSVCR120.dll_memset
mov eax, dword [0x482d4c]
lea edi, [ebp - 0x428]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 0xc
mov dword [ebp - 0x18], eax
xor bl, bl
mov ax, word [0x482d50]
mov word [ebp - 0x14], ax
mov ax, word [ebp - 0x428]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x220]
push 0x104
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x409037
lea esi, [ebp - 0x220]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x408f36
sub esi, ecx
sar esi, 1
cmp esi, 0x104
jae 0x409031
push esi
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x45c]
call dword [sym.imp.MSVCR120.dll__wcsnicmp]
add esp, 0xc
test eax, eax
sete bl
test bl, bl
je 0x409031
sub esp, 8
lea ecx, [ebp - 0x518]
call fcn.0040a630
mov eax, dword [ebp - 0x45c]
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x508]
mov byte [ebp - 4], 1
lea esi, [eax + esi*2]
call fcn.0040b650
mov edx, esi
mov ecx, eax
call fcn.0040b650
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x518]
call fcn.0040a6f0
mov esi, eax
lea eax, [ebp - 0x440]
cmp eax, esi
je 0x409006
cmp dword [ebp - 0x42c], 8
jb 0x408fdd
push dword [ebp - 0x440]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x42c], 7
push esi
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
call fcn.0040adf0
cmp dword [ebp - 0x444], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x409020
push dword [ebp - 0x458]
call esi
add esp, 4
lea ecx, [ebp - 0x518]
mov byte [ebp - 4], 0
call fcn.004090c0
jmp 0x409037
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x409037
test bl, bl
jne 0x40904f
cmp word [edi], ax
jne 0x408f04
mov edi, dword [ebp - 0x460]
lea eax, [ebp - 0x440]
push eax
mov ecx, edi
call fcn.0040a480
cmp dword [ebp - 0x42c], 8
jb 0x409077
push dword [ebp - 0x440]
call esi
add esp, 4
mov eax, edi
jmp 0x4090a3
lea eax, [ebp - 0x440]
mov ecx, esi
push eax
call fcn.0040a480
cmp dword [ebp - 0x42c], 8
jb 0x4090a1
push dword [ebp - 0x440]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047259d
mov esp, ebp
pop ebp
ret