Function at 0x10222a90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x1027c570]
mov dword [ebp - 4], eax
push esi
push 0x1026a698
mov eax, dword [ebp + 8]
push eax
call sym.MSVCR71D.dll__mbspbrk
add esp, 8
test eax, eax
je 0x10222ad5
call sym.MSVCR71D.dll__errno
mov dword [eax], 2
call sym.MSVCR71D.dll___doserrno
mov dword [eax], 2
or eax, 0xffffffff
jmp 0x10222f07
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + 1]
cmp edx, 0x3a
jne 0x10222b2e
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x10222b14
mov edx, dword [ebp + 8]
movsx eax, byte [edx + 2]
test eax, eax
jne 0x10222b14
call sym.MSVCR71D.dll__errno
mov dword [eax], 2
call sym.MSVCR71D.dll___doserrno
mov dword [eax], 2
or eax, 0xffffffff
jmp 0x10222f07
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
push edx
call sym.MSVCR71D.dll__mbctolower
add esp, 4
sub eax, 0x60
mov dword [ebp - 0x258], eax
jmp 0x10222b39
call sym.MSVCR71D.dll__getdrive
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x250]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0xffffffff
jne 0x10222c60
push 0x1026a694
mov edx, dword [ebp + 8]
push edx
call sym.MSVCR71D.dll__mbspbrk
add esp, 8
test eax, eax
je 0x10222bd2
push 0x104
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
call sym.MSVCR71D.dll__fullpath
add esp, 0xc
mov dword [ebp - 0x25c], eax
cmp dword [ebp - 0x25c], 0
je 0x10222bd2
mov edx, dword [ebp - 0x25c]
push edx
call sym.MSVCR71D.dll_strlen
add esp, 4
cmp eax, 3
je 0x10222bc0
mov eax, dword [ebp - 0x25c]
push eax
call fcn.10222f20
add esp, 4
test eax, eax
je 0x10222bd2
mov ecx, dword [ebp - 0x25c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
ja 0x10222bf0
call sym.MSVCR71D.dll__errno
mov dword [eax], 2
call sym.MSVCR71D.dll___doserrno
mov dword [eax], 2
or eax, 0xffffffff
jmp 0x10222f07
mov dword [ebp - 0x250], 0x10
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov byte [ebp - 0x224], 0
push 0xffffffffffffffff
push 0
push 0
push 0
push 1
push 1
push 0x7bc
call fcn.102529b0
add esp, 0x1c
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x20], ecx
mov eax, dword [eax + 0x2c]
mov dword [edx + 0x24], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x28]
mov dword [ecx + 0x30], eax
mov edx, dword [edx + 0x2c]
mov dword [ecx + 0x34], edx
jmp 0x10222e86
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x23c]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x10222c90
lea edx, [ebp - 0x274]
push edx
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x10222cb4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.102048f0
add esp, 4
mov ecx, dword [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
jmp 0x10222f07
push 0xffffffffffffffff
movzx edx, word [ebp - 0x268]
push edx
movzx eax, word [ebp - 0x26a]
push eax
movzx ecx, word [ebp - 0x26c]
push ecx
movzx edx, word [ebp - 0x26e]
push edx
movzx eax, word [ebp - 0x272]
push eax
movzx ecx, word [ebp - 0x274]
push ecx
call fcn.102529b0
add esp, 0x1c
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
cmp dword [ebp - 0x244], 0
jne 0x10222d0d
cmp dword [ebp - 0x240], 0
je 0x10222da6
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x10222d3d
lea ecx, [ebp - 0x274]
push ecx
lea edx, [ebp - 0x264]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x10222d61
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.102048f0
add esp, 4
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
jmp 0x10222f07
push 0xffffffffffffffff
movzx ecx, word [ebp - 0x268]
push ecx
movzx edx, word [ebp - 0x26a]
push edx
movzx eax, word [ebp - 0x26c]
push eax
movzx ecx, word [ebp - 0x26e]
push ecx
movzx edx, word [ebp - 0x272]
push edx
movzx eax, word [ebp - 0x274]
push eax
call fcn.102529b0
add esp, 0x1c
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
jmp 0x10222db8
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x20], ecx
mov eax, dword [eax + 0x2c]
mov dword [edx + 0x24], eax
cmp dword [ebp - 0x24c], 0
jne 0x10222dce
cmp dword [ebp - 0x248], 0
je 0x10222e67
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x24c]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x10222dfe
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x10222e22
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.102048f0
add esp, 4
mov edx, dword [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
jmp 0x10222f07
push 0xffffffffffffffff
movzx eax, word [ebp - 0x268]
push eax
movzx ecx, word [ebp - 0x26a]
push ecx
movzx edx, word [ebp - 0x26c]
push edx
movzx eax, word [ebp - 0x26e]
push eax
movzx ecx, word [ebp - 0x272]
push ecx
movzx edx, word [ebp - 0x274]
push edx
call fcn.102529b0
add esp, 0x1c
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], edx
jmp 0x10222e79
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x28]
mov dword [edx + 0x30], ecx
mov eax, dword [eax + 0x2c]
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0x254]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x250]
push eax
call fcn.10222410
add esp, 8
mov ecx, dword [ebp + 0xc]
mov word [ecx + 6], ax
mov edx, dword [ebp + 0xc]
mov word [edx + 8], 1
mov eax, dword [ebp - 0x234]
xor ecx, ecx
push 1
push 0
push ecx
push eax
call fcn.1021b220
mov ecx, dword [ebp - 0x230]
xor esi, esi
add eax, ecx
adc edx, esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov edx, dword [ebp + 0xc]
mov word [edx + 4], 0
mov eax, dword [ebp + 0xc]
mov word [eax + 0xc], 0
mov ecx, dword [ebp + 0xc]
mov word [ecx + 0xa], 0
mov edx, dword [ebp - 0x258]
sub edx, 1
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ecx + 0x10], eax
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.1020cd80
pop esi
mov esp, ebp
pop ebp
ret