Function at 0x4013f0
Capabilities:
Extract resource via kernel32 functions
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x405004]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov edx, str.No_More_Sleep_AutoPatcher___OMSI_2_version
push 0x401aa0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov dword [esp + 0x18], edi
call fcn.00401860
add esp, 4
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_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push 0x401aa0
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_____]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov ebx, 1
cmp dword [ebp + 8], ebx
jle 0x4014dc
mov edi, dword [edi + ebx*4]
push str._ODE
push edi
call esi
movzx ecx, byte [0x405380]
test eax, eax
mov eax, 1
cmove ecx, eax
push 0x4032d0
push edi
mov byte [0x405380], cl
call esi
movzx ecx, byte [0x405381]
test eax, eax
mov eax, 1
cmove ecx, eax
push 0x4032d4
push edi
mov byte [0x405381], cl
call esi
add esp, 0x18
test eax, eax
je 0x40178f
push 0x4032d8
push edi
call esi
add esp, 8
test eax, eax
je 0x40178f
push str._HELP
push edi
call esi
add esp, 8
test eax, eax
je 0x40178f
mov edi, dword [esp + 0x10]
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x401454
push 0x401aa0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Starting...
call fcn.00401860
add esp, 4
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_____]
cmp byte [0x405381], 0
jne 0x40157b
push 0x401aa0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.WARNING:_The_program_modifies_files_without_making_a_backup_copy._nMake_a_backup_copy_of_the_files_to_avoid_a_troublesome_repair_reinstall._n_nYou_can_find_a_list_of_files_by_typing_NMSPATCHER____or_NMSPATCHER__help._n_nContinue_anyway___Y_N_
call fcn.00401860
add esp, 4
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 0x64
lea eax, [esp + 0x1c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea eax, [esp + 0x24]
add esp, 0xc
push 0
push 0x64
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::getline_char___long_long___int64__]
lea eax, [esp + 0x18]
push 0x4033d8
push eax
call esi
add esp, 8
test eax, eax
je 0x40157b
lea eax, [esp + 0x18]
push 0x4033dc
push eax
call esi
add esp, 8
test eax, eax
je 0x40157b
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
cmp byte [0x405380], 0
jne 0x4015f5
push 0x401aa0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Do_you_also_want_to_use_the_newer_version_of_Open_Dynamics_Engine__nThis_version_has_been_compiled_with_newer_tools_with_optimizations__but_the_functionality_of_this_version_has_not_been_fully_tested._n_nIf_you_want_to_keep_a_backup_copy_of_the_original_file__copy_the_ODE.DLL_file_to_a_safe_location_NOW._n_nExtract_and_replace_the_file___Y_N_
call fcn.00401860
add esp, 4
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 0x64
lea eax, [esp + 0x1c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea eax, [esp + 0x24]
add esp, 0xc
push 0
push 0x64
push eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::getline_char___long_long___int64__]
lea eax, [esp + 0x18]
push 0x4033d8
push eax
call esi
add esp, 8
test eax, eax
je 0x4015f5
lea eax, [esp + 0x18]
push 0x4033dc
push eax
call esi
add esp, 8
test eax, eax
je 0x4015f5
xor al, al
jmp 0x4015f7
mov al, 1
push 0xa
push 4
push 0
mov byte [0x405380], al
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x403458
mov esi, eax
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push 0x40345c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0xc
cmp dword [esp + 0x10], 0
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push 0x401aa0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jne 0x40167f
mov edx, str.Failed_to_unpack_KRNL32.DLL
call fcn.00401860
add esp, 4
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_____]
jmp 0x4016aa
mov edx, str.Unpacking_KRNL32.DLL...
call fcn.00401860
add esp, 4
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 dword [esp + 0x10]
push 1
push esi
push dword [esp + 0x18]
call edi
push dword [esp + 0x20]
call ebx
add esp, 0x14
cmp byte [0x405380], 0
je 0x401759
push 0xa
push 0x66
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x403458
mov esi, eax
mov dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push str.ODE.DLL
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0xc
cmp dword [esp + 0x10], 0
push 0x401aa0
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
jne 0x40172e
mov edx, str.Failed_to_unpack_KRNL32.DLL
call fcn.00401860
add esp, 4
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_____]
jmp 0x401759
mov edx, str.Unpacking_ODE.DLL...
call fcn.00401860
add esp, 4
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 dword [esp + 0x10]
push 1
push esi
push dword [esp + 0x18]
call edi
push dword [esp + 0x20]
call ebx
add esp, 0x14
call fcn.00401160
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea eax, [esp + 0x17]
push 0
push 1
push eax
mov byte [esp + 0x23], 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______thiscall_std::basic_istream_char__struct_std::char_traits_char__::getline_char___long_long___int64__]
mov ecx, dword [esp + 0x84]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401acf
mov esp, ebp
pop ebp
ret
call fcn.00401000
int3