Function at 0x40ce80
Capabilities:
Get disk information
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x428fc6
push eax
mov dword fs:[0], esp
sub esp, 0x170
push ebx
push esi
push edi
call fcn.00410db0
test eax, eax
jne 0x40d1de
mov ebx, dword [esp + 0x194]
mov ecx, 0x10
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40ceec
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x38]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40cef9
lea ecx, [esp + 0x38]
push ecx
call fcn.00410c30
add esp, 4
lea edx, [esp + 0x38]
push 0
push edx
call fcn.0041f660
test eax, eax
je 0x40cf17
push eax
call fcn.00410d00
add esp, 4
jmp 0x40d1de
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
mov edi, str.Admin
or ecx, 0xffffffff
mov dword [esp + 0x34], eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x28]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push 0x10
push edx
call fcn.00410cd0
mov edx, dword [esp + 0x1ac]
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x1a0]
push ecx
mov ecx, dword [esp + 0x1a0]
push edx
push eax
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.0041f890
mov esi, eax
test esi, esi
je 0x40cfe5
lea eax, [esp + 0x38]
push eax
call fcn.0041f780
push esi
call fcn.00410d00
add esp, 4
jmp 0x40d1de
push ebp
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_3
movsx ecx, byte [esp + 0x194]
push ecx
lea edx, [esp + 0x14]
push 0x434154
push edx
mov dword [esp + 0x194], 0
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push 0x3a
call sub.MFC42u.DLL_CString::operator_1
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push eax
call esi
cmp eax, 1
je 0x40d0e6
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, dword [sym.imp.MSVCRT.dll__wcsicmp]
mov edi, eax
mov ebx, 0x19
mov edx, edi
mov ecx, ebx
shr edx, cl
test dl, 1
jne 0x40d0af
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_3
mov al, bl
lea edx, [esp + 0x14]
add al, 0x41
mov byte [esp + 0x188], 1
movsx ecx, al
push ecx
push 0x434154
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
call esi
cmp eax, 1
jne 0x40d09e
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x40d0b7
lea ecx, [esp + 0x14]
mov byte [esp + 0x188], 0
call sub.MFC42u.DLL_CString::CString
dec ebx
cmp ebx, 2
jg 0x40d049
jmp 0x40d0df
mov eax, dword [esp + 0x1a8]
add bl, 0x41
test eax, eax
mov byte [esp + 0x194], bl
je 0x40d0ce
mov byte [eax], bl
lea ecx, [esp + 0x14]
mov byte [esp + 0x188], 0
call sub.MFC42u.DLL_CString::CString
mov ebx, dword [esp + 0x198]
movsx eax, byte [esp + 0x194]
push eax
call dword [sym.imp.MSVCRT.dll_toupper]
mov byte [esp + 0x2c], al
mov ecx, 0x41
mov esi, dword [esp + 0x2c]
xor eax, eax
lea edi, [esp + 0x80]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x80]
push ecx
push esi
call fcn.00410c90
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
push esi
call fcn.00420040
mov edi, eax
pop ebp
test edi, edi
je 0x40d137
lea eax, [esp + 0x38]
push eax
jmp 0x40d15c
lea ecx, [esp + 0x78]
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.0041e2a0
mov edi, eax
test edi, edi
je 0x40d184
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00420150
lea ecx, [esp + 0x38]
push ecx
call fcn.0041f780
push edi
call fcn.00410d00
add esp, 4
lea ecx, [esp + 0xc]
mov esi, eax
mov dword [esp + 0x184], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, esi
jmp 0x40d1de
push esi
call fcn.0040ebb0
mov eax, dword [esp + 0x1a0]
lea edx, [esp + 0x3c]
push esi
add eax, 8
push edx
push eax
call fcn.0040ef00
add esp, 0x10
test ebx, ebx
je 0x40d1c8
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
mov dword [esp + 0x184], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x17c
ret