Function at 0x6d44a40f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push 0x6d4624dc
push esi
call sym.MSVCRT20.dll__mbspbrk
add esp, 8
test eax, eax
je 0x6d44a450
call sym.MSVCRT20.dll__errno
mov dword [eax], 2
call sym.MSVCRT20.dll___doserrno
mov dword [eax], 2
mov eax, 0xffffffff
jmp 0x6d44a585
cmp byte [esi + 1], 0x3a
jne 0x6d44a58c
mov al, byte [esi]
test al, al
je 0x6d44a47e
cmp byte [esi + 2], 0
jne 0x6d44a47e
call sym.MSVCRT20.dll__errno
mov dword [eax], 2
call sym.MSVCRT20.dll___doserrno
mov dword [eax], 2
jmp 0x6d44a446
movsx eax, al
push eax
call sym.MSVCRT20.dll__mbctolower
add esp, 4
sub eax, 0x60
mov dword [ebp - 4], eax
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov ebx, eax
jne 0x6d44a5b1
push 0x6d4624e0
push esi
call sym.MSVCRT20.dll__mbspbrk
add esp, 8
test eax, eax
je 0x6d44a596
push 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call sym.MSVCRT20.dll__fullpath
add esp, 0xc
mov edx, eax
test edx, edx
je 0x6d44a596
mov edi, edx
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 3
jne 0x6d44a596
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x6d44a596
mov dword [ebp - 0x260], 0x10
mov edi, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
mov byte [ebp - 0x234], 0
push 0
push 0
push 1
push 1
push 0x50
call fcn.6d453c00
add esp, 0x18
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x20], eax
push esi
push dword [ebp - 0x260]
call fcn.6d44a33b
mov word [edi + 8], 1
mov word [edi + 6], ax
add esp, 8
mov eax, dword [ebp - 0x240]
mov dword [edi + 0x14], eax
xor eax, eax
mov word [edi + 4], ax
mov word [edi + 0xc], ax
mov word [edi + 0xa], ax
mov eax, dword [ebp - 4]
dec eax
mov dword [edi], eax
mov dword [edi + 0x10], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call sym.MSVCRT20.dll__getdrive
jmp 0x6d44a48d
call sym.MSVCRT20.dll__errno
mov dword [eax], 2
call sym.MSVCRT20.dll___doserrno
mov dword [eax], 2
jmp 0x6d44a446
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x24c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x6d44a6e9
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x6d44a6e9
movzx eax, word [ebp - 0x10]
movzx ecx, word [ebp - 0x12]
mov edi, dword [ebp + 0xc]
push eax
movzx edx, word [ebp - 0x14]
push ecx
push edx
movzx eax, word [ebp - 0x16]
movzx ecx, word [ebp - 0x1a]
movzx edx, word [ebp - 0x1c]
push eax
push ecx
push edx
call fcn.6d453c00
add esp, 0x18
mov dword [edi + 0x1c], eax
cmp dword [ebp - 0x254], 0
jne 0x6d44a61e
cmp dword [ebp - 0x250], 0
je 0x6d44a673
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x254]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x6d44a6e9
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x6d44a6e9
movzx eax, word [ebp - 0x10]
movzx ecx, word [ebp - 0x12]
push eax
push ecx
movzx edx, word [ebp - 0x14]
movzx eax, word [ebp - 0x16]
push edx
push eax
movzx ecx, word [ebp - 0x1a]
movzx edx, word [ebp - 0x1c]
push ecx
push edx
call fcn.6d453c00
add esp, 0x18
cmp dword [ebp - 0x25c], 0
mov dword [edi + 0x18], eax
jne 0x6d44a69a
cmp dword [ebp - 0x258], 0
jne 0x6d44a69a
mov eax, dword [edi + 0x1c]
push ebx
mov dword [edi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x6d44a54a
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x25c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x6d44a6e9
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x6d44a6e9
movzx eax, word [ebp - 0x10]
movzx ecx, word [ebp - 0x12]
push eax
push ecx
movzx edx, word [ebp - 0x14]
movzx eax, word [ebp - 0x16]
push edx
push eax
movzx ecx, word [ebp - 0x1a]
movzx edx, word [ebp - 0x1c]
push ecx
push edx
call fcn.6d453c00
add esp, 0x18
jmp 0x6d44a68b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.6d440737
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x6d44a446