Function at 0x7801a0f0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x474
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x488]
push 0x78037690
push edi
call sym.MSVCRT.dll_wcspbrk
add esp, 8
test eax, eax
jne 0x7801a1fe
xor ebp, ebp
cmp word [edi + 2], 0x3a
jne 0x7801a145
mov ax, word [edi]
cmp ax, bp
je 0x7801a132
cmp word [edi + 4], bp
je 0x7801a1fe
push eax
call sym.MSVCRT.dll_towlower
and eax, 0xffff
add esp, 4
sub eax, 0x60
jmp 0x7801a14a
call sym.MSVCRT.dll__getdrive
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x7801a222
push 0x78037688
push edi
call sym.MSVCRT.dll_wcspbrk
add esp, 8
test eax, eax
je 0x7801a1fe
push 0x104
lea ecx, [esp + 0x280]
push edi
push ecx
call sym.MSVCRT.dll__wfullpath
mov esi, eax
add esp, 0xc
cmp esi, ebp
je 0x7801a1fe
push esi
call sym.MSVCRT.dll_wcslen
add esp, 4
cmp eax, 3
je 0x7801a1b2
push esi
call fcn.7801a450
add esp, 4
test eax, eax
je 0x7801a1fe
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x7801a1fe
push 0xffffffffffffffff
push ebp
push ebp
push ebp
push 1
push 1
push 0x7bc
mov dword [esp + 0x48], 0x10
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov word [esp + 0x74], bp
call fcn.7802e570
mov esi, dword [esp + 0x4a8]
add esp, 0x1c
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], eax
jmp 0x7801a3cb
call sym.MSVCRT.dll__errno
mov dword [eax], 2
call sym.MSVCRT.dll___doserrno
mov dword [eax], 2
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x474
ret
lea edx, [esp + 0x24]
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x7801a426
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x7801a426
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1a]
mov edx, dword [esp + 0x18]
and eax, 0xffff
push 0xffffffffffffffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x1e]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
push edx
mov edx, dword [esp + 0x20]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
call fcn.7802e570
mov esi, dword [esp + 0x4a8]
mov ecx, dword [esp + 0x54]
add esp, 0x1c
cmp ecx, ebp
mov dword [esi + 0x24], eax
jne 0x7801a2b4
cmp dword [esp + 0x3c], ebp
je 0x7801a32e
lea eax, [esp + 0x24]
lea ecx, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x7801a426
lea edx, [esp + 0x10]
lea eax, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x7801a426
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1a]
mov eax, dword [esp + 0x18]
and ecx, 0xffff
push 0xffffffffffffffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x1e]
push eax
mov eax, dword [esp + 0x20]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
call fcn.7802e570
add esp, 0x1c
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x30]
cmp eax, ebp
jne 0x7801a347
cmp dword [esp + 0x34], ebp
jne 0x7801a347
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x28], ecx
jmp 0x7801a3c4
lea edx, [esp + 0x24]
lea eax, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x7801a426
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x7801a426
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1a]
mov edx, dword [esp + 0x18]
and eax, 0xffff
push 0xffffffffffffffff
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x1e]
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
push edx
mov edx, dword [esp + 0x20]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
call fcn.7802e570
add esp, 0x1c
mov dword [esi + 0x28], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x2c]
push edi
push eax
call fcn.78019cd0
mov ecx, dword [esp + 0x50]
add esp, 8
mov word [esi + 6], ax
mov word [esi + 8], 1
push 1
push ebp
push ebp
push ecx
call fcn.78016550
mov ecx, dword [esp + 0x4c]
xor edi, edi
add eax, ecx
mov word [esi + 4], bp
adc edx, edi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x20]
mov word [esi + 0xc], bp
mov word [esi + 0xa], bp
lea eax, [edx - 1]
mov dword [esi], eax
mov dword [esi + 0x10], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x474
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.7800a850
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x474
ret