Function at 0x40d1f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a516
mov eax, dword fs:[0]
push eax
sub esp, 0x69c
mov eax, dword [0x4cc498]
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 esi, dword [ebp + 8]
cmp dword [esi + 0x10], 3
jb 0x40d52e
mov edi, dword [esi + 0x14]
mov eax, esi
cmp edi, 8
jb 0x40d237
mov eax, dword [esi]
cmp word [eax + 2], 0x3a
jne 0x40d52e
mov eax, esi
cmp edi, 8
jb 0x40d24b
mov eax, dword [esi]
cmp word [eax + 4], 0x5c
je 0x40d266
mov eax, esi
cmp edi, 8
jb 0x40d25b
mov eax, dword [esi]
cmp word [eax + 4], 0x2f
jne 0x40d52e
xor eax, eax
push 0x20a
push eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x648]
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x43c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x20a
lea eax, [ebp - 0x230]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
mov eax, esi
cmp edi, 8
jb 0x40d2bb
mov eax, dword [esi]
push 0x105
lea ecx, [ebp - 0x230]
push ecx
push 0x105
lea ecx, [ebp - 0x43c]
push ecx
push 0x105
lea ecx, [ebp - 0x648]
push ecx
push 0xa
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
lea ecx, [ebp - 0x24]
add esp, 0x24
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d2f5
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x40d52e
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 0x41]
cmp ax, 0x19
ja 0x40d321
add word [ebp - 0x24], 0x20
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 0x61]
cmp ax, 0x19
ja 0x40d360
cmp word [ebp - 0x22], 0x3a
jne 0x40d360
push 0x4a7b30
lea eax, [ebp - 0x24]
push 0xa
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x40d359
cmp eax, 6
jne 0x40d360
mov al, 1
jmp 0x40d530
lea eax, [ebp - 0x678]
push esi
push eax
call fcn.00493e20
push eax
lea eax, [ebp - 0x660]
mov dword [ebp - 4], 0
push eax
call fcn.00493b20
push eax
lea eax, [ebp - 0x6a8]
mov byte [ebp - 4], 1
push eax
call fcn.00494a50
add esp, 0x18
mov edx, dword [ebp - 0x64c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x40d3d5
mov ecx, dword [ebp - 0x660]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d3cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d428
push edx
push ecx
call fcn.0049744e
add esp, 8
xor eax, eax
mov dword [ebp - 0x650], 0
mov dword [ebp - 0x64c], 7
mov word [ebp - 0x660], ax
mov edx, dword [ebp - 0x664]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x40d438
mov ecx, dword [ebp - 0x678]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d42e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d42e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049744e
add esp, 8
xor eax, eax
mov dword [ebp - 0x668], 0
cmp dword [ebp - 0x694], 8
lea esi, [ebp - 0x6a8]
mov word [ebp - 0x678], ax
lea eax, [ebp - 0x690]
cmovae esi, dword [ebp - 0x6a8]
push 1
push eax
mov dword [ebp - 0x664], 7
call fcn.0048fad0
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x40d482
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
mov edx, dword [ebp - 0x67c]
test eax, eax
setne bl
cmp edx, 8
jb 0x40d4cb
mov ecx, dword [ebp - 0x690]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d4c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d51a
push edx
push ecx
call fcn.0049744e
add esp, 8
mov edx, dword [ebp - 0x694]
xor eax, eax
mov dword [ebp - 0x680], 0
mov dword [ebp - 0x67c], 7
mov word [ebp - 0x690], ax
cmp edx, 8
jb 0x40d52a
mov ecx, dword [ebp - 0x6a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d520
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d520
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049744e
add esp, 8
mov al, bl
jmp 0x40d530
xor al, al
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.0049745c
mov esp, ebp
pop ebp
ret