Function at 0x401180
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40707a
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x40b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xec], edi
mov dword [ebp - 0xe4], 0
push 0xb8
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], 1
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xe0], 0x408714
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xe4], 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xe4], eax
lea eax, [ebp - 0xd0]
mov ecx, eax
mov dword [ebp - 0xe8], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xd0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0x88], 0
mov byte [ebp - 0x93], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x40b6e4]
mov ecx, dword [0x40b6e8]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x98], 0
mov byte [ebp - 4], 5
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0xd0]
cmovae eax, dword [ebp + 8]
sub esp, 8
push eax
call fcn.00404430
test eax, eax
lea ecx, [ebp - 0xe0]
mov eax, dword [ebp - 0xe0]
push 0
mov eax, dword [eax + 4]
je 0x4012ee
push 0
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
jmp 0x4012f8
push 2
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov ecx, dword [ebp - 0x84]
test ecx, ecx
jne 0x401327
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Open_file_failed_
push 0x404a20
call fcn.004047e0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], 3
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xd4], 1
jne 0x40142e
nop word [eax + eax]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 6
push 0xa
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_char___thiscall_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const]
movzx eax, al
lea edx, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xe0]
call fcn.00405460
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x4013d9
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x28]
push ecx
cmp eax, dword [edi + 8]
je 0x4013d1
mov ecx, eax
call fcn.00405bf0
add dword [edi + 4], 0x18
jmp 0x4013d9
push eax
mov ecx, edi
call fcn.00404c70
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x401411
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x401407
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4015a0
push edx
push ecx
call fcn.00406406
add esp, 8
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
test byte [ebp + eax - 0xd4], 1
je 0x401370
mov ecx, dword [ebp - 0x84]
test ecx, ecx
je 0x4014d3
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0x94]
cmp dword [eax], ecx
jne 0x401460
mov edx, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x80]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0xb4]
mov dword [eax], ecx
mov eax, dword [ebp - 0xa4]
mov dword [eax], edx
lea esi, [ebp - 0xd0]
mov ecx, esi
call fcn.00404360
push dword [ebp - 0x84]
xor ecx, ecx
test al, al
cmove esi, ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor ecx, ecx
add esp, 4
test eax, eax
mov byte [ebp - 0x88], cl
mov byte [ebp - 0x93], cl
cmovne esi, ecx
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x40b6e4]
mov ecx, dword [0x40b6e8]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x98], 0
test esi, esi
jne 0x401533
jmp 0x401518
lea ecx, [ebp - 0xd0]
mov byte [ebp - 0x88], 0
mov byte [ebp - 0x93], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x40b6e4]
mov ecx, dword [0x40b6e8]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x98], 0
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
push 0
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ebp + ecx - 0xe4], eax
lea ecx, [ebp - 0xd0]
call fcn.00403e50
lea ecx, [ebp - 0xc8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_istream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x70]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x4015b0
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4015a6
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4015a6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00406406
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004060e2
mov esp, ebp
pop ebp
ret