Function at 0x76b27180
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x76baa330]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x76b271c8
call sym.msvcrt.dll___doserrno
xor ebx, ebx
mov dword [eax], ebx
call sym.msvcrt.dll__errno
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call sym.msvcrt.dll__invalid_parameter
add esp, 0x14
jmp 0x76b2754d
test esi, esi
je 0x76b271a2
push 0x76af3e00
push edi
call sym.msvcrt.dll__mbspbrk
pop ecx
pop ecx
test eax, eax
je 0x76b271f3
call sym.msvcrt.dll__errno
push 2
pop esi
mov dword [eax], esi
call sym.msvcrt.dll___doserrno
mov dword [eax], esi
jmp 0x76b2754d
cmp byte [edi + 1], 0x3a
jne 0x76b27214
mov al, byte [edi]
test al, al
je 0x76b27205
cmp byte [edi + 2], 0
je 0x76b271dd
movsx eax, al
push eax
call sym.msvcrt.dll__mbctolower
pop ecx
sub eax, 0x60
jmp 0x76b27219
call sym.msvcrt.dll__getdrive
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileA]
xor ebx, ebx
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
jne 0x76b2733a
push 0x76af3e04
push edi
mov dword [ebp - 0x25c], ebx
call sym.msvcrt.dll__mbspbrk
pop ecx
pop ecx
test eax, eax
je 0x76b271dd
lea eax, [ebp - 0x25c]
push eax
push 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.76b26d42
mov edx, eax
add esp, 0x10
mov dword [ebp - 0x260], edx
test edx, edx
je 0x76b2731d
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x26c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x76b2728c
sub ecx, dword [ebp - 0x26c]
cmp ecx, 3
je 0x76b272af
push edx
call fcn.76b26be2
pop ecx
test eax, eax
je 0x76b2731d
mov edx, dword [ebp - 0x260]
push edx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeA]
xor ecx, ecx
inc ecx
cmp eax, ecx
jbe 0x76b2731d
cmp dword [ebp - 0x25c], ebx
je 0x76b272d1
push dword [ebp - 0x25c]
call sym.msvcrt.dll_free
pop ecx
push 0xffffffffffffffff
push ebx
push ebx
xor eax, eax
mov dword [ebp - 0x258], 0x10
push ebx
inc eax
mov dword [ebp - 0x23c], ebx
push eax
push eax
push 0x7bc
mov dword [ebp - 0x238], ebx
mov byte [ebp - 0x22c], bl
call fcn.76b851d8
mov ecx, edx
mov dword [esi + 0x28], eax
add esp, 0x1c
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 0x76b274ec
cmp dword [ebp - 0x25c], ebx
je 0x76b271dd
push dword [ebp - 0x25c]
call sym.msvcrt.dll_free
pop ecx
jmp 0x76b271dd
cmp dword [ebp - 0x244], ebx
jne 0x76b27350
cmp dword [ebp - 0x240], ebx
jne 0x76b27350
mov eax, ebx
mov edx, ebx
jmp 0x76b273c2
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x76b27534
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNELBASE.dll_FileTimeToSystemTime]
test eax, eax
je 0x76b27534
movzx eax, word [ebp - 0x10c]
push 0xffffffffffffffff
push eax
movzx eax, word [ebp - 0x10e]
push eax
movzx eax, word [ebp - 0x110]
push eax
movzx eax, word [ebp - 0x112]
push eax
movzx eax, word [ebp - 0x116]
push eax
movzx eax, word [ebp - 0x118]
push eax
call fcn.76b851d8
add esp, 0x1c
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
cmp dword [ebp - 0x24c], ebx
jne 0x76b273d8
cmp dword [ebp - 0x248], ebx
je 0x76b2744a
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x76b27534
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNELBASE.dll_FileTimeToSystemTime]
test eax, eax
je 0x76b27534
movzx eax, word [ebp - 0x10c]
push 0xffffffffffffffff
push eax
movzx eax, word [ebp - 0x10e]
push eax
movzx eax, word [ebp - 0x110]
push eax
movzx eax, word [ebp - 0x112]
push eax
movzx eax, word [ebp - 0x116]
push eax
movzx eax, word [ebp - 0x118]
push eax
call fcn.76b851d8
add esp, 0x1c
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
cmp dword [ebp - 0x254], ebx
jne 0x76b27468
cmp dword [ebp - 0x250], ebx
jne 0x76b27468
mov eax, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
jmp 0x76b274da
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x76b27534
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNELBASE.dll_FileTimeToSystemTime]
test eax, eax
je 0x76b27534
movzx eax, word [ebp - 0x10c]
push 0xffffffffffffffff
push eax
movzx eax, word [ebp - 0x10e]
push eax
movzx eax, word [ebp - 0x110]
push eax
movzx eax, word [ebp - 0x112]
push eax
movzx eax, word [ebp - 0x116]
push eax
movzx eax, word [ebp - 0x118]
push eax
call fcn.76b851d8
add esp, 0x1c
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
push dword [ebp - 0x25c]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
push edi
push dword [ebp - 0x258]
call fcn.76b26c80
pop ecx
mov word [esi + 6], ax
xor eax, eax
pop ecx
xor ecx, ecx
inc ecx
add eax, dword [ebp - 0x238]
mov word [esi + 8], cx
mov ecx, dword [ebp - 0x23c]
adc ecx, ebx
mov dword [esi + 0x18], eax
xor eax, eax
mov dword [esi + 0x1c], ecx
mov word [esi + 4], ax
mov dword [esi + 0xa], eax
mov eax, dword [ebp - 0x268]
dec eax
mov dword [esi], eax
mov dword [esi + 0x10], eax
xor eax, eax
jmp 0x76b27550
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push eax
call fcn.76b262a9
pop ecx
push dword [ebp - 0x25c]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.76b4dc60
leave
ret