Function at 0x100da170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x100e44f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x374
push ebx
xor ebx, ebx
push ebp
xor al, al
push esi
push edi
mov byte [esp + 0x13], al
mov dword [esp + 0x18], ebx
cmp al, bl
jne 0x100da4ce
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x284]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x284]
push eax
push str..Scsi_d:
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea edx, [esp + 0x284]
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
mov dword [esp + 0x1c], esi
je 0x100da4b8
mov dword [esp + 0x14], ebx
mov ecx, 0x8b
xor eax, eax
lea edi, [esp + 0x54]
push 8
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x5c]
push str.SCSIDISK
push eax
mov dword [esp + 0x60], 0x1c
mov dword [esp + 0x6c], 0x2710
mov dword [esp + 0x78], 0x211
mov dword [esp + 0x70], 0x1b0501
call dword [sym.imp.MSVCRT.dll_strncpy]
mov cl, byte [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x50]
lea eax, [esp + 0x54]
push ebx
push edx
mov byte [esp + 0x84], cl
push 0x22d
push eax
lea ecx, [esp + 0x64]
push 0x3c
push ecx
push 0x4d008
push esi
mov byte [esp + 0x9a], 0xec
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100da49f
cmp byte [esp + 0xb6], bl
je 0x100da49f
push 0x13
lea edx, [esp + 0x84]
push 0xa
lea eax, [esp + 0x28]
push edx
push eax
call fcn.100d8df0
add esp, 0x10
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov dword [esp + 0x38c], ebx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x394]
push edx
push ebx
push eax
call dword [sym.imp.MSVCP60.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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38c], ebp
cmp eax, ebx
je 0x100da2f4
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x100da2eb
cmp al, 0xff
je 0x100da2eb
dec al
mov byte [ecx], al
jmp 0x100da2f4
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0x2e
lea eax, [esp + 0x84]
push 0x1b
lea ecx, [esp + 0x48]
push eax
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call fcn.100d8df0
add esp, 0x10
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov dword [esp + 0x38c], 1
mov ecx, dword [edx]
push ecx
mov ecx, dword [esp + 0x39c]
push ebx
push eax
call dword [sym.imp.MSVCP60.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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x38c], ebp
cmp eax, ebx
je 0x100da368
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x100da35f
cmp al, 0xff
je 0x100da35f
dec al
mov byte [ecx], al
jmp 0x100da368
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0x1a
lea edx, [esp + 0x84]
push 0x17
lea eax, [esp + 0x38]
push edx
push eax
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call fcn.100d8df0
add esp, 0x10
mov esi, eax
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov dword [esp + 0x38c], 2
mov eax, dword [ecx]
mov ecx, dword [esi + 8]
mov ebp, ecx
cmp eax, ebp
jae 0x100da3ad
mov ebp, eax
mov edi, dword [esp + 0x39c]
cmp edi, esi
jne 0x100da3d1
push eax
push ebp
mov ecx, edi
call dword [sym.imp.MSVCP60.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__::erase_unsigned_int__unsigned_int_]
push ebx
push ebx
mov ecx, edi
call dword [sym.imp.MSVCP60.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__::erase_unsigned_int__unsigned_int_]
jmp 0x100da457
cmp ebp, ebx
jbe 0x100da41a
cmp ebp, ecx
jne 0x100da41a
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x100da3e5
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
cmp byte [eax - 1], 0xfe
jae 0x100da41a
push 1
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x100da401
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov dword [edi + 4], eax
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov esi, dword [esi + 0xc]
mov dword [edi + 0xc], esi
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x100da457
push 1
push ebp
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x100da457
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x100da436
mov esi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov edi, dword [edi + 4]
mov ecx, ebp
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x3a0]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38c], 0xffffffff
cmp eax, ebx
je 0x100da487
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x100da47e
cmp al, 0xff
je 0x100da47e
dec al
mov byte [ecx], al
jmp 0x100da487
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x13], 1
or ebp, 0xffffffff
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 2
mov dword [esp + 0x14], eax
jl 0x100da202
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 0x10
mov al, byte [esp + 0x13]
jl 0x100da19b
mov ecx, dword [esp + 0x384]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x380
ret