Function at 0x49cc60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bec6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x10
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0049d2e0
mov edi, eax
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x30]
push ecx
xor ebx, ebx
push str.OS_Rng:
push edx
mov dword [esp + 0x84], ebx
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push str._operation_failed_with_error
push eax
lea eax, [esp + 0x34]
mov byte [esp + 0x8c], 1
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
push 0x58b244
lea ecx, [esp + 0x6c]
push eax
push ecx
mov byte [esp + 0x9c], 2
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
push edi
lea edx, [esp + 0x68]
push eax
push edx
mov byte [esp + 0xa8], 3
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0x3c
mov ebp, eax
mov ecx, esi
mov byte [esp + 0x6c], 4
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_void_]
mov dword [esi + 0xc], 6
mov al, byte [ebp]
lea edi, [esi + 0x10]
push ebx
mov ecx, edi
mov byte [esp + 0x70], 5
mov byte [edi], al
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 ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
mov ecx, edi
push edx
push ebx
push ebp
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 dword [esi], vtable.CryptoPP::Exception.0
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x70], 0xb
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 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x70], 0xa
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 [esp + 0x18]
cmp eax, ebx
je 0x49cd8a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49cd81
cmp al, 0xff
je 0x49cd81
dec al
mov byte [ecx], al
jmp 0x49cd8a
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
cmp eax, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x49cdbb
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49cdb2
cmp al, 0xff
je 0x49cdb2
dec al
mov byte [ecx], al
jmp 0x49cdbb
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x58]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x49cdec
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x49cde3
cmp al, 0xff
je 0x49cde3
dec al
mov byte [ecx], al
jmp 0x49cdec
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x64]
mov dword [esi], vtable.CryptoPP::OS_RNG_Err.0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 4