Function at 0x404780
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov eax, 0x1025c
mov ebp, esp
push edi
push esi
push ebx
call fcn.00413740
sub esp, eax
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x18]
mov dword [ebp - 0x10224], sym.___gxx_personality_sj0
mov dword [ebp - 0x10220], 0x4e0d98
mov dword [ebp - 0x10240], eax
lea eax, [ebp - 0x1023c]
mov dword [ebp - 0x1021c], edi
mov dword [ebp - 0x10218], 0x404ef8
mov dword [ebp - 0x10214], esp
mov dword [ebp - 0x10244], eax
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
cmp byte [ebp - 0x10240], 0
je 0x404840
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 8]
add eax, 8
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov byte [esp + 8], 0
mov edi, dword [ebp + 0xc]
mov edx, dword [edi + 4]
mov dword [esp], eax
add edx, eax
mov dword [esp + 4], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10238], 0xffffffff
call method.void_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_construct_char__char__char__std::forward_iterator_tag_
sub esp, 0xc
mov eax, dword [ebp - 0x10244]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x100a0]
mov ecx, eax
mov dword [ebp - 0x10248], eax
call fcn.004d3000
mov edi, dword [0x4eeec0]
xor edx, edx
mov dword [ebp - fcn.004d4fd0], 0x4f0b9c
mov word [ebp - 0x1002c], dx
mov dword [ebp - 0x10110], edi
mov eax, dword [edi - 0xc]
mov esi, edi
mov edi, dword [0x4eeec4]
mov dword [ebp - 0x10030], 0
mov dword [ebp - 0x10028], 0
mov dword [ebp - 0x10024], 0
mov dword [ebp - 0x10020], 0
mov dword [ebp - 0x1001c], 0
mov dword [ebp + eax - 0x10110], edi
lea edi, [ebp - 0x10110]
mov dword [ebp - 0x1010c], 0
add edi, dword [esi - 0xc]
mov dword [esp], 0
mov ecx, edi
mov dword [ebp - 0x10238], 8
call method.std::basic_ios_char__std::char_traits_char___.init_std::basic_streambuf_char__std::char_traits_char____
mov dword [ebp - fcn.004a3930], 0x4f0024
lea edi, [ebp - 0x10108]
sub esp, 4
mov dword [ebp - sym.virtual_thunk_to_std::basic_ifstream_char__std::char_traits_char___::basic_ifstream__], 0x4f0038
mov ecx, edi
mov dword [ebp - 0x10238], 3
call fcn.004946e0
mov dword [esp], edi
mov ecx, dword [ebp - 0x10248]
mov dword [ebp - 0x10238], 4
call method.std::basic_ios_char__std::char_traits_char___.init_std::basic_streambuf_char__std::char_traits_char____
sub esp, 4
mov ecx, edi
mov dword [esp + 4], 0xc
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp], eax
call method.std::basic_filebuf_char__std::char_traits_char___.open_char_const__std::_Ios_Openmode_
mov edx, dword [ebp - 0x10110]
lea ecx, [ebp - 0x10110]
sub esp, 8
add ecx, dword [edx - 0xc]
test eax, eax
je 0x404d80
mov dword [esp], 0
mov dword [ebp - 0x10238], 4
call method.std::basic_ios_char__std::char_traits_char___.clear_std::_Ios_Iostate_
sub esp, 4
test byte [ebp - 0x1008c], 5
jne 0x404d9e
mov dword [ebp - 0x101f8], 0x6a09e667
mov dword [ebp - 0x101f4], 0xbb67ae85
mov dword [ebp - 0x101f0], 0x3c6ef372
mov dword [ebp - 0x101ec], 0xa54ff53a
mov dword [ebp - 0x101e8], 0x510e527f
mov dword [ebp - 0x101e4], 0x9b05688c
mov dword [ebp - 0x101e0], 0x1f83d9ab
mov dword [ebp - 0x101dc], 0x5be0cd19
lea esi, [esi]
lea eax, [ebp - 0x10018]
mov dword [esp + 4], 0x10000
lea ecx, [ebp - 0x10110]
mov dword [esp], eax
mov dword [ebp - 0x10238], 1
call method.std::istream.read_char__int_
sub esp, 8
lea eax, [ebp - 0x101f8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10018]
mov dword [esp], eax
call sym.sha256_block_unsigned_char_const__unsigned_int_
test byte [ebp - 0x1008c], 5
je 0x4049d8
lea ecx, [ebp - 0x10198]
call fcn.004d3000
xor eax, eax
lea ecx, [ebp - 0x101d8]
mov dword [ebp - fcn.004d4fd0], 0x4f0b9c
mov word [ebp - 0x10124], ax
mov eax, dword [0x4eee14]
mov dword [ebp - 0x10128], 0
add ecx, dword [eax - 0xc]
mov dword [ebp - 0x101d8], eax
mov dword [ebp - 0x10120], 0
mov eax, dword [0x4eee18]
mov dword [ebp - 0x1011c], 0
mov dword [ebp - 0x10118], 0
mov dword [ebp - 0x10114], 0
mov dword [ecx], eax
mov dword [esp], 0
mov dword [ebp - 0x10238], 9
call method.std::basic_ios_char__std::char_traits_char___.init_std::basic_streambuf_char__std::char_traits_char____
mov dword [ebp - fcn.004ccb50], 0x4efa40
sub esp, 4
lea ecx, [ebp - 0x101b8]
mov dword [ebp - method.virtual_thunk_to_std::__cxx11::basic_ostringstream_char__std::char_traits_char___std::allocator_char___.basic_ostringstream__], 0x4efa54
mov dword [ebp - fcn.004aa620], vtable.c_streambufIwSt11char_traitsIwEE.0
mov dword [ebp - 0x101d0], 0
mov dword [ebp - 0x101cc], 0
mov dword [ebp - 0x101c8], 0
mov dword [ebp - 0x101c4], 0
mov dword [ebp - 0x101c0], 0
mov dword [ebp - 0x101bc], 0
call method.std::locale.locale__
lea eax, [ebp - 0x101a8]
mov dword [ebp - fcn.004bfb70], 0x4ef74c
lea ecx, [ebp - 0x10198]
mov dword [ebp - 0x101b0], eax
lea eax, [ebp - 0x101d4]
mov dword [ebp - 0x101b4], 0x10
mov dword [ebp - 0x101ac], 0
mov byte [ebp - 0x101a8], 0
mov dword [esp], eax
mov dword [ebp - 0x10238], 5
call method.std::basic_ios_char__std::char_traits_char___.init_std::basic_streambuf_char__std::char_traits_char____
mov eax, dword [ebp - 0x101d8]
lea esi, [ebp - 0x101d8]
sub esp, 4
add esi, dword [eax - 0xc]
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x10240], esi
mov edx, edi
mov dword [ebp - 0x1024c], edi
and edx, 0xffffffb5
or edx, 8
cmp byte [esi + 0x75], 0
mov dword [esi + 0xc], edx
je 0x404e48
mov esi, dword [ebp - 0x10240]
mov byte [esi + 0x74], 0x30
lea esi, [ebp - 0x101f8]
mov dword [ebp - 0x10240], esi
jmp 0x404bb6
mov eax, dword [ebp - 0x101d8]
mov ebx, dword [ebp - 0x10240]
mov eax, dword [eax - 0xc]
lea ecx, [ebp - 0x101d8]
mov dword [ebp + eax - 0x101d0], 8
mov edx, dword [ebx]
mov dword [esp], edx
mov dword [ebp - 0x10238], 2
call method.std::ostream_std::ostream._M_insert_unsigned_long__unsigned_long_
add dword [ebp - 0x10240], 4
mov ebx, dword [ebp - 0x10240]
lea eax, [ebp - 0x101d8]
sub esp, 4
cmp eax, ebx
jne 0x404bb0
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 8]
add eax, 8
mov dword [edi + 4], 0
mov dword [ebp - 0x10250], eax
mov dword [edi], eax
mov eax, dword [ebp - 0x101c0]
mov byte [edi + 8], 0
test eax, eax
je 0x404ea8
mov edx, dword [ebp - 0x101c8]
mov ecx, dword [ebp - 0x101c4]
cmp eax, edx
ja 0x404e38
sub edx, ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10238], 6
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_replace_unsigned_int__unsigned_int__char_const__unsigned_int_
sub esp, 0x10
mov eax, dword [ebp - 0x101b0]
lea esi, [ebp - 0x101a8]
mov dword [ebp - fcn.004ccb50], 0x4efa40
mov dword [ebp - method.virtual_thunk_to_std::__cxx11::basic_ostringstream_char__std::char_traits_char___std::allocator_char___.basic_ostringstream__], 0x4efa54
mov dword [ebp - fcn.004bfb70], 0x4ef74c
cmp eax, esi
je 0x404ca0
mov dword [esp], eax
call sym.operator_delete_void_
mov dword [ebp - fcn.004aa620], vtable.c_streambufIwSt11char_traitsIwEE.0
lea ecx, [ebp - 0x101b8]
call fcn.004b5850
mov eax, dword [0x4eee14]
mov edi, dword [0x4eee18]
lea ecx, [ebp - 0x10198]
mov dword [ebp - 0x101d8], eax
mov eax, dword [eax - 0xc]
mov dword [ebp + eax - 0x101d8], edi
mov dword [ebp - fcn.004d4fd0], 0x4f0b9c
call method.std::ios_base.ios_base__
mov dword [ebp - sym.virtual_thunk_to_std::basic_ifstream_char__std::char_traits_char___::basic_ifstream__], 0x4f0038
lea ecx, [ebp - 0x10108]
mov dword [ebp - fcn.00494c00], 0x4efec4
mov dword [ebp - 0x10238], 7
mov dword [ebp - fcn.004a3930], 0x4f0024
call method.std::basic_filebuf_char__std::char_traits_char___.close__
lea ecx, [ebp - 0x100e4]
call method.std::__basic_file_char_.__basic_file__
lea ecx, [ebp - 0x100ec]
mov dword [ebp - fcn.004aa620], vtable.c_streambufIwSt11char_traitsIwEE.0
call fcn.004b5850
mov eax, dword [0x4eeec0]
mov edi, dword [0x4eeec4]
mov ecx, dword [ebp - 0x10248]
mov dword [ebp - 0x10110], eax
mov eax, dword [eax - 0xc]
mov dword [ebp + eax - 0x10110], edi
mov dword [ebp - 0x1010c], 0
mov dword [ebp - fcn.004d4fd0], 0x4f0b9c
call method.std::ios_base.ios_base__
jmp 0x40481e
mov eax, dword [ecx + 0x14]
or eax, 4
mov dword [esp], eax
call method.std::basic_ios_char__std::char_traits_char___.clear_std::_Ios_Iostate_
sub esp, 4
test byte [ebp - 0x1008c], 5
je 0x404981
mov dword [esp + 8], 0x15
mov dword [esp + 4], str.failed_to_open_file:
mov dword [esp], 0x4e5660
mov dword [ebp - 0x10238], 1
call method.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__int_
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [esp], 0x4e5660
mov dword [esp + 4], eax
call method.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__int_
lea edx, [ebp - 0x101f9]
mov byte [ebp - 0x101f9], 0xa
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [esp], eax
call method.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__int_
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 8]
add eax, 8
mov dword [esi], eax
mov byte [esp + 8], 0
mov dword [esp + 4], 0x4e637c
mov dword [esp], 0x4e637c
mov ecx, dword [ebp + 8]
call method.void_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_construct_char_const__char_const__char_const__std::forward_iterator_tag_
sub esp, 0xc
jmp 0x404ce5
sub eax, ecx
mov dword [esp + 0xc], eax
jmp 0x404c42
mov edi, dword [ebp - 0x10240]
mov esi, dword [edi + 0x7c]
mov dword [ebp - 0x1024c], esi
test esi, esi
je 0x404ee9
mov edi, dword [ebp - 0x1024c]
cmp byte [edi + 0x1c], 0
jne 0x404e94
mov dword [ebp - 0x10238], 2
mov ecx, edi
call method.std::ctype_char_._M_widen_init___const
mov edi, dword [ebp - 0x1024c]
mov eax, dword [edi]
mov eax, dword [eax + 0x18]
cmp eax, method.std::ctype_char_.do_widen_char__const
jne 0x404ecb
mov eax, dword [ebp - 0x101d8]
mov esi, dword [ebp - 0x10240]
mov byte [esi + 0x75], 1
jmp 0x404b90
lea eax, [ebp - 0x101b0]
mov dword [esp], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10238], 6
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___._M_assign_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
sub esp, 4
jmp 0x404c6a
mov dword [esp], 0x20
mov ecx, dword [ebp - 0x1024c]
mov dword [ebp - 0x10238], 2
call eax
sub esp, 4
jmp 0x404e8e
mov dword [ebp - 0x10238], 2
call method.std.__throw_bad_cast__
add ebp, 0x18
mov eax, dword [ebp - 0x10234]
cmp dword [ebp - 0x10238], 8
mov dword [ebp - 0x10240], eax
ja case.default.0x404f16
mov eax, dword [ebp - 0x10238]
jmp dword [eax*4 + 0x4e6380]
ud2
mov eax, dword [ebp - 0x101b0]
lea edx, [ebp - 0x101a8]
mov dword [ebp - fcn.004bfb70], 0x4ef74c
cmp eax, edx
je 0x404f41
mov dword [esp], eax
call sym.operator_delete_void_
mov dword [ebp - fcn.004aa620], vtable.c_streambufIwSt11char_traitsIwEE.0
lea ecx, [ebp - 0x101b8]
call fcn.004b5850
mov eax, dword [0x4eee14]
mov edi, dword [0x4eee18]
mov dword [ebp - 0x101d8], eax
mov eax, dword [eax - 0xc]
mov dword [ebp + eax - 0x101d8], edi
mov dword [ebp - fcn.004d4fd0], 0x4f0b9c
lea ecx, [ebp - 0x10198]
call method.std::ios_base.ios_base__
lea ecx, [ebp - 0x10110]
call fcn.004a3930
mov eax, dword [ebp - 0x10240]
mov dword [esp], eax
mov dword [ebp - 0x10238], 0xffffffff
call dbg._Unwind_SjLj_Resume
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [ebp - 0x10250], eax
je case.0x404f16.23
mov dword [esp], eax
call sym.operator_delete_void_
lea ecx, [ebp - 0x101d8]
call fcn.004ccb50
jmp case.0x404f16.24
lea ecx, [ebp - 0x10108]
call fcn.00494c00
mov eax, dword [0x4eeec0]
mov edi, dword [0x4eeec4]
mov dword [ebp - 0x10110], eax
mov eax, dword [eax - 0xc]
mov dword [ebp + eax - 0x10110], edi
mov dword [ebp - 0x1010c], 0
mov dword [ebp - fcn.004d4fd0], 0x4f0b9c
lea ecx, [ebp - 0x100a0]
call method.std::ios_base.ios_base__
mov eax, dword [ebp - 0x10240]
mov dword [esp], eax
mov dword [ebp - 0x10238], 0xffffffff
call dbg._Unwind_SjLj_Resume
mov eax, dword [ebp - 0x10240]
mov dword [esp], eax
call sym.___cxa_begin_catch
mov dword [ebp - 0x10238], 0
call sym.___cxa_end_catch
lea eax, [ebp - 0x1023c]
mov dword [ebp - 0x10244], eax
lea eax, [ebp - 0x100a0]
mov dword [ebp - 0x10248], eax
jmp 0x404d18