Function at 0x140001290
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movdqa xmm1, xmmword [0x140005a00]
movdqu xmmword [rsp + 0x58], xmm1
mov byte [rsp + 0x48], r14b
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov qword [rsp + 0x40], r14
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140000000]
lea rax, [rax + 0x59d8]
mov qword [rsp + 0x70], rax
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea r12, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x80], r12
mov byte [rbp - 4], r14b
mov byte [rbp - 0xf], r14b
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp], r14
mov rax, qword [0x1400099f0]
mov qword [rbp - 0xc], rax
mov qword [rbp - 0x18], r14
mov ebx, 1
mov r8d, ebx
lea rcx, [rbp - 0x80]
call fcn.140002bb0
test rax, rax
jne 0x1400013dd
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [rbx + 1]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rdx, str._n_______________________________________________________________________________________n__________________________________________________________________________n____._____________________________________________________________________n____._______________________________________________________n_______________________________________________________n_______________________________________________________n_______________________________________________________________________________________n________________________________________________________________by_Sc23___Ver_1.0.1__________n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002ec0
mov rcx, rax
lea rdx, [0x140003090]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp qword [rbp], 0
jne 0x14000143c
lea rdx, str._Error__Failed_to_patch_Stellaris._exit_code_0x01
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002ec0
mov rcx, rax
lea rdx, [0x140003090]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
jmp 0x1400018e5
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.140003460
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
je 0x1400014e8
nop dword [rax]
mov rdx, qword [rsp + 0x38]
lea r8, [rsp + 0x48]
cmp rdx, qword [rsp + 0x40]
je 0x14000149e
call fcn.140003b00
add qword [rsp + 0x38], 0x20
jmp 0x1400014a8
lea rcx, [rsp + 0x30]
call fcn.1400037c0
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.140003460
mov rcx, qword [rax]
movsxd rcx, dword [rcx + 4]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::operator_bool_void_const___ptr64]
test al, al
jne 0x140001480
lea rcx, [rbp - 0x80]
call fcn.140002af0
test rax, rax
jne 0x140001514
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov r13d, r14d
mov rax, qword [rsp + 0x38]
mov r15, qword [rsp + 0x30]
sub rax, r15
sar rax, 5
test rax, rax
je 0x140001609
mov rdi, r14
mov r12, r14
nop word [rax + rax]
lea rax, [r15 + r12]
mov rsi, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140001551
mov rsi, qword [rax]
mov rcx, qword [rax + 0x10]
cmp rcx, 0x18
jb 0x1400015db
lea r14, [rcx + rsi]
lea r8, [r14 - 0x17]
sub r8, rsi
mov edx, 0x22
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400015db
nop
mov r8d, 0x18
lea rdx, str._distPlatform_:__steam__
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400015ba
inc rbx
lea r8, [r14 - 0x17]
sub r8, rbx
mov edx, 0x22
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140001580
jmp 0x1400015db
sub rbx, rsi
cmp rbx, 0xffffffffffffffff
je 0x1400015db
shl rdi, 5
lea rcx, [r15 + rdi]
mov r8d, 0x16
call fcn.140002d50
mov r15, qword [rsp + 0x30]
inc r13d
add r12, 0x20
mov rax, qword [rsp + 0x38]
sub rax, r15
sar rax, 5
movsxd rdi, r13d
cmp rdi, rax
jb 0x140001540
mov ebx, 1
xor r14d, r14d
lea r12, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x80]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140000000]
lea rax, [rax + 0x59d0]
mov qword [rbp + 0x80], rax
lea rcx, [rbp + 0x128]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x88]
lea rcx, [rbp + 0x80]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x80], rsi
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x7c], edx
lea rcx, [rbp + 0x88]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
mov qword [rbp + 0x88], r12
mov byte [rbp + 0x104], 0
mov byte [rbp + 0xf9], 0
lea rcx, [rbp + 0x88]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x108], r14
mov rax, qword [0x1400099f0]
mov qword [rbp + 0xfc], rax
mov qword [rbp + 0xf0], r14
mov r8d, 2
lea rcx, [rbp + 0x88]
call fcn.140002bb0
test rax, rax
jne 0x140001717
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
cmp qword [rbp + 0x108], 0
jne 0x140001756
lea rdx, str._Error__Failed_to_patch_Stellaris._exit_code_0x02
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002ec0
mov rcx, rax
lea rdx, [0x140003090]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
jmp 0x140001835
mov edi, r14d
mov rax, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
sub rax, rdx
sar rax, 5
test rax, rax
je 0x1400017c2
mov rbx, r14
lea r8, [rdx + rbx]
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x140001783
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp + 0x80]
call fcn.140003600
mov rcx, rax
lea rdx, [0x140003090]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
inc edi
add rbx, 0x20
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x30]
sub rcx, rdx
sar rcx, 5
movsxd rax, edi
cmp rax, rcx
jb 0x140001772
lea rcx, [rbp + 0x88]
call fcn.140002af0
test rax, rax
jne 0x1400017f5
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rdx, str._Success__Patch_finished__Press_Enter_to_launch_Stellaris.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002ec0
mov rcx, rax
lea rdx, [0x140003090]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.start_dowser.exe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ebx, r14d
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x80], rsi
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x7c], edx
mov qword [rbp + 0x88], r12
cmp qword [rbp + 0x108], 0
je 0x1400018a7
mov rax, qword [rbp + 0xa0]
lea rcx, [rbp + 0xf8]
cmp qword [rax], rcx
jne 0x1400018a7
mov rdx, qword [rbp + 0x118]
mov rcx, qword [rbp + 0x110]
mov qword [rax], rcx
mov rax, qword [rbp + 0xc0]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0xd8]
mov dword [rax], edx
cmp byte [rbp + 0x104], 0
je 0x1400018bc
lea rcx, [rbp + 0x88]
call fcn.140002af0
lea rcx, [rbp + 0x88]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x90]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x128]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x6c], edx
mov qword [rbp - 0x80], r12
cmp qword [rbp], 0
je 0x14000193f
mov rax, qword [rbp - 0x68]
lea rcx, [rbp - 0x10]
cmp qword [rax], rcx
jne 0x14000193f
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp + 8]
mov qword [rax], rcx
mov rax, qword [rbp - 0x48]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x30]
mov dword [rax], edx
cmp byte [rbp - 4], 0
je 0x14000194e
lea rcx, [rbp - 0x80]
call fcn.140002af0
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400019ce
mov rdx, qword [rsp + 0x38]
call fcn.1400031e0
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003cdc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140001a0e
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001a09
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003cdc
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140003c80
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret