Function at 0x610a5b90
Capabilities:
Get disk information
Get disk size
Get volume information via ioctl

Disassembly:
push ebp
mov eax, 0xffffffff
push edi
push esi
push ebx
sub esp, 0x42c
mov edx, dword fs:[4]
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x230]
mov ebx, dword [esp + 0x440]
sub edx, 0x319c
mov eax, dword [edx + 0xc30]
mov dword [esp + 0x300], eax
mov eax, dword [edx + 0xc34]
mov dword [edx + 0xc30], ecx
mov dword [esp + 0x304], eax
mov eax, 0xe
mov dword [edx + 0xc34], eax
mov dword [esp], ecx
call sym.___sjfault
test eax, eax
jne 0x610a611c
cmp byte [ebx], 0
je 0x610a6174
test byte [0x6110c854], 1
jne 0x610a5fd0
mov eax, dword [esp + 0x444]
test eax, eax
je 0x610a623f
mov dword [esp], 0
mov ecx, 0x21
mov edx, ebx
lea eax, [esp + 0xd0]
call method.path_conv.check_char_const__unsigned_int__suffix_info_const_
lea edx, [esp + 0x310]
lea eax, [esp + 0x120]
call sym._rootdir_8
test eax, eax
je 0x610a61c6
mov eax, dword [0x611650ec]
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x6c], edi
test byte [eax + 0x10], 0x20
jne 0x610a5e7b
lea eax, [esp + 0x60]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
lea eax, [esp + 0x310]
mov dword [esp], eax
call fcn.61101058
sub esp, 0x10
mov ebp, eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x48]
lea edx, [esp + 0x310]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x44]
mov dword [esp + 8], eax
lea eax, [esp + 0x40]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.KERNEL32.dll_GetDiskFreeSpaceA
sub esp, 0x14
test eax, eax
sete dl
test ebp, ebp
mov ecx, eax
setne al
test al, dl
je 0x610a5f11
mov esi, 0x200
mov ebx, 8
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x40], ebx
mov ebx, 8
jmp 0x610a5d08
cmp ebx, 1
jbe 0x610a5d29
shr ebx, 1
mov dword [esp], esi
mov eax, ebx
xor ecx, ecx
mov dword [esp + 0xc], ecx
shl eax, 9
mov dword [esp + 8], eax
mov dword [esp + 4], edi
call sym.___umoddi3
mov ecx, edx
or ecx, eax
jne 0x610a5d01
mov dword [esp + 0x40], ebx
test ebp, ebp
je 0x610a5f1d
mov edx, dword [esp + 0x40]
xor esi, esi
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], esi
imul eax, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 8], eax
mov ebx, eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.___udivdi3
mov dword [esp + 8], ebx
mov edi, eax
mov edx, dword [esp + 0x5c]
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x58]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.___udivdi3
mov dword [esp + 0x4c], eax
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.___udivdi3
mov dword [esp + 0x48], eax
cmp eax, edi
ja 0x610a602e
lea eax, [esp + 0x38]
xor ecx, ecx
xor ebp, ebp
mov dword [esp + 0x14], eax
lea eax, [esp + 0x34]
xor esi, esi
mov dword [esp + 0x10], eax
xor ebx, ebx
lea eax, [esp + 0x30]
mov dword [esp + 0x1c], ebp
lea edx, [esp + 0x310]
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.KERNEL32.dll_GetVolumeInformationA
sub esp, 0x20
test eax, eax
je 0x610a5f70
mov eax, dword [esp + 0x44]
xor ebp, ebp
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], ebp
mov ecx, dword [esp + 0x444]
imul eax, edx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 0x10], edi
mov edi, dword [esp + 0x6c]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x14], 0xffffffff
test edi, edi
mov dword [ecx + 0x18], 0xffffffff
mov dword [ecx + 0x1c], 0xffffffff
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x24], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 0x28], eax
je 0x610a5f8b
mov edx, dword [esp + 0x28]
mov dword [esp], edx
call fcn.610ff4b8
sub esp, 4
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x610a5f8b
mov eax, dword [0x61106ec4]
add eax, 0x88
mov eax, dword [eax + 0xd4]
test eax, eax
jne 0x610a5e94
mov eax, dword [0x6110755c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x6c]
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov edx, 0x2000000
mov dword [esp + 8], ecx
mov esi, 2
mov ebx, 2
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.610ff218
sub esp, 0x18
test eax, eax
jne 0x610a6000
test byte [0x6110c854], 1
mov eax, str.DuplicateTokenEx:__E
je 0x610a5c6e
mov dword [esp + 0xc], eax
mov eax, str.int_statvfs_const_char__statvfs_
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610a5c6e
test ecx, ecx
je 0x610a5f70
test ebp, ebp
jne 0x610a5d35
lea eax, [esp + 0x38]
xor ecx, ecx
mov edi, dword [esp + 0x48]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x34]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor esi, esi
lea eax, [esp + 0x30]
mov dword [esp + 4], ecx
xor ebx, ebx
lea ecx, [esp + 0x310]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp], ecx
call sub.KERNEL32.dll_GetVolumeInformationA
sub esp, 0x20
test eax, eax
jne 0x610a5df4
nop
lea esi, [esi]
mov edx, 0x77c
mov eax, str._ext_build_netrel_src_cygwin_1.5.25_7_winsup_cygwin_syscalls.cc
call sym.__Z8seterrnoPKci_8
mov edi, dword [esp + 0x6c]
test edi, edi
jne 0x610a5e58
lea eax, [esp + 0xd0]
mov dword [esp], eax
call sym.path_conv::path_conv__
mov edx, dword fs:[4]
mov eax, dword [esp + 0x300]
sub edx, 0x319c
mov dword [edx + 0xc30], eax
mov eax, dword [esp + 0x304]
mov dword [edx + 0xc34], eax
mov eax, dword [esp + 0x2c]
add esp, 0x42c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], ebx
mov eax, str.statfs__s
mov ebp, str.int_statvfs_const_char__statvfs_
mov dword [esp + 0xc], eax
mov edi, 0x10
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610a5c0f
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.610ff4b8
sub esp, 4
test eax, eax
jne 0x610a6151
test byte [0x6110c854], 1
je 0x610a5c6e
mov eax, str.ImpersonateLoggedOnUser:__E
jmp 0x610a5eea
mov eax, dword [0x611650ec]
mov edx, 0x6110943c
xor esi, esi
mov ebx, 0x2000000
mov ecx, 3
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], edx
lea edx, [esp + 0x120]
mov dword [esp + 8], eax
mov eax, 0x20000
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.KERNEL32.dll_CreateFileA
sub esp, 0x1c
cmp eax, 0xffffffff
mov ebx, eax
je 0x610a61fb
mov dword [esp], ebx
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x3c]
mov esi, 0x90064
mov dword [esp + 0x18], eax
mov eax, 0x60
mov dword [esp + 0x14], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
call sub.KERNEL32.dll_DeviceIoControl
sub esp, 0x20
test eax, eax
jne 0x610a6101
test byte [0x6110c854], 1
je 0x610a610c
mov dword [esp], 0x6110c854
lea eax, [esp + 0x120]
mov dword [esp + 0x10], eax
mov eax, str.DeviceIoControl___s__failed___E
mov dword [esp + 0xc], eax
mov eax, str.int_statvfs_const_char__statvfs_
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610a610c
mov eax, dword [esp + 0x80]
mov dword [esp + 0x4c], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x610a5daa
mov eax, dword fs:[4]
mov edx, dword [esp + 0x300]
sub eax, 0x319c
mov dword [eax + 0xc30], edx
mov edx, dword [esp + 0x304]
mov dword [eax + 0xc34], edx
mov eax, 0xffffffff
add esp, 0x42c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 1
mov dword [esp + 8], eax
mov eax, 0x16
mov dword [esp + 4], eax
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call sym.set_privilege_void__cygpriv_idx__bool_
jmp 0x610a5c6e
test byte [0x6110c854], 1
jne 0x610a6268
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 2
mov dword [eax], 2
mov edx, dword fs:[4]
mov eax, dword [esp + 0x300]
sub edx, 0x319c
mov dword [edx + 0xc30], eax
mov eax, dword [esp + 0x304]
mov dword [edx + 0xc34], eax
mov eax, 0xffffffff
jmp 0x610a6146
test byte [0x6110c854], 1
jne 0x610a62af
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 0x14
lea edx, [esp + 0xd0]
mov dword [eax], 0x14
mov dword [esp], edx
call sym.path_conv::path_conv__
jmp 0x610a6198
test byte [0x6110c854], 1
je 0x610a5daa
mov dword [esp], 0x6110c854
lea ecx, [esp + 0x120]
mov edx, str.int_statvfs_const_char__statvfs_
mov dword [esp + 0x10], ecx
mov eax, 0x40
mov ecx, str.CreateFile___s__failed___E
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610a5daa
test byte [0x6110c854], 1
jne 0x610a62f6
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 0xe
mov dword [eax], 0xe
jmp 0x610a6198
mov dword [esp], 0x6110c854
mov eax, 0x725
mov edx, 2
mov dword [esp + 0x14], eax
mov eax, str.int_statvfs_const_char__statvfs_
mov dword [esp + 0x10], eax
mov eax, 0x61131a27
mov dword [esp + 0xc], eax
mov eax, 0x61131a00
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 0x18], edx
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610a6181
mov dword [esp], 0x6110c854
mov edi, 0x14
mov esi, 0x734
mov dword [esp + 0x18], edi
mov ebx, str.int_statvfs_const_char__statvfs_
mov ecx, 0x61131a27
mov dword [esp + 0x14], esi
mov edx, 0x61131a00
mov eax, 0x40
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610a61d3
mov dword [esp], 0x6110c854
mov eax, 0xe
mov ebp, 0x40
mov dword [esp + 0x18], eax
mov eax, 0x72d
mov dword [esp + 0x14], eax
mov eax, str.int_statvfs_const_char__statvfs_
mov dword [esp + 0x10], eax
mov eax, 0x61131a27
mov dword [esp + 0xc], eax
mov eax, 0x61131a00
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610a624c