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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bd1fc
push eax
mov dword fs:[0], esp
sub esp, 0x64
lea ecx, [esp + 0x74]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x80]
push edi
push ecx
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x48]
test eax, eax
je 0x4879ba
mov dl, byte [esp + 0x84]
mov al, byte [esp + 0x8c]
cmp dl, al
jne 0x4879ba
lea eax, [esp + 0x10]
push eax
push esi
call fcn.00499d70
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
mov dword [esp + 0x18], eax
jbe 0x487778
push eax
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov eax, dword [esp + 0x14]
add esp, 4
jmp 0x48777a
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov edx, dword [esi]
mov ebx, 3
push eax
push ebp
mov ecx, esi
mov dword [esp + 0x84], ebx
call dword [edx + 0x44]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
je 0x487816
mov al, byte [esp + 0x8c]
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], 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 edi, str.BER_decode_error
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.BER_decode_error
lea ecx, [esp + 0x2c]
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_char_const___unsigned_int_]
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 4
push ecx
lea ecx, [esp + 0x38]
call fcn.0047fd90
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 6
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edx, [esp + 0x34]
push 0x563d88
push edx
mov dword [esp + 0x3c], vtable.CryptoPP::BERDecodeErr.0
mov byte [esp + 0x84], bl
call sub.MSVCRT.dll__CxxThrowException
cmp ecx, 4
mov edi, ebp
jbe 0x487831
cmp byte [edi], 0
jne 0x4878ab
dec ecx
inc edi
cmp ecx, 4
mov dword [esp + 0x10], ecx
ja 0x48781d
mov esi, dword [esp + 0x88]
xor eax, eax
test ecx, ecx
mov dword [esi], 0
jbe 0x48785c
mov ebx, dword [esi]
xor edx, edx
mov dl, byte [eax + edi]
shl ebx, 8
or edx, ebx
inc eax
cmp eax, ecx
mov dword [esi], edx
jb 0x487844
mov ebx, 3
mov esi, dword [esi]
mov eax, dword [esp + 0x90]
cmp esi, eax
jb 0x487935
cmp esi, dword [esp + 0x94]
ja 0x487935
mov ecx, dword [esp + 0x18]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebp
and ecx, ebx
rep stosb byte es:[edi], al
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x78]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
cmp ecx, 4
jbe 0x487831
mov al, byte [esp + 0x8c]
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], 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 edi, str.BER_decode_error
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.BER_decode_error
lea ecx, [esp + 0x2c]
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_char_const___unsigned_int_]
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 7
push ecx
push 1
lea ecx, [esp + 0x3c]
call fcn.0046a780
mov dword [esp + 0x34], vtable.CryptoPP::InvalidArgument.0
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 9
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edx, [esp + 0x34]
push 0x563d88
push edx
mov dword [esp + 0x3c], vtable.CryptoPP::BERDecodeErr.0
mov byte [esp + 0x84], bl
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [esp + 0x8c]
push 0
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], 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 edi, str.BER_decode_error
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.BER_decode_error
lea ecx, [esp + 0x2c]
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_char_const___unsigned_int_]
lea ecx, [esp + 0x24]
mov byte [esp + 0x7c], 0xa
push ecx
push 1
lea ecx, [esp + 0x3c]
call fcn.0046a780
mov dword [esp + 0x34], vtable.CryptoPP::InvalidArgument.0
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 0xc
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edx, [esp + 0x34]
push 0x563d88
push edx
mov dword [esp + 0x3c], vtable.CryptoPP::BERDecodeErr.0
mov byte [esp + 0x84], bl
call sub.MSVCRT.dll__CxxThrowException
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x14]
push eax
push str.BER_decode_error
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const___class_std::allocator_char__const__]
lea ecx, [esp + 0x14]
mov dword [esp + 0x7c], 0
push ecx
lea ecx, [esp + 0x58]
call fcn.0047fd90
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edx, [esp + 0x54]
push 0x563d88
push edx
mov dword [esp + 0x5c], vtable.CryptoPP::BERDecodeErr.0
mov dword [esp + 0x84], 0xffffffff
call sub.MSVCRT.dll__CxxThrowException
nop
nop
nop