Function at 0x78019da0
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 0x78019eae
xor ebp, ebp
cmp word [edi + 2], 0x3a
jne 0x78019df5
mov ax, word [edi]
cmp ax, bp
je 0x78019de2
cmp word [edi + 4], bp
je 0x78019eae
push eax
call sym.MSVCRT.dll_towlower
and eax, 0xffff
add esp, 4
sub eax, 0x60
jmp 0x78019dfa
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 0x78019ed2
push 0x78037688
push edi
call sym.MSVCRT.dll_wcspbrk
add esp, 8
test eax, eax
je 0x78019eae
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 0x78019eae
push esi
call sym.MSVCRT.dll_wcslen
add esp, 4
cmp eax, 3
je 0x78019e62
push esi
call fcn.7801a450
add esp, 4
test eax, eax
je 0x78019eae
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x78019eae
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 + 0x1c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], eax
jmp 0x7801a07b
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 0x7801a0bf
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x7801a0bf
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 + 0x1c], eax
jne 0x78019f64
cmp dword [esp + 0x3c], ebp
je 0x78019fde
lea eax, [esp + 0x24]
lea ecx, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x7801a0bf
lea edx, [esp + 0x10]
lea eax, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x7801a0bf
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 + 0x18], eax
mov eax, dword [esp + 0x30]
cmp eax, ebp
jne 0x78019ff7
cmp dword [esp + 0x34], ebp
jne 0x78019ff7
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0x20], ecx
jmp 0x7801a074
lea edx, [esp + 0x24]
lea eax, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x7801a0bf
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x7801a0bf
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 + 0x20], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x2c]
push edi
push eax
call fcn.78019cd0
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x54]
mov word [esi + 6], ax
add esp, 8
lea eax, [edx - 1]
mov word [esi + 8], 1
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov word [esi + 4], bp
mov word [esi + 0xc], bp
mov word [esi + 0xa], bp
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