Function at 0x413e70
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4254e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x413ec3
push str.Vmount2.Vmount2Device
push str.invalid_operation_for_this_type_of_device
push 0x80004005
push 0x42659c
call fcn.00409570
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x413ef4
push str.Vmount2.Vmount2Device
push str.the_volume_is_closed
push 0x80004005
push 0x42659c
call fcn.00409570
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 0x1a8]
test eax, eax
jne 0x413f28
push str.Vmount2.Vmount2Device
push str.the_volume_is_not_online_yet
push 0x80004005
push 0x4265ac
call fcn.00409570
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
cmp word [ebp + 0x14], 0
je 0x413f70
cmp dword [esi + 0x10], 2
jne 0x413f3d
mov ecx, dword [esi + 0xc]
call fcn.00411250
call fcn.0040a1c0
test eax, eax
jge 0x413f70
push str.Vmount2.Vmount2Device
push str.Cannot_impersonate_client_prior_to_mapping_volume
push 0x8004020c
push 0x42659c
call fcn.00409570
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov al, byte [esi + 0xf0]
mov byte [ebp + 0xb], al
mov eax, dword [esi + 0x18]
test ah, 2
mov byte [esi + 0xf0], 0
je 0x413fb8
lea ecx, [ebp + 0x17]
push ecx
lea edx, [esi + 0x70]
push edx
call fcn.00415c90
add esp, 8
test eax, eax
je 0x413fb8
mov al, byte [ebp + 0x17]
mov byte [esi + 0xf0], al
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0x10], 0x20
jne 0x413fcd
mov al, 0x63
mov byte [ebp + 0x17], 0x7b
mov dword [ebp + 0x10], 1
jmp 0x413fda
mov al, 0x7a
mov byte [ebp + 0x17], 0x62
mov dword [ebp + 0x10], 0xffffffff
cmp al, byte [ebp + 0x17]
push ebx
push edi
mov bl, al
je 0x414136
mov edi, dword [ebp + 0xc]
lea ebx, [ebx]
movsx eax, bl
lea ecx, [eax - 0x61]
mov edx, 1
shl edx, cl
test edi, edx
je 0x41406a
push eax
push 0x428a9c
lea eax, [ebp - 0x10]
push 3
push eax
call fcn.0041fef0
add esp, 0x10
push 0x80
lea ecx, [ebp - 0xac]
push ecx
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x41406a
mov eax, dword [esi + 0x18]
test ah, 2
lea ecx, [ebp - 0x10]
jne 0x41407f
lea eax, [esi + 0x70]
push eax
push ecx
push 1
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x414130
lea edx, [ebp + 0xc]
push edx
push str.error_querying_DOS_device_name
call fcn.0041e6f0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR71.dll_free]
add esp, 0xc
mov cl, byte [ebp + 0x10]
mov al, byte [ebp + 0x17]
add bl, cl
cmp bl, al
jne 0x413ff0
jmp 0x414136
push ecx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [ebp - 4], 0
push 0x428a78
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const__]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4140aa
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 0x14]
call fcn.004133d0
mov byte [ebp - 4], 1
mov edi, dword [ebp + 0x14]
mov edx, dword [esi]
push edi
push esi
call dword [edx + 0x50]
test eax, eax
jge 0x41410c
push str.Vmount2.Vmount2Device
push str.cannot_mount_to_a_drive_letter
push eax
push 0x42659c
call fcn.00409570
mov esi, eax
mov byte [ebp - 4], 0
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
pop edi
pop ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov byte [esi + 0xf0], bl
xor bl, bl
mov byte [ebp - 4], bl
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x414139
mov byte [esi + 0xf0], bl
mov bl, byte [ebp + 0xb]
mov al, byte [esi + 0xf0]
test al, al
jne 0x414175
push str.Vmount2.Vmount2Device
push str.cannot_assign_drive_letter
push 0x80004005
push 0x42659c
mov byte [esi + 0xf0], bl
call fcn.00409570
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
test bl, bl
je 0x4141a0
movsx eax, bl
push eax
push 0x428a9c
lea ecx, [ebp - 0x10]
push 3
push ecx
call fcn.0041fef0
add esp, 0x10
add esi, 0x70
push esi
lea edx, [ebp - 0x10]
push edx
push 7
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
xor eax, eax
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10