Function at 0x40d3c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48af41
mov eax, dword fs:[0]
push eax
sub esp, 0x69c
mov eax, dword [0x4b74b0]
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 0x40d6fe
mov edi, dword [esi + 0x14]
mov eax, esi
cmp edi, 8
jb 0x40d407
mov eax, dword [esi]
cmp word [eax + 2], 0x3a
jne 0x40d6fe
mov eax, esi
cmp edi, 8
jb 0x40d41b
mov eax, dword [esi]
cmp word [eax + 4], 0x5c
je 0x40d436
mov eax, esi
cmp edi, 8
jb 0x40d42b
mov eax, dword [esi]
cmp word [eax + 4], 0x2f
jne 0x40d6fe
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 0x40d48b
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 0x40d4c5
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x40d6fe
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 0x41]
cmp ax, 0x19
ja 0x40d4f1
add word [ebp - 0x24], 0x20
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 0x61]
cmp ax, 0x19
ja 0x40d530
cmp word [ebp - 0x22], 0x3a
jne 0x40d530
push 0x496a90
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 0x40d529
cmp eax, 6
jne 0x40d530
mov al, 1
jmp 0x40d700
lea eax, [ebp - 0x678]
push esi
push eax
call fcn.00484770
push eax
lea eax, [ebp - 0x660]
mov dword [ebp - 4], 0
push eax
call fcn.00484450
push eax
lea eax, [ebp - 0x6a8]
mov byte [ebp - 4], 1
push eax
call fcn.00485370
add esp, 0x18
mov edx, dword [ebp - 0x64c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x40d5a5
mov ecx, dword [ebp - 0x660]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d59b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d5f8
push edx
push ecx
call fcn.00487869
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 0x40d608
mov ecx, dword [ebp - 0x678]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d5fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d5fe
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
add esp, 8
xor eax, eax
mov dword [ebp - 0x668], 0
mov word [ebp - 0x678], ax
lea eax, [ebp - 0x690]
push 1
push eax
mov dword [ebp - 0x664], 7
call fcn.00480950
add esp, 8
lea ecx, [ebp - 0x6a8]
cmp dword [ebp - 0x694], 8
cmovae ecx, dword [ebp - 0x6a8]
cmp dword [eax + 0x14], 8
jb 0x40d652
mov eax, dword [eax]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsPrefixW]
mov edx, dword [ebp - 0x67c]
test eax, eax
setne bl
cmp edx, 8
jb 0x40d69b
mov ecx, dword [ebp - 0x690]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d691
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d6ea
push edx
push ecx
call fcn.00487869
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 0x40d6fa
mov ecx, dword [ebp - 0x6a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d6f0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d6f0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00487869
add esp, 8
mov al, bl
jmp 0x40d700
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.00487877
mov esp, ebp
pop ebp
ret