Function at 0x7c35837b
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x3fc]
sub esp, 0x47c
mov eax, dword [0x7c38b118]
push esi
mov esi, dword [ebp + 0x404]
push 0x7c380dbc
push esi
mov dword [ebp + 0x3f8], eax
call sym.MSVCR71.dll_wcspbrk
test eax, eax
pop ecx
pop ecx
je 0x7c3583c5
call sym.MSVCR71.dll__errno
push 2
pop esi
mov dword [eax], esi
call sym.MSVCR71.dll___doserrno
mov dword [eax], esi
or eax, 0xffffffff
jmp 0x7c3586ab
push edi
xor edi, edi
cmp word [esi + 2], 0x3a
jne 0x7c358405
mov ax, word [esi]
cmp ax, di
je 0x7c3583f6
cmp word [esi + 4], di
jne 0x7c3583f6
call sym.MSVCR71.dll__errno
push 2
pop esi
mov dword [eax], esi
call sym.MSVCR71.dll___doserrno
mov dword [eax], esi
or eax, 0xffffffff
jmp 0x7c3586aa
push eax
call sym.MSVCR71.dll_towlower
movzx eax, ax
pop ecx
sub eax, 0x60
jmp 0x7c35840a
call sym.MSVCR71.dll__getdrive
mov dword [ebp - 0x80], eax
push ebx
lea eax, [ebp + 0x1a8]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
or ebx, 0xffffffff
cmp eax, ebx
mov dword [ebp - 0x74], eax
jne 0x7c3584df
push 0x7c380db4
push esi
call sym.MSVCR71.dll_wcspbrk
test eax, eax
pop ecx
pop ecx
je 0x7c3584c9
push 0x104
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.7c348894
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x7c3584c9
push esi
call sym.MSVCR71.dll_wcslen
cmp eax, 3
pop ecx
je 0x7c35846c
call fcn.7c357ff3
test eax, eax
je 0x7c3584c9
push esi
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x7c3584c9
mov esi, dword [ebp + 0x408]
push ebx
push edi
push edi
push edi
push 1
push 1
push 0x7bc
mov dword [ebp + 0x1a8], 0x10
mov dword [ebp + 0x1c4], edi
mov dword [ebp + 0x1c8], edi
mov word [ebp + 0x1d4], di
call fcn.7c348894
mov ecx, edx
add esp, 0x1c
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
jmp 0x7c35863a
call sym.MSVCR71.dll__errno
push 2
pop esi
mov dword [eax], esi
call sym.MSVCR71.dll___doserrno
mov dword [eax], esi
jmp 0x7c3586a7
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1bc]
push eax
call dword [sym.imp.kernel32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x7c358691
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.kernel32.dll_FileTimeToSystemTime]
test eax, eax
je 0x7c358691
movzx eax, word [ebp - 0x64]
push ebx
push eax
movzx eax, word [ebp - 0x66]
mov esi, dword [ebp + 0x408]
push eax
movzx eax, word [ebp - 0x68]
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6e]
push eax
movzx eax, word [ebp - 0x70]
push eax
call fcn.7c348894
add esp, 0x1c
cmp dword [ebp + 0x1b4], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edx
jne 0x7c35855b
cmp dword [ebp + 0x1b8], edi
jne 0x7c35855b
mov dword [esi + 0x20], eax
mov eax, edx
mov dword [esi + 0x24], eax
jmp 0x7c3585b7
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1b4]
push eax
call dword [sym.imp.kernel32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x7c358691
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.kernel32.dll_FileTimeToSystemTime]
test eax, eax
je 0x7c358691
movzx eax, word [ebp - 0x64]
push ebx
push eax
movzx eax, word [ebp - 0x66]
push eax
movzx eax, word [ebp - 0x68]
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6e]
push eax
movzx eax, word [ebp - 0x70]
push eax
call fcn.7c348894
add esp, 0x1c
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edx
cmp dword [ebp + 0x1ac], edi
jne 0x7c3585d5
cmp dword [ebp + 0x1b0], edi
jne 0x7c3585d5
mov eax, dword [esi + 0x28]
mov dword [esi + 0x30], eax
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x34], eax
jmp 0x7c358631
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1ac]
push eax
call dword [sym.imp.kernel32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x7c358691
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.kernel32.dll_FileTimeToSystemTime]
test eax, eax
je 0x7c358691
movzx eax, word [ebp - 0x64]
push ebx
push eax
movzx eax, word [ebp - 0x66]
push eax
movzx eax, word [ebp - 0x68]
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6e]
push eax
movzx eax, word [ebp - 0x70]
push eax
call fcn.7c348894
add esp, 0x1c
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
push dword [ebp - 0x74]
call dword [sym.imp.kernel32.dll_FindClose]
push dword [ebp + 0x404]
push dword [ebp + 0x1a8]
call fcn.7c357f30
pop ecx
pop ecx
push 1
push edi
push edi
push dword [ebp + 0x1c4]
mov word [esi + 6], ax
mov word [esi + 8], 1
call fcn.7c34203c
mov ecx, dword [ebp + 0x1c8]
xor ebx, ebx
add eax, ecx
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x80]
adc edx, ebx
dec eax
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c], edx
mov word [esi + 4], di
mov word [esi + 0xc], di
mov word [esi + 0xa], di
xor eax, eax
jmp 0x7c3586a9
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.7c349ee2
pop ecx
push dword [ebp - 0x74]
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, ebx
pop ebx
pop edi
mov ecx, dword [ebp + 0x3f8]
pop esi
call fcn.7c341aed
add ebp, 0x3fc
leave
ret