Function at 0x10225fd0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x470
push ebx
push esi
mov esi, dword [esp + 0x47c]
push edi
push ebp
push 0x1023f920
push esi
call sym.MSVCRT40.dll_wcspbrk
add esp, 8
test eax, eax
je 0x10226019
call sym.MSVCRT40.dll__errno
mov dword [eax], 2
call sym.MSVCRT40.dll___doserrno
pop ebp
mov dword [eax], 2
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x470
ret
cmp word [esi + 2], 0x3a
jne 0x10226066
mov ax, word [esi]
test ax, ax
je 0x10226055
cmp word [esi + 4], 0
jne 0x10226055
call sym.MSVCRT40.dll__errno
mov dword [eax], 2
call sym.MSVCRT40.dll___doserrno
pop ebp
mov dword [eax], 2
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x470
ret
push eax
call sym.MSVCRT40.dll_towlower
movzx edi, ax
add esp, 4
sub edi, 0x60
jmp 0x1022606d
call sym.MSVCRT40.dll__getdrive
mov edi, eax
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov ebx, eax
jne 0x10226145
push 0x1023f918
push esi
call sym.MSVCRT40.dll_wcspbrk
add esp, 8
test eax, eax
je 0x1022611f
lea eax, [esp + 0x278]
push 0x104
push esi
push eax
call sym.MSVCRT40.dll__wfullpath
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x1022611f
push ebx
call sym.MSVCRT40.dll_wcslen
add esp, 4
cmp eax, 3
je 0x102260d1
push ebx
call fcn.102263a0
add esp, 4
test eax, eax
je 0x1022611f
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1022611f
xor eax, eax
mov ebp, dword [esp + 0x488]
mov word [esp + 0x54], ax
push 0xffffffffffffffff
mov dword [esp + 0x48], eax
push eax
mov dword [esp + 0x50], eax
push eax
mov dword [esp + 0x34], 0x10
push eax
push 1
push 1
push 0x7bc
call fcn.10238df0
add esp, 0x1c
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x28], eax
jmp 0x102262cd
call sym.MSVCRT40.dll__errno
mov dword [eax], 2
call sym.MSVCRT40.dll___doserrno
pop ebp
mov dword [eax], 2
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x470
ret
lea eax, [esp + 0x20]
lea ecx, [esp + 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x1022636f
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x1022636f
mov ebp, dword [esp + 0x488]
push 0xffffffffffffffff
mov eax, dword [esp + 0x20]
and eax, 0xffff
push eax
xor eax, eax
mov ax, word [esp + 0x22]
push eax
mov eax, dword [esp + 0x24]
and eax, 0xffff
push eax
xor eax, eax
mov ax, word [esp + 0x26]
push eax
xor eax, eax
mov ax, word [esp + 0x26]
push eax
mov eax, dword [esp + 0x28]
and eax, 0xffff
push eax
call fcn.10238df0
add esp, 0x1c
mov dword [ebp + 0x24], eax
cmp dword [esp + 0x34], 0
jne 0x102261cd
cmp dword [esp + 0x38], 0
je 0x1022623d
lea eax, [esp + 0x20]
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x10226349
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x10226349
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
and eax, 0xffff
push eax
xor eax, eax
mov ax, word [esp + 0x22]
push eax
mov eax, dword [esp + 0x24]
and eax, 0xffff
push eax
xor eax, eax
mov ax, word [esp + 0x26]
push eax
xor eax, eax
mov ax, word [esp + 0x26]
push eax
mov eax, dword [esp + 0x28]
and eax, 0xffff
push eax
call fcn.10238df0
add esp, 0x1c
cmp dword [esp + 0x2c], 0
mov dword [ebp + 0x20], eax
jne 0x10226253
cmp dword [esp + 0x30], 0
jne 0x10226253
mov eax, dword [ebp + 0x24]
jmp 0x102262c3
lea eax, [esp + 0x20]
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x10226323
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x10226323
mov eax, dword [esp + 0x1c]
push 0xffffffffffffffff
and eax, 0xffff
push eax
xor eax, eax
mov ax, word [esp + 0x22]
push eax
mov eax, dword [esp + 0x24]
and eax, 0xffff
push eax
xor eax, eax
mov ax, word [esp + 0x26]
push eax
xor eax, eax
mov ax, word [esp + 0x26]
push eax
mov eax, dword [esp + 0x28]
and eax, 0xffff
push eax
call fcn.10238df0
add esp, 0x1c
push ebx
mov dword [ebp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x28]
push esi
push eax
call fcn.10225ab0
mov word [ebp + 6], ax
add esp, 8
mov word [ebp + 8], 1
mov eax, dword [esp + 0x44]
push 1
xor esi, esi
push esi
push esi
push eax
call fcn.10229190
mov word [ebp + 0xc], si
lea ecx, [ebp + 0x18]
mov word [ebp + 4], si
add eax, dword [esp + 0x48]
mov word [ebp + 0xa], si
mov dword [ecx], eax
adc edx, esi
dec edi
xor eax, eax
mov dword [ecx + 4], edx
mov dword [ebp], edi
mov dword [ebp + 0x10], edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x470
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.102155c0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x470
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.102155c0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x470
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.102155c0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x470
ret