Function at 0x1800c8990
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
xor r12d, r12d
mov dword [rbp + 0x240], r12d
mov ecx, dword [0x1801ebe5c]
mov rax, qword gs:[0x58]
mov edx, 0x10
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x1801ed270], eax
jg 0x1800c8fba
cmp byte [0x1801ed258], 0
je 0x1800c8f50
mov rsi, qword [0x1801ed240]
mov rcx, rsi
mov r15, qword [0x1801ed248]
cmp rsi, r15
je 0x1800c8f50
mov rax, qword [rcx]
cmp byte [rax + 0x28], 0
jne 0x1800c8a1e
add rcx, 8
cmp rcx, r15
jne 0x1800c8a07
jmp 0x1800c8f50
lea r13, str.C:_action_runner_workHorseMenuHorseMenu_srccore_settingsSettings.cpp
lea rax, str.void___cdecl_YimMenu::Settings::SaveComponentImpl_class_YimMenu::IStateSerializer__
nop dword [rax]
mov r14, qword [rsi]
cmp byte [r14 + 0x28], 0
je 0x1800c8baf
mov dword [rsp + 0x30], 0x4a
mov dword [rsp + 0x34], 3
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x40], rax
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, [rbp + 0xe8]
call fcn.18010dcd0
nop
lea rdi, [rax + 0x28]
lea rdx, str.Saving_component:
mov rcx, rdi
call fcn.18001a8e0
lea rdx, [r14 + 8]
cmp qword [r14 + 0x20], 0xf
jbe 0x1800c8a8e
mov rdx, qword [r14 + 8]
mov r8, qword [r14 + 0x18]
mov rcx, rdi
call fcn.180030a00
nop
lea rcx, [rbp + 0xe8]
call fcn.18010e270
lea rdx, [r14 + 8]
lea rcx, [rsp + 0x30]
call fcn.18001d6d0
mov rdi, rax
mov qword [rbp + 0x248], rax
movzx eax, byte [0x1801ed260]
test al, al
jne 0x1800c8b26
mov byte [0x1801ed260], 1
mov ecx, 0x10
call fcn.180111264
mov rbx, rax
lea rax, [rbp + 0x240]
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rbx
mov qword [rbx], r12
mov qword [rbx + 8], r12
mov ecx, 0x50
call fcn.180111264
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbx], rax
mov qword [rbp + 0x68], r12
mov qword [0x1801ed268], rbx
movzx eax, byte [0x1801ed260]
jmp 0x1800c8b2d
mov rbx, qword [0x1801ed268]
cmp al, 1
jne 0x1800c8f6b
mov r8, rdi
lea rdx, [rbp + 0x90]
mov rcx, rbx
call fcn.18001f9a0
mov rbx, qword [rbp + 0x90]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x1800c8b88
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1800c8b83
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800c8d38
mov rcx, r8
call fcn.180111228
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rax, qword [r14]
lea rdx, [rbx + 0x40]
mov rcx, r14
call qword [rax]
mov byte [r14 + 0x28], 0
lea rax, str.void___cdecl_YimMenu::Settings::SaveComponentImpl_class_YimMenu::IStateSerializer__
add rsi, 8
cmp rsi, r15
jne 0x1800c8a30
lea rbx, [0x1801ed220]
cmp qword [0x1801ed238], 7
cmova rbx, qword [0x1801ed220]
lea rax, [0x180150790]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rbp + 0x240], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
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 [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rdi
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rsi, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x58], rsi
mov byte [rbp - 0x2c], 0
mov byte [rbp - 0x37], 0
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x28], r12
mov rax, qword [0x1801ec9e0]
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x40], r12
mov r8d, 0x12
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.180032040
test rax, rax
jne 0x1800c8ca8
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], rdi
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
mov r8d, 4
lea rdx, [rsp + 0x30]
lea rcx, [0x1801ed260]
call fcn.18006ab50
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1800c8cef
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.180030a00
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1800c8d44
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800c8d3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800c8d3f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.180111228
cmp qword [rbp - 0x28], 0
je 0x1800c8e84
lea rcx, [rbp - 0x38]
mov rax, qword [rsp + 0x70]
cmp qword [rax], rcx
jne 0x1800c8d77
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
mov qword [rax], rcx
mov rax, qword [rbp - 0x70]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x58]
mov dword [rax], edx
cmp qword [rbp - 0x40], 0
je 0x1800c8df1
cmp byte [rbp - 0x37], 0
je 0x1800c8df1
mov rax, qword [rsp + 0x58]
mov r8, qword [rax + 0x18]
lea rax, [fcn.180033310]
mov edx, 0xffffffff
lea rcx, [rsp + 0x58]
cmp r8, rax
jne 0x1800c8daa
call fcn.180033310
jmp 0x1800c8dad
call r8
cmp eax, 0xffffffff
jne 0x1800c8db6
xor bl, bl
jmp 0x1800c8df3
lea rax, [rbp + 0x240]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x90]
lea r8, [rbp + 0x70]
lea rdx, [rbp - 0x34]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1800c8e42
sub eax, 1
je 0x1800c8e46
cmp eax, 2
je 0x1800c8ded
xor bl, bl
jmp 0x1800c8df3
mov byte [rbp - 0x37], 0
mov bl, 1
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rsp + 0x58]
test bl, bl
cmove rcx, r12
mov rbx, r12
test eax, eax
cmove rbx, rcx
mov byte [rbp - 0x2c], 0
mov byte [rbp - 0x37], 0
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x28], r12
mov rax, qword [0x1801ec9e0]
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x40], r12
test rbx, rbx
jne 0x1800c8eca
jmp 0x1800c8eaa
mov byte [rbp - 0x37], 0
lea rax, [rbp + 0x70]
mov rbx, qword [rbp + 0x240]
sub rbx, rax
je 0x1800c8e78
mov r9, qword [rbp - 0x28]
mov r8, rbx
mov edx, 1
lea rcx, [rbp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
je 0x1800c8e78
xor bl, bl
jmp 0x1800c8df3
cmp byte [rbp - 0x37], 0
sete bl
jmp 0x1800c8df3
mov byte [rbp - 0x2c], 0
mov byte [rbp - 0x37], 0
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x28], r12
mov rax, qword [0x1801ec9e0]
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x40], r12
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], rdi
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
mov qword [rsp + 0x58], rsi
cmp qword [rbp - 0x28], 0
je 0x1800c8f1f
lea rcx, [rbp - 0x38]
mov rax, qword [rsp + 0x70]
cmp qword [rax], rcx
jne 0x1800c8f1f
mov rdx, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
mov qword [rax], rcx
mov rax, qword [rbp - 0x70]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x58]
mov dword [rax], edx
cmp byte [rbp - 0x2c], 0
je 0x1800c8f2f
lea rcx, [rsp + 0x58]
call fcn.1800335b0
lea rcx, [rsp + 0x58]
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, [rsp + 0x60]
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 - 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rbx, qword [rsp + 0x350]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1801ed260]
call fcn.18001c870
mov qword [rbp + 0x240], rax
lea r8, [rbp + 0x240]
lea rcx, [rbp + 0x90]
call fcn.18001f2e0
nop
mov r8, rax
mov edx, 0x131
lea rcx, [rbp + 0xb0]
call fcn.18001b430
lea rdx, [0x1801bf4b8]
lea rcx, [rbp + 0xb0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x1801ed270]
call fcn.1801111b0
cmp dword [0x1801ed270], 0xffffffff
jne 0x1800c89e0
xorps xmm0, xmm0
movups xmmword [0x1801ed220], xmm0
movdqa xmm1, xmmword [0x180196210]
movdqa xmmword [0x1801ed230], xmm1
mov word [0x1801ed220], r12w
movdqa xmmword [0x1801ed240], xmm0
mov qword [0x1801ed250], r12
mov byte [0x1801ed258], r12b
mov byte [0x1801ed260], 0
xor edx, edx
lea rcx, [0x1801ed268]
call fcn.180020980
nop
lea rcx, [0x18012b6b0]
call fcn.1801110f0
lea rcx, [0x1801ed270]
call fcn.180111144
jmp 0x1800c89e0