Function at 0x61012aa0
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, 0x61105560
mov dword [ebp - 0x8318], ecx
call method.muto.acquire_unsigned_long_
mov edi, dword [ebp + 0xc]
test edi, edi
js 0x61012b14
mov ebx, dword [ebp - 0x8310]
mov edx, dword [ebp + 0xc]
cmp dword [ebx + 0x18], edx
jg 0x61012c60
mov eax, 0x61105560
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 0x61012b50
call sub.KERNEL32.dll_GetLastError
cmp eax, 6
je 0x61012d10
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 0x61012c84
mov eax, dword [0x61107154]
test byte [eax + 5], 0x10
jne 0x61012d62
mov edx, dword [0x6110026c]
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 0x61012d1e
test eax, eax
lea edx, [ebp - 0x88]
je 0x61012d3d
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 0x61012be2
mov eax, dword [0x61104ec4]
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 0x61012db4
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 [0x6110a820], 1
je 0x61012c77
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], 0x6110a820
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x61012c77
mov eax, dword [ebx]
mov esi, dword [eax + edx*4]
test esi, esi
je 0x61012b14
mov eax, 0x61105560
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 0x61012d7b
cmp ebx, 3
je 0x61012e57
cmp byte [0x61104eb0], 0
je 0x61012ded
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.610fe968
sub esp, 0xc
test eax, eax
jne 0x61012ded
mov eax, dword [0x611164d4]
mov dword [ebp - 0x88], eax
mov eax, dword [0x611164d8]
mov dword [ebp - 0x84], eax
mov eax, dword [0x611164dc]
mov dword [ebp - 0x80], eax
mov eax, dword [0x611164e0]
mov dword [ebp - 0x7c], eax
mov eax, dword [0x611164e4]
mov dword [ebp - 0x78], eax
lea esi, [esi]
mov eax, dword [ebp - 0x84]
test eax, eax
jne 0x61012baf
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 0x61012bcb
mov esi, 0x50000
lea eax, [ebp - 0x88]
mov dword [esp + 4], esi
mov dword [esp], eax
call method.device.parse_unsigned_long_
jmp 0x61012d10
mov eax, dword [0x61107154]
test byte [eax + 5], 0x10
jne 0x61012d62
mov edx, dword [0x6110026c]
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 0x61012d10
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 0x61012bf0
mov esi, dword [ebp - 0x84]
test esi, esi
je 0x61012e2c
mov ecx, 0x10000
mov dword [ebp - 0x8318], ecx
jmp 0x61012bf0
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 0x61012e95
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 0x61012d10
cmp dword [ebp - 0x8314], str.some_disk_file
je 0x61012bf0
mov eax, dword [ebx + 0x60]
test al, 2
je 0x61012fb1
mov eax, 0x10000
mov dword [ebp - 0x8318], eax
jmp 0x61012bf0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x61012f7e
mov eax, dword [0x611164fc]
mov dword [ebp - 0x88], eax
mov eax, dword [0x61116500]
mov dword [ebp - 0x84], eax
mov eax, dword [0x61116504]
mov dword [ebp - 0x80], eax
mov eax, dword [0x61116508]
mov dword [ebp - 0x7c], eax
mov eax, dword [0x6111650c]
mov dword [ebp - 0x78], eax
jmp 0x61012d10
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.610fdee0
sub esp, 0x14
test eax, eax
js 0x61012fc6
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 [0x6110a820], 1
jne 0x61012f55
mov eax, str.some_disk_file
mov dword [ebp - 0x8314], eax
xor esi, esi
test eax, eax
mov dword [ebp - 0x8318], esi
je 0x61012d10
mov eax, dword [ebp - 0x84]
jmp 0x61012baf
mov dword [esp], 0x6110a820
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 0x61012f2f
mov eax, dword [0x611164e8]
mov dword [ebp - 0x88], eax
mov eax, dword [0x611164ec]
mov dword [ebp - 0x84], eax
mov eax, dword [0x611164f0]
mov dword [ebp - 0x80], eax
mov eax, dword [0x611164f4]
mov dword [ebp - 0x7c], eax
mov eax, dword [0x611164f8]
mov dword [ebp - 0x78], eax
jmp 0x61012d10
shr eax, 0x19
and al, 1
cmp al, 1
sbb eax, eax
not eax
and eax, 0x20000
jmp 0x61012e4c
mov ecx, dword [ebp - 0x8084]
test ecx, ecx
jne 0x6101300e
test byte [0x6110a820], 1
jne 0x61012fe0
xor eax, eax
jmp 0x61012f34
mov dword [esp], 0x6110a820
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 0x61012f34
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 [0x6110a820], 1
je 0x61013071
mov dword [esp], 0x6110a820
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 0x6101309f
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x6101309b
xor al, byte [eax + 0x61106b3c]
cmp al, byte [edi - 1]
jne 0x610130a6
test al, al
jne 0x61013089
mov eax, 1
jmp 0x610130a8
xor eax, eax
test eax, eax
je 0x610130cc
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 0x610130e9
lea eax, [ebp - 0x81f8]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0x831c]
mov dword [esp], edx
call sym.cygwin1.dll__strcpy
jmp 0x61012f34
lea edx, [ebp - 0x81f0]
mov eax, 0x5c
mov ah, al
mov al, byte [edx]
cmp al, ah
je 0x61013102
inc edx
test al, al
jne 0x610130f6
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 0x6101319c
mov byte [ebp - 0x81fb], 0
mov eax, 0x3a
mov edx, dword [ebp - 0x832c]
mov ah, al
mov al, byte [edx]
cmp al, ah
je 0x61013144
inc edx
test al, al
jne 0x61013137
xor edx, edx
mov eax, edx
test eax, eax
je 0x61013176
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 0x61013261
xor eax, eax
mov edx, dword [ebp - 0x832c]
mov ah, al
mov al, byte [edx]
cmp al, ah
je 0x6101318d
inc edx
test al, al
jne 0x61013180
xor edx, edx
mov eax, edx
lea ebx, [eax + 1]
mov dword [ebp - 0x832c], ebx
cmp byte [eax + 1], 0
jne 0x61013123
mov eax, dword [ebp - 0x8324]
lea edi, [ebp - 0x81f8]
mov dword [ebp - 0x8334], edi
test eax, eax
je 0x610133a7
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 [0x6110a820]
test al, 1
je 0x6101323e
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], 0x6110a820
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 0x61012f34
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 0x610132ab
mov ecx, 0x5c
mov esi, edx
mov eax, ecx
mov ah, al
mov al, byte [esi]
cmp al, ah
je 0x61013296
inc esi
test al, al
jne 0x61013289
xor esi, esi
mov eax, esi
test eax, eax
je 0x610132ab
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 0x610132b1
test edx, 0x8080
jne 0x610132d6
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 0x61013434
cmp ebx, dword [ebp - 0x8324]
jl 0x61013176
lea esi, [ebp - 0x8308]
mov ecx, ebx
lea edi, [ebp - 0x81f8]
cld
and eax, 0xff
dec ecx
js 0x61013327
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x61013323
xor al, byte [eax + 0x61106b3c]
cmp al, byte [edi - 1]
jne 0x6101332e
test al, al
jne 0x61013311
mov eax, 1
jmp 0x61013330
xor eax, eax
test eax, eax
je 0x61013176
movzx eax, byte [ebp + ebx - 0x81f8]
test al, al
setne dl
cmp al, 0x5c
setne al
test al, dl
jne 0x61013176
mov dword [ebp - 0x8324], ebx
mov eax, dword [ebp - 0x832c]
mov dword [ebp - 0x8328], eax
test byte [0x6110a820], 1
je 0x61013176
mov dword [esp], 0x6110a820
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 0x61013176
mov eax, str.DeviceLanmanRedirector_
mov ecx, 0x19
mov esi, dword [ebp - 0x8334]
mov edi, eax
cld
and eax, 0xff
dec ecx
js 0x610133d5
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x610133d1
xor al, byte [eax + 0x61106b3c]
cmp al, byte [edi - 1]
jne 0x610133dc
test al, al
jne 0x610133bf
mov eax, 1
jmp 0x610133de
xor eax, eax
test eax, eax
je 0x61013202
mov byte [ebp - 0x81e1], 0x5c
lea eax, [ebp - 0x81e1]
mov dword [ebp - 0x8334], eax
movzx eax, byte [0x6110a820]
test al, 1
je 0x61013209
mov dword [esp], 0x6110a820
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 0x61013202
dec ebx
xor eax, eax
mov byte [ebp + ebx - 0x8308], al
jmp 0x610132f1