Function at 0x102243e0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x1027c570]
mov dword [ebp - 4], eax
push esi
push 0x1026a734
mov eax, dword [ebp + 8]
push eax
call sym.MSVCR71D.dll_wcspbrk
add esp, 8
test eax, eax
je 0x10224425
call sym.MSVCR71D.dll__errno
mov dword [eax], 2
call sym.MSVCR71D.dll___doserrno
mov dword [eax], 2
or eax, 0xffffffff
jmp 0x1022485c
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + 2]
cmp edx, 0x3a
jne 0x10224481
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x10224464
mov edx, dword [ebp + 8]
movzx eax, word [edx + 4]
test eax, eax
jne 0x10224464
call sym.MSVCR71D.dll__errno
mov dword [eax], 2
call sym.MSVCR71D.dll___doserrno
mov dword [eax], 2
or eax, 0xffffffff
jmp 0x1022485c
mov ecx, dword [ebp + 8]
mov dx, word [ecx]
push edx
call sym.MSVCR71D.dll_towlower
add esp, 4
movzx eax, ax
sub eax, 0x60
mov dword [ebp - 0x468], eax
jmp 0x1022448c
call sym.MSVCR71D.dll__getdrive
mov dword [ebp - 0x468], eax
lea ecx, [ebp - 0x460]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x464], eax
cmp dword [ebp - 0x464], 0xffffffff
jne 0x102245b5
push 0x1026a72c
mov eax, dword [ebp + 8]
push eax
call sym.MSVCR71D.dll_wcspbrk
add esp, 8
test eax, eax
je 0x10224525
push 0x104
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push edx
call sym.MSVCR71D.dll__wfullpath
add esp, 0xc
mov dword [ebp - 0x46c], eax
cmp dword [ebp - 0x46c], 0
je 0x10224525
mov eax, dword [ebp - 0x46c]
push eax
call sym.MSVCR71D.dll_wcslen
add esp, 4
cmp eax, 3
je 0x10224513
mov ecx, dword [ebp - 0x46c]
push ecx
call fcn.10224870
add esp, 4
test eax, eax
je 0x10224525
mov edx, dword [ebp - 0x46c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
ja 0x10224543
call sym.MSVCR71D.dll__errno
mov dword [eax], 2
call sym.MSVCR71D.dll___doserrno
mov dword [eax], 2
or eax, 0xffffffff
jmp 0x1022485c
mov dword [ebp - 0x460], 0x10
mov dword [ebp - 0x444], 0
mov dword [ebp - 0x440], 0
mov word [ebp - 0x434], 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 0x102247db
lea eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x44c]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x102245e5
lea edx, [ebp - 0x484]
push edx
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x10224609
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.102048f0
add esp, 4
mov ecx, dword [ebp - 0x464]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
jmp 0x1022485c
push 0xffffffffffffffff
movzx edx, word [ebp - 0x478]
push edx
movzx eax, word [ebp - 0x47a]
push eax
movzx ecx, word [ebp - 0x47c]
push ecx
movzx edx, word [ebp - 0x47e]
push edx
movzx eax, word [ebp - 0x482]
push eax
movzx ecx, word [ebp - 0x484]
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 - 0x454], 0
jne 0x10224662
cmp dword [ebp - 0x450], 0
je 0x102246fb
lea edx, [ebp - 0x474]
push edx
lea eax, [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x10224692
lea ecx, [ebp - 0x484]
push ecx
lea edx, [ebp - 0x474]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x102246b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.102048f0
add esp, 4
mov eax, dword [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
jmp 0x1022485c
push 0xffffffffffffffff
movzx ecx, word [ebp - 0x478]
push ecx
movzx edx, word [ebp - 0x47a]
push edx
movzx eax, word [ebp - 0x47c]
push eax
movzx ecx, word [ebp - 0x47e]
push ecx
movzx edx, word [ebp - 0x482]
push edx
movzx eax, word [ebp - 0x484]
push eax
call fcn.102529b0
add esp, 0x1c
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], edx
jmp 0x1022470d
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 - 0x45c], 0
jne 0x10224723
cmp dword [ebp - 0x458], 0
je 0x102247bc
lea ecx, [ebp - 0x474]
push ecx
lea edx, [ebp - 0x45c]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x10224753
lea eax, [ebp - 0x484]
push eax
lea ecx, [ebp - 0x474]
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x10224777
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.102048f0
add esp, 4
mov edx, dword [ebp - 0x464]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
jmp 0x1022485c
push 0xffffffffffffffff
movzx eax, word [ebp - 0x478]
push eax
movzx ecx, word [ebp - 0x47a]
push ecx
movzx edx, word [ebp - 0x47c]
push edx
movzx eax, word [ebp - 0x47e]
push eax
movzx ecx, word [ebp - 0x482]
push ecx
movzx edx, word [ebp - 0x484]
push edx
call fcn.102529b0
add esp, 0x1c
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], edx
jmp 0x102247ce
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 - 0x464]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x460]
push eax
call fcn.10223d60
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 - 0x444]
xor ecx, ecx
push 1
push 0
push ecx
push eax
call fcn.1021b220
mov ecx, dword [ebp - 0x440]
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 - 0x468]
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