Function at 0x40d330
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c326
mov eax, dword fs:[0]
push eax
sub esp, 0x69c
mov eax, dword [0x4ce4bc]
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 0x40d66e
mov edi, dword [esi + 0x14]
mov eax, esi
cmp edi, 8
jb 0x40d377
mov eax, dword [esi]
cmp word [eax + 2], 0x3a
jne 0x40d66e
mov eax, esi
cmp edi, 8
jb 0x40d38b
mov eax, dword [esi]
cmp word [eax + 4], 0x5c
je 0x40d3a6
mov eax, esi
cmp edi, 8
jb 0x40d39b
mov eax, dword [esi]
cmp word [eax + 4], 0x2f
jne 0x40d66e
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 0x40d3fb
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 0x40d435
sub ecx, edx
sar ecx, 1
cmp ecx, 2
jne 0x40d66e
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 0x41]
cmp ax, 0x19
ja 0x40d461
add word [ebp - 0x24], 0x20
mov ecx, dword [ebp - 0x24]
lea eax, [ecx - 0x61]
cmp ax, 0x19
ja 0x40d4a0
cmp word [ebp - 0x22], 0x3a
jne 0x40d4a0
push 0x4a9b28
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 0x40d499
cmp eax, 6
jne 0x40d4a0
mov al, 1
jmp 0x40d670
lea eax, [ebp - 0x678]
push esi
push eax
call fcn.00495e40
push eax
lea eax, [ebp - 0x660]
mov dword [ebp - 4], 0
push eax
call fcn.00495b40
push eax
lea eax, [ebp - 0x6a8]
mov byte [ebp - 4], 1
push eax
call fcn.00496a70
add esp, 0x18
mov edx, dword [ebp - 0x64c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x40d515
mov ecx, dword [ebp - 0x660]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d50b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d568
push edx
push ecx
call fcn.004991fe
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 0x40d578
mov ecx, dword [ebp - 0x678]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d56e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d56e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991fe
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.00490270
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x40d5c2
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 0x40d60b
mov ecx, dword [ebp - 0x690]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d601
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d65a
push edx
push ecx
call fcn.004991fe
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 0x40d66a
mov ecx, dword [ebp - 0x6a8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40d660
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40d660
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004991fe
add esp, 8
mov al, bl
jmp 0x40d670
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.0049920c
mov esp, ebp
pop ebp
ret