Function at 0x100112c1
Capabilities:
Get disk information

Disassembly:
mov eax, 0x1004855b
call fcn.100464e0
sub esp, 0x29c
push ebx
push esi
push edi
push 5
pop ecx
mov esi, str..ScsiN:
lea edi, [ebp - 0x48]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0xd], bl
mov word [ebp - 0x24], 0x20
mov word [ebp - 0x22], 0x3a
mov word [ebp - 0x20], 0x5c
mov word [ebp - 0x1e], bx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ebx
or edi, 0xffffffff
cmp byte [ebp - 0xd], bl
jne 0x100114f6
push 1
mov edx, dword [ebp - 0x2c]
pop esi
mov eax, esi
shl eax, cl
test edx, eax
je 0x100114e6
lea eax, [ebp - 0x24]
add ecx, 0x41
push eax
mov word [ebp - 0x24], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x1001134c
cmp eax, 6
jne 0x100114e6
mov eax, dword [ebp - 0x18]
push ebx
add eax, 0x30
inc dword [ebp - 0x18]
push ebx
push 3
mov word [ebp - 0x38], ax
push ebx
push 3
lea eax, [ebp - 0x48]
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x100114e6
mov dword [ebp - 0x14], ebx
push 0x22d
lea eax, [ebp - 0x2a8]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 8
lea eax, [ebp - 0x2a4]
push 0x1005cb58
push eax
mov dword [ebp - 0x2a8], 0x1c
mov dword [ebp - 0x29c], 0x2710
mov dword [ebp - 0x290], 0x211
mov dword [ebp - 0x298], 0x1b0501
call dword [sym.imp.MSVCRT.dll_strncpy]
mov al, byte [ebp - 0x14]
add esp, 0x18
mov byte [ebp - 0x280], al
lea eax, [ebp - 0x30]
push ebx
push eax
lea eax, [ebp - 0x2a8]
push 0x22d
push eax
lea eax, [ebp - 0x2a8]
push 0x3c
push eax
push 0x4d008
mov byte [ebp - 0x282], 0xec
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100114d0
cmp byte [ebp - 0x246], bl
je 0x100114d0
push 0x13
lea eax, [ebp - 0x27c]
push 0xa
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.100105e4
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 [ebp - 4], ebx
push dword [ecx]
mov ecx, dword [ebp + 8]
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_]
push esi
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 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_]
push 0x2e
lea eax, [ebp - 0x27c]
push 0x1b
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.100105e4
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 [ebp - 4], esi
push dword [ecx]
mov ecx, dword [ebp + 0xc]
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_]
push esi
lea ecx, [ebp - 0x68]
mov dword [ebp - 4], 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_]
push 0x1a
lea eax, [ebp - 0x27c]
push 0x17
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.100105e4
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 [ebp - 4], 2
push dword [ecx]
mov ecx, dword [ebp + 0x10]
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_]
push esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 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 byte [ebp - 0xd], 1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x1001137d
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x28]
inc ecx
cmp ecx, 0x20
mov dword [ebp - 0x28], ecx
jl 0x10011312
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret