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

Disassembly:
push 0xffffffffffffffff
push 0x100e4434
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x390
push ebx
xor ebx, ebx
push ebp
xor al, al
push esi
push edi
mov byte [esp + 0x13], al
mov dword [esp + 0x14], ebx
cmp al, bl
jne 0x100d9679
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2a0]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x2a0]
push eax
push str..PhysicalDrive_d
push 0xff
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea edx, [esp + 0x2a0]
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 + 0x20], esi
je 0x100d9663
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x54]
push ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x58]
push eax
push 0x18
push ecx
push ebx
push ebx
push 0x74080
push esi
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov al, byte [esp + 0x57]
cmp al, bl
jbe 0x100d965c
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x6c]
mov cl, dl
shr al, cl
mov ecx, 8
and al, 0x10
neg al
sbb al, al
and al, 0xb5
add al, 0xec
mov byte [esp + 0x1c], al
xor eax, eax
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x84
xor eax, eax
lea edi, [esp + 0x90]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push edx
lea edx, [esp + 0x98]
push ecx
lea eax, [esp + 0x78]
push edx
push eax
push esi
call fcn.100d8d70
add esp, 0x18
test al, al
je 0x100d965c
lea ecx, [esp + 0xa0]
test ecx, ecx
je 0x100d965c
cmp dword [esp + 0x90], 0x2e
jbe 0x100d965c
push 0x13
lea edx, [esp + 0xa4]
push 0xa
lea eax, [esp + 0x2c]
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 + 0x3a8], ebx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x3b0]
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 + 0x28]
mov dword [esp + 0x3a8], ebp
cmp eax, ebx
je 0x100d94b4
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x100d94ab
cmp al, 0xff
je 0x100d94ab
dec al
mov byte [ecx], al
jmp 0x100d94b4
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0x2e
lea eax, [esp + 0xa4]
push 0x1b
lea ecx, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 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 + 0x3a8], 1
mov ecx, dword [edx]
push ecx
mov ecx, dword [esp + 0x3b8]
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 + 0x38]
mov dword [esp + 0x3a8], ebp
cmp eax, ebx
je 0x100d9528
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x100d951f
cmp al, 0xff
je 0x100d951f
dec al
mov byte [ecx], al
jmp 0x100d9528
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0x1a
lea edx, [esp + 0xa4]
push 0x17
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 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 + 0x3a8], 2
mov eax, dword [ecx]
mov ecx, dword [esi + 8]
mov ebp, ecx
cmp eax, ebp
jae 0x100d956d
mov ebp, eax
mov edi, dword [esp + 0x3b8]
cmp edi, esi
jne 0x100d9591
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 0x100d9617
cmp ebp, ebx
jbe 0x100d95da
cmp ebp, ecx
jne 0x100d95da
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x100d95a5
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 0x100d95da
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 0x100d95c1
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 0x100d9617
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 0x100d9617
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x100d95f6
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 + 0x3bc]
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 + 0x48]
mov dword [esp + 0x3a8], 0xffffffff
cmp eax, ebx
je 0x100d9647
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x100d963e
cmp al, 0xff
je 0x100d963e
dec al
mov byte [ecx], al
jmp 0x100d9647
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x20]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov byte [esp + 0x13], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, 0x10
mov al, byte [esp + 0x13]
jl 0x100d933b
mov ecx, dword [esp + 0x3a0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x39c
ret