Function at 0x61012a60
Capabilities:
Get disk information

Disassembly:
push ebp
mov eax, 0x8358
mov ebp, esp
call sym.cygwin1.dll__alloca
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 8], esi
mov ecx, 0x10000
xor esi, esi
mov dword [ebp - 4], edi
mov ebx, 0x10
mov dword [ebp - 0x84], edx
mov edx, 0xffffffff
mov dword [ebp - 0x8310], eax
mov dword [ebp - 0x830c], ebx
mov dword [ebp - 0x8314], esi
mov dword [eax + 0x10], 0
mov eax, 0x61107544
mov dword [ebp - 0x8318], ecx
call method.muto.acquire_unsigned_long_
mov edi, dword [ebp + 0xc]
test edi, edi
js 0x61012ad4
mov ebx, dword [ebp - 0x8310]
mov edx, dword [ebp + 0xc]
cmp dword [ebx + 0x18], edx
jg 0x61012c20
mov eax, 0x61107544
call method.muto.release__
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov edi, dword [ebp + 0x10]
sub esp, 4
mov dword [esp], edi
call sub.KERNEL32.dll_GetFileType
sub esp, 4
test eax, eax
mov ebx, eax
jne 0x61012b10
call sub.KERNEL32.dll_GetLastError
cmp eax, 6
je 0x61012cd0
nop
lea esi, [ebp - 0x38]
mov dword [esp + 4], esi
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_GetConsoleScreenBufferInfo
sub esp, 8
test eax, eax
je 0x61012c44
mov eax, dword [0x61109170]
test byte [eax + 5], 0x10
jne 0x61012d22
mov edx, dword [0x6110226c]
mov eax, dword [edx]
mov dword [ebp - 0x88], eax
mov ecx, dword [edx + 4]
mov dword [ebp - 0x84], ecx
mov eax, dword [edx + 8]
mov dword [ebp - 0x80], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x7c], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x78], eax
mov eax, ecx
test eax, eax
je 0x61012cde
test eax, eax
lea edx, [ebp - 0x88]
je 0x61012cfd
mov dword [esp], edx
xor ebx, ebx
mov dword [esp + 4], ebx
call sym.build_fh_dev_device_const__char_const_
test eax, eax
mov ebx, eax
je 0x61012ba2
mov eax, dword [0x61106ec4]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 0x198]
mov dword [eax + edx*4], ebx
mov ecx, dword [ebp - 0x8318]
test ecx, ecx
je 0x61012d74
mov edi, dword [ebp - 0x8318]
mov edx, 0xc0000000
mov eax, dword [ebx]
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
mov edx, dword [ebp + 0x10]
mov dword [esp], ebx
mov dword [esp + 4], edx
call dword [eax + 0x9c]
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call sym.__Z14set_std_handlei_4
sub esp, 4
test byte [0x6110c854], 1
je 0x61012c37
mov edi, dword [ebp + 0x10]
mov eax, str.fd__d__handle__p
mov dword [esp + 0xc], eax
mov eax, str.void_dtable::init_std_file_from_handle_int__void_
mov dword [esp + 0x14], edi
mov edi, 0x80080
mov dword [esp + 0x10], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x61012c37
mov eax, dword [ebx]
mov esi, dword [eax + edx*4]
test esi, esi
je 0x61012ad4
mov eax, 0x61107544
call method.muto.release__
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp + 4], esi
mov edi, dword [ebp + 0x10]
mov dword [esp], edi
call sub.KERNEL32.dll_GetNumberOfConsoleInputEvents
sub esp, 8
test eax, eax
jne 0x61012d3b
cmp ebx, 3
je 0x61012e17
cmp byte [0x61106eb0], 0
je 0x61012dad
lea eax, [ebp - 0x830c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.61100968
sub esp, 0xc
test eax, eax
jne 0x61012dad
mov eax, dword [0x611184d4]
mov dword [ebp - 0x88], eax
mov eax, dword [0x611184d8]
mov dword [ebp - 0x84], eax
mov eax, dword [0x611184dc]
mov dword [ebp - 0x80], eax
mov eax, dword [0x611184e0]
mov dword [ebp - 0x7c], eax
mov eax, dword [0x611184e4]
mov dword [ebp - 0x78], eax
lea esi, [esi]
mov eax, dword [ebp - 0x84]
test eax, eax
jne 0x61012b6f
mov edx, dword [ebp - 0x8310]
mov ebx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [eax + ebx*4], 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov ebx, dword [ebp - 0x8314]
mov dword [esp], ebx
call sym.build_fh_name_char_const__void__unsigned_int__suffix_info_
jmp 0x61012b8b
mov esi, 0x50000
lea eax, [ebp - 0x88]
mov dword [esp + 4], esi
mov dword [esp], eax
call method.device.parse_unsigned_long_
jmp 0x61012cd0
mov eax, dword [0x61109170]
test byte [eax + 5], 0x10
jne 0x61012d22
mov edx, dword [0x6110226c]
mov eax, dword [edx]
mov dword [ebp - 0x88], eax
mov eax, dword [edx + 4]
mov dword [ebp - 0x84], eax
mov eax, dword [edx + 8]
mov dword [ebp - 0x80], eax
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x7c], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x78], eax
jmp 0x61012cd0
mov dword [esp], ebx
mov edi, 2
mov dword [esp + 4], edi
call method.fhandler_base.get_default_fmode_int_
mov dword [ebp - 0x8318], eax
test eax, eax
jne 0x61012bb0
mov esi, dword [ebp - 0x84]
test esi, esi
je 0x61012dec
mov ecx, 0x10000
mov dword [ebp - 0x8318], ecx
jmp 0x61012bb0
lea eax, [ebp - 0x68]
mov dword [esp + 4], eax
mov edx, dword [ebp + 0x10]
mov dword [esp], edx
call sub.KERNEL32.dll_GetCommState
sub esp, 8
test eax, eax
je 0x61012e55
xor ecx, ecx
mov edx, 0x88
lea eax, [ebp - 0x88]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call method.device.parse_unsigned_short__unsigned_short_
jmp 0x61012cd0
cmp dword [ebp - 0x8314], str.some_disk_file
je 0x61012bb0
mov eax, dword [ebx + 0x60]
test al, 2
je 0x61012f71
mov eax, 0x10000
mov dword [ebp - 0x8318], eax
jmp 0x61012bb0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x61012f3e
mov eax, dword [0x611184fc]
mov dword [ebp - 0x88], eax
mov eax, dword [0x61118500]
mov dword [ebp - 0x84], eax
mov eax, dword [0x61118504]
mov dword [ebp - 0x80], eax
mov eax, dword [0x61118508]
mov dword [ebp - 0x7c], eax
mov eax, dword [0x6111850c]
mov dword [ebp - 0x78], eax
jmp 0x61012cd0
sub esp, 0x180
mov eax, 0x8000
lea ebx, [esp + 0x27]
and ebx, 0xfffffff0
mov dword [ebp - 0x831c], ebx
lea ebx, [ebp - 0x8088]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym.cygwin1.dll__memset
mov eax, 0x7ff8
mov word [ebp - 0x8086], ax
lea eax, [ebp - 0x8080]
mov dword [ebp - 0x8084], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, 0x8000
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov edi, dword [ebp + 0x10]
mov dword [esp], edi
call fcn.610ffee0
sub esp, 0x14
test eax, eax
js 0x61012f86
mov edi, str.some_disk_file
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x831c]
mov dword [esp], eax
call sym.cygwin1.dll__strcpy
test byte [0x6110c854], 1
jne 0x61012f15
mov eax, str.some_disk_file
mov dword [ebp - 0x8314], eax
xor esi, esi
test eax, eax
mov dword [ebp - 0x8318], esi
je 0x61012cd0
mov eax, dword [ebp - 0x84]
jmp 0x61012b6f
mov dword [esp], 0x6110c854
mov ebx, str.NtQueryObject_failed
mov ecx, str.const_char_handle_to_fn_void__char_
mov dword [esp + 0xc], ebx
mov edx, 0x40
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x61012eef
mov eax, dword [0x611184e8]
mov dword [ebp - 0x88], eax
mov eax, dword [0x611184ec]
mov dword [ebp - 0x84], eax
mov eax, dword [0x611184f0]
mov dword [ebp - 0x80], eax
mov eax, dword [0x611184f4]
mov dword [ebp - 0x7c], eax
mov eax, dword [0x611184f8]
mov dword [ebp - 0x78], eax
jmp 0x61012cd0
shr eax, 0x19
and al, 1
cmp al, 1
sbb eax, eax
not eax
and eax, 0x20000
jmp 0x61012e0c
mov ecx, dword [ebp - 0x8084]
test ecx, ecx
jne 0x61012fce
test byte [0x6110c854], 1
jne 0x61012fa0
xor eax, eax
jmp 0x61012ef4
mov dword [esp], 0x6110c854
mov eax, str.nt__Name.Buffer__NULL
mov dword [esp + 0xc], eax
mov eax, str.const_char_handle_to_fn_void__char_
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
xor eax, eax
jmp 0x61012ef4
movzx eax, word [ebp - 0x8088]
mov edx, 0x168
shr eax, 1
mov word [ecx + eax*2], 0
lea eax, [ebp - 0x81f8]
mov dword [esp], 0xffffffff
call sym.__Z12sys_wcstombsPciPKwi_16
sub esp, 4
test byte [0x6110c854], 1
je 0x61013031
mov dword [esp], 0x6110c854
lea edi, [ebp - 0x81f8]
mov eax, str.nt_name__s
mov dword [esp + 0x10], edi
mov edi, 0x40
mov dword [esp + 0xc], eax
mov eax, str.const_char_handle_to_fn_void__char_
mov dword [esp + 8], eax
mov dword [esp + 4], edi
call method.strace.prntf_unsigned_int__char_const__char_const__..._
mov eax, str.device_
mov ecx, 8
lea esi, [ebp - 0x81f8]
mov edi, eax
cld
and eax, 0xff
dec ecx
js 0x6101305f
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x6101305b
xor al, byte [eax + 0x61108b40]
cmp al, byte [edi - 1]
jne 0x61013066
test al, al
jne 0x61013049
mov eax, 1
jmp 0x61013068
xor eax, eax
test eax, eax
je 0x6101308c
mov dword [esp + 4], ebx
mov eax, 0x8000
mov dword [esp + 8], eax
mov dword [esp], 0
call sub.KERNEL32.dll_QueryDosDeviceA
sub esp, 0xc
test eax, eax
jne 0x610130a9
lea eax, [ebp - 0x81f8]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x831c]
mov dword [esp], edx
call sym.cygwin1.dll__strcpy
jmp 0x61012ef4
lea edx, [ebp - 0x81f0]
mov eax, 0x5c
mov ah, al
mov al, byte [edx]
cmp al, ah
je 0x610130c2
inc edx
test al, al
jne 0x610130b6
dec edx
mov eax, edx
mov dword [ebp - 0x832c], ebx
xor esi, esi
xor ecx, ecx
cmp byte [ebp - 0x8088], 0
mov dword [ebp - 0x8324], esi
mov dword [ebp - 0x8328], ecx
jmp 0x6101315c
mov byte [ebp - 0x81fb], 0
mov eax, 0x3a
mov edx, dword [ebp - 0x832c]
mov ah, al
mov al, byte [edx]
cmp al, ah
je 0x61013104
inc edx
test al, al
jne 0x610130f7
xor edx, edx
mov eax, edx
test eax, eax
je 0x61013136
mov edx, 0x10d
lea eax, [ebp - 0x8308]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x832c]
mov dword [esp], edx
call sub.KERNEL32.dll_QueryDosDeviceA
sub esp, 0xc
test eax, eax
jne 0x61013221
xor eax, eax
mov edx, dword [ebp - 0x832c]
mov ah, al
mov al, byte [edx]
cmp al, ah
je 0x6101314d
inc edx
test al, al
jne 0x61013140
xor edx, edx
mov eax, edx
lea ebx, [eax + 1]
mov dword [ebp - 0x832c], ebx
cmp byte [eax + 1], 0
jne 0x610130e3
mov eax, dword [ebp - 0x8324]
lea edi, [ebp - 0x81f8]
mov dword [ebp - 0x8334], edi
test eax, eax
je 0x61013367
mov eax, dword [ebp - 0x8328]
mov dword [esp], eax
call sym.cygwin1.dll__strlen
mov edx, dword [ebp - 0x8328]
mov ebx, eax
xor eax, eax
cmp byte [edx + ebx - 1], 0x5c
sete al
sub ebx, eax
sub dword [ebp - 0x8324], ebx
mov eax, dword [ebp - 0x8324]
add edi, eax
mov dword [ebp - 0x8334], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], edi
call sym.cygwin1.dll__memcpy
mov byte [edi + ebx], 0x5c
movzx eax, byte [0x6110c854]
test al, 1
je 0x610131fe
mov edx, dword [ebp - 0x8334]
mov eax, str.derived_path__s
mov dword [esp + 0xc], eax
mov eax, str.const_char_handle_to_fn_void__char_
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 4], eax
mov dword [esp], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
mov edx, dword [ebp - 0x831c]
mov dword [esp + 4], edx
mov ebx, dword [ebp - 0x8334]
mov dword [esp], ebx
call sym._cygwin_conv_to_full_posix_path
mov eax, dword [ebp - 0x831c]
jmp 0x61012ef4
mov eax, 0x3b
lea edi, [ebp - 0x8308]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym.cygwin1.dll__strrchr
test eax, eax
mov edx, eax
je 0x6101326b
mov ecx, 0x5c
mov esi, edx
mov eax, ecx
mov ah, al
mov al, byte [esi]
cmp al, ah
je 0x61013256
inc esi
test al, al
jne 0x61013249
xor esi, esi
mov eax, esi
test eax, eax
je 0x6101326b
mov dword [esp], edx
lea eax, [eax + 1]
mov dword [esp + 4], eax
call sym.cygwin1.dll__strcpy
lea ebx, [ebp - 0x8308]
mov eax, dword [ebx]
add ebx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x61013271
test edx, 0x8080
jne 0x61013296
shr edx, 0x10
add ebx, 2
add dl, dl
lea edx, [ebp - 0x8308]
sbb ebx, 3
sub ebx, edx
cmp byte [ebp + ebx - 0x8309], 0x5c
je 0x610133f4
cmp ebx, dword [ebp - 0x8324]
jl 0x61013136
lea esi, [ebp - 0x8308]
mov ecx, ebx
lea edi, [ebp - 0x81f8]
cld
and eax, 0xff
dec ecx
js 0x610132e7
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x610132e3
xor al, byte [eax + 0x61108b40]
cmp al, byte [edi - 1]
jne 0x610132ee
test al, al
jne 0x610132d1
mov eax, 1
jmp 0x610132f0
xor eax, eax
test eax, eax
je 0x61013136
movzx eax, byte [ebp + ebx - 0x81f8]
test al, al
setne dl
cmp al, 0x5c
setne al
test al, dl
jne 0x61013136
mov dword [ebp - 0x8324], ebx
mov eax, dword [ebp - 0x832c]
mov dword [ebp - 0x8328], eax
test byte [0x6110c854], 1
je 0x61013136
mov dword [esp], 0x6110c854
mov eax, str.current_match__s
lea edx, [ebp - 0x8308]
mov dword [esp + 0xc], eax
mov eax, str.const_char_handle_to_fn_void__char_
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x61013136
mov eax, str.DeviceLanmanRedirector_
mov ecx, 0x19
mov esi, dword [ebp - 0x8334]
mov edi, eax
cld
and eax, 0xff
dec ecx
js 0x61013395
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x61013391
xor al, byte [eax + 0x61108b40]
cmp al, byte [edi - 1]
jne 0x6101339c
test al, al
jne 0x6101337f
mov eax, 1
jmp 0x6101339e
xor eax, eax
test eax, eax
je 0x610131c2
mov byte [ebp - 0x81e1], 0x5c
lea eax, [ebp - 0x81e1]
mov dword [ebp - 0x8334], eax
movzx eax, byte [0x6110c854]
test al, 1
je 0x610131c9
mov dword [esp], 0x6110c854
mov ebx, str.remote_drive
mov ecx, str.const_char_handle_to_fn_void__char_
mov dword [esp + 0xc], ebx
mov edx, 0x40
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610131c2
dec ebx
xor eax, eax
mov byte [ebp + ebx - 0x8308], al
jmp 0x610132b1