Function at 0x401120
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4054af
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x40a014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xf0], esi
push 0xb8
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xf0], esi
push 0
push eax
mov dword [ebp - 0xf4], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xe0], 0x406654
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 dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0xf4], 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], 1
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 dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
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 [0x40a768]
mov ecx, dword [0x40a76c]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x98], 0
push 0x40
push 1
push str.config.ini
mov dword [ebp - 4], 2
call dword [sym.imp.MSVCP140.dll_struct__iobuf____cdecl_std::_Fiopen_char_const___int__int_]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40138a
lea ecx, [ebp - 0xd0]
mov byte [ebp - 0x88], 1
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_]
lea eax, [ebp - 0xe4]
mov dword [ebp - 0xec], 0
push eax
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xe8], 0
push eax
lea eax, [ebp - 0xec]
mov dword [ebp - 0xe4], 0
push eax
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_stream_buffer_pointers]
mov edx, dword [ebp - 0xe4]
add esp, 0x10
mov ecx, dword [ebp - 0xe8]
mov eax, dword [ebp - 0xec]
push edx
push ecx
push eax
push edx
push ecx
push eax
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_char____char____int___char____char____int__]
mov eax, dword [0x40a768]
mov ecx, dword [0x40a76c]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xfc]
mov dword [ebp - 0x8c], ecx
lea ecx, [ebp - 0xd0]
push eax
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x98], 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::locale___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::getloc_void_]
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.00402210
mov edi, eax
mov ecx, edi
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::codecvt_base::always_noconv_void_const]
test al, al
je 0x40133c
mov dword [ebp - 0x98], 0
jmp 0x40134e
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0x98], edi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xf8]
test ecx, ecx
je 0x40136f
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x40136f
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
push 0
push 0
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
jmp 0x4013a3
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
cmp dword [ebp - 0x84], 0
jne 0x4013b4
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe0]
mov eax, dword [ebp - 0xe0]
push 0xa
add ecx, dword [eax + 4]
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.00402460
add esp, 4
lea edx, [ebp - 0x28]
xorps xmm0, xmm0
mov ecx, esi
movq qword [esi], xmm0
mov dword [esi + 8], 0
call fcn.00403d70
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x40144b
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401441
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401441
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00404859
add esp, 8
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 ecx, dword [ebp - 0xe0]
mov edx, dword [ecx + 4]
lea ecx, [edx - 0x70]
mov dword [ebp + edx - 0xe4], ecx
lea ecx, [ebp - 0xd0]
call fcn.00401f70
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 eax, esi
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.0040484b
mov esp, ebp
pop ebp
ret