Function at 0x610a55b0
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 0x610a5b3c
cmp byte [ebx], 0
je 0x610a5b94
test byte [0x6110a820], 1
jne 0x610a59f0
mov eax, dword [esp + 0x444]
test eax, eax
je 0x610a5c5f
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 0x610a5be6
mov eax, dword [0x611630ec]
xor ebp, ebp
xor edi, edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x6c], edi
test byte [eax + 0x10], 0x20
jne 0x610a589b
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.610ff058
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 0x610a5931
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 0x610a5728
cmp ebx, 1
jbe 0x610a5749
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 0x610a5721
mov dword [esp + 0x40], ebx
test ebp, ebp
je 0x610a593d
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 0x610a5a4e
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 0x610a5990
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 0x610a59ab
mov edx, dword [esp + 0x28]
mov dword [esp], edx
call fcn.610fd4b8
sub esp, 4
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x610a59ab
mov eax, dword [0x61104ec4]
add eax, 0x88
mov eax, dword [eax + 0xd4]
test eax, eax
jne 0x610a58b4
mov eax, dword [0x61105578]
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.610fd218
sub esp, 0x18
test eax, eax
jne 0x610a5a20
test byte [0x6110a820], 1
mov eax, str.DuplicateTokenEx:__E
je 0x610a568e
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], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610a568e
test ecx, ecx
je 0x610a5990
test ebp, ebp
jne 0x610a5755
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 0x610a5814
nop
lea esi, [esi]
mov edx, 0x77b
mov eax, str._ext_build_netrel_src_cygwin_1.5.24_2_winsup_cygwin_syscalls.cc
call sym.__Z8seterrnoPKci_8
mov edi, dword [esp + 0x6c]
test edi, edi
jne 0x610a5878
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], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610a562f
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.610fd4b8
sub esp, 4
test eax, eax
jne 0x610a5b71
test byte [0x6110a820], 1
je 0x610a568e
mov eax, str.ImpersonateLoggedOnUser:__E
jmp 0x610a590a
mov eax, dword [0x611630ec]
mov edx, 0x61107420
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 0x610a5c1b
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 0x610a5b21
test byte [0x6110a820], 1
je 0x610a5b2c
mov dword [esp], 0x6110a820
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 0x610a5b2c
mov eax, dword [esp + 0x80]
mov dword [esp + 0x4c], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x610a57ca
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 0x610a568e
test byte [0x6110a820], 1
jne 0x610a5c88
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 0x610a5b66
test byte [0x6110a820], 1
jne 0x610a5ccf
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 0x610a5bb8
test byte [0x6110a820], 1
je 0x610a57ca
mov dword [esp], 0x6110a820
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 0x610a57ca
test byte [0x6110a820], 1
jne 0x610a5d16
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 0xe
mov dword [eax], 0xe
jmp 0x610a5bb8
mov dword [esp], 0x6110a820
mov eax, 0x724
mov edx, 2
mov dword [esp + 0x14], eax
mov eax, str.int_statvfs_const_char__statvfs_
mov dword [esp + 0x10], eax
mov eax, 0x6112f927
mov dword [esp + 0xc], eax
mov eax, 0x6112f900
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 0x610a5ba1
mov dword [esp], 0x6110a820
mov edi, 0x14
mov esi, 0x733
mov dword [esp + 0x18], edi
mov ebx, str.int_statvfs_const_char__statvfs_
mov ecx, 0x6112f927
mov dword [esp + 0x14], esi
mov edx, 0x6112f900
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 0x610a5bf3
mov dword [esp], 0x6110a820
mov eax, 0xe
mov ebp, 0x40
mov dword [esp + 0x18], eax
mov eax, 0x72c
mov dword [esp + 0x14], eax
mov eax, str.int_statvfs_const_char__statvfs_
mov dword [esp + 0x10], eax
mov eax, 0x6112f927
mov dword [esp + 0xc], eax
mov eax, 0x6112f900
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610a5c6c