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

Disassembly:
push 0xffffffffffffffff
push 0x100a7bf4
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 0x10096019
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 0x10136834
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 0x10096003
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 0x10095ffc
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.10095710
add esp, 0x18
test al, al
je 0x10095ffc
lea ecx, [esp + 0xa0]
test ecx, ecx
je 0x10095ffc
cmp dword [esp + 0x90], 0x2e
jbe 0x10095ffc
push 0x13
lea edx, [esp + 0xa4]
push 0xa
lea eax, [esp + 0x2c]
push edx
push eax
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 + 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 0x10095e54
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x10095e4b
cmp al, 0xff
je 0x10095e4b
dec al
mov byte [ecx], al
jmp 0x10095e54
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.10095790
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 0x10095ec8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x10095ebf
cmp al, 0xff
je 0x10095ebf
dec al
mov byte [ecx], al
jmp 0x10095ec8
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.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 + 0x3a8], 2
mov eax, dword [ecx]
mov ecx, dword [esi + 8]
mov ebp, ecx
cmp eax, ebp
jae 0x10095f0d
mov ebp, eax
mov edi, dword [esp + 0x3b8]
cmp edi, esi
jne 0x10095f31
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 0x10095fb7
cmp ebp, ebx
jbe 0x10095f7a
cmp ebp, ecx
jne 0x10095f7a
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x10095f45
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 0x10095f7a
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 0x10095f61
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 0x10095fb7
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 0x10095fb7
mov esi, dword [esi + 4]
cmp esi, ebx
jne 0x10095f96
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 0x10095fe7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x10095fde
cmp al, 0xff
je 0x10095fde
dec al
mov byte [ecx], al
jmp 0x10095fe7
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 0x10095cdb
mov ecx, dword [esp + 0x3a0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x39c
ret