Function at 0x77c1fca2
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x77c5fac4]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x77c11358
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x260], edi
call sym.msvcrt.dll__mbspbrk
test eax, eax
pop ecx
pop ecx
je 0x77c1fced
call sym.msvcrt.dll__errno
push 2
pop esi
mov dword [eax], esi
call sym.msvcrt.dll___doserrno
mov dword [eax], esi
or eax, 0xffffffff
jmp 0x77c20019
push ebx
xor ebx, ebx
cmp byte [edi + 1], 0x3a
jne 0x77c1fd14
mov al, byte [edi]
cmp al, bl
je 0x77c1fd05
cmp byte [edi + 2], bl
je 0x77c1fde5
movsx eax, al
push eax
call sym.msvcrt.dll__mbctolower
pop ecx
sub eax, 0x60
jmp 0x77c1fd19
call sym.msvcrt.dll__getdrive
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x25c], eax
jne 0x77c1fdfb
push 0x77c11354
push edi
call sym.msvcrt.dll__mbspbrk
test eax, eax
pop ecx
pop ecx
je 0x77c1fde5
push 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call sym.msvcrt.dll__fullpath
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x77c1fde5
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x77c1fd6f
sub eax, edx
cmp eax, 3
je 0x77c1fd88
mov ecx, edi
call fcn.77c2002a
test eax, eax
je 0x77c1fde5
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x77c1fde5
push 0xffffffffffffffff
push ebx
push ebx
push ebx
push 1
push 1
push 0x7bc
mov dword [ebp - 0x248], 0x10
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov byte [ebp - 0x21c], bl
call fcn.77c4b19c
mov edi, dword [ebp - 0x260]
mov ecx, edx
add esp, 0x1c
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
jmp 0x77c1ffa7
call sym.msvcrt.dll__errno
push 2
pop esi
mov dword [eax], esi
call sym.msvcrt.dll___doserrno
mov dword [eax], esi
jmp 0x77c20015
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x77c1fffc
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x77c1fffc
movzx eax, word [ebp - 0x24c]
push 0xffffffffffffffff
push eax
movzx eax, word [ebp - 0x24e]
push eax
movzx eax, word [ebp - 0x250]
push eax
movzx eax, word [ebp - 0x252]
push eax
movzx eax, word [ebp - 0x256]
push eax
movzx eax, word [ebp - 0x258]
push eax
call fcn.77c4b19c
add esp, 0x1c
cmp dword [ebp - 0x23c], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
jne 0x77c1fe8d
cmp dword [ebp - 0x238], ebx
jne 0x77c1fe8d
mov dword [esi + 0x20], eax
mov eax, edx
mov dword [esi + 0x24], eax
jmp 0x77c1ff05
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x77c1fffc
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x77c1fffc
movzx eax, word [ebp - 0x24c]
push 0xffffffffffffffff
push eax
movzx eax, word [ebp - 0x24e]
push eax
movzx eax, word [ebp - 0x250]
push eax
movzx eax, word [ebp - 0x252]
push eax
movzx eax, word [ebp - 0x256]
push eax
movzx eax, word [ebp - 0x258]
push eax
call fcn.77c4b19c
add esp, 0x1c
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
cmp dword [ebp - 0x244], ebx
jne 0x77c1ff23
cmp dword [ebp - 0x240], ebx
jne 0x77c1ff23
mov eax, dword [esi + 0x28]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x34], eax
jmp 0x77c1ff9b
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x77c1fffc
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x77c1fffc
movzx eax, word [ebp - 0x24c]
push 0xffffffffffffffff
push eax
movzx eax, word [ebp - 0x24e]
push eax
movzx eax, word [ebp - 0x250]
push eax
movzx eax, word [ebp - 0x252]
push eax
movzx eax, word [ebp - 0x256]
push eax
movzx eax, word [ebp - 0x258]
push eax
call fcn.77c4b19c
add esp, 0x1c
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
push dword [ebp - 0x248]
call fcn.77c1f893
pop ecx
pop ecx
push 1
push ebx
push ebx
push dword [ebp - 0x22c]
mov word [esi + 6], ax
mov word [esi + 8], 1
call fcn.77c2c780
mov ecx, dword [ebp - 0x228]
xor edi, edi
add eax, ecx
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x268]
adc edx, edi
dec eax
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c], edx
mov word [esi + 4], bx
mov word [esi + 0xc], bx
mov word [esi + 0xa], bx
xor eax, eax
jmp 0x77c20018
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.77c1f2d8
pop ecx
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.77c57993
leave
ret