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

Disassembly:
push 0xffffffffffffffff
push 0x100a7c24
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x160
push ebx
push ebp
push esi
xor ebx, ebx
xor al, al
xor esi, esi
push edi
mov byte [esp + 0x13], al
mov dword [esp + 0x14], esi
cmp al, bl
jne 0x10096373
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x70]
push esi
rep stosd dword es:[edi], eax
push 0x10136834
lea eax, [esp + 0x78]
push 0xff
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea ecx, [esp + 0x70]
push ebx
push ebx
push 3
push ebx
push 7
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x10096361
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x58]
lea edx, [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x60]
push 0x18
push eax
push ebx
push ebx
push 0x74080
push ebp
mov dword [esp + 0x44], ebx
call esi
test eax, eax
je 0x10096356
push 0x221
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x18], edi
je 0x10096356
lea ecx, [esp + 0x20]
push ebx
push ecx
push 0x221
push edi
push 0x21
push edi
push 0x7c088
push ebp
mov byte [edi + 0xa], 0xec
mov dword [esp + 0x40], ebx
call esi
test eax, eax
je 0x1009634c
mov eax, dword [edi]
lea esi, [edi + 0x10]
cmp esi, ebx
je 0x1009634c
cmp eax, 0x2e
jbe 0x1009634c
push 0x13
push 0xa
lea edx, [esp + 0x30]
push esi
push edx
call fcn.10095790
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 + 0x178], ebx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x180]
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 + 0x2c]
or edi, 0xffffffff
cmp eax, ebx
mov dword [esp + 0x178], edi
je 0x100961b0
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x100961a7
cmp al, 0xff
je 0x100961a7
dec al
mov byte [ecx], al
jmp 0x100961b0
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0x2e
push 0x1b
lea eax, [esp + 0x50]
push esi
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.10095790
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 + 0x178], 1
mov edx, dword [ecx]
mov ecx, dword [esp + 0x184]
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 + 0x4c]
mov dword [esp + 0x178], edi
cmp eax, ebx
je 0x1009621d
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x10096214
cmp al, 0xff
je 0x10096214
dec al
mov byte [ecx], al
jmp 0x1009621d
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0x1a
push 0x17
lea eax, [esp + 0x40]
push esi
push eax
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
call fcn.10095790
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 + 0x178], 2
mov eax, dword [ecx]
mov ecx, dword [esi + 8]
mov ebp, ecx
cmp eax, ebp
jae 0x1009625b
mov ebp, eax
mov edi, dword [esp + 0x188]
cmp edi, esi
jne 0x1009627f
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 0x10096305
cmp ebp, ebx
jbe 0x100962c8
cmp ebp, ecx
jne 0x100962c8
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x10096293
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 0x100962c8
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 0x100962af
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 0x10096305
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 0x10096305
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x100962e4
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 + 0x18c]
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 ecx, dword [esp + 0x3c]
mov dword [esp + 0x178], 0xffffffff
cmp ecx, ebx
je 0x10096333
mov al, byte [ecx - 1]
dec ecx
cmp al, bl
je 0x1009632a
cmp al, 0xff
je 0x1009632a
dec al
mov byte [ecx], al
jmp 0x10096333
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x13], 1
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
mov al, byte [esp + 0x13]
inc esi
cmp esi, 0x10
mov dword [esp + 0x14], esi
jl 0x1009606d
mov ecx, dword [esp + 0x170]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x16c
ret