Function at 0x1800b53a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
xor r12d, r12d
mov dword [rbp + 0x250], r12d
mov ecx, dword [0x1801d31f0]
mov rax, qword gs:[0x58]
mov edx, 0x10
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x1801d4580], eax
jg 0x1800b59c5
cmp byte [0x1801d4568], 0
je 0x1800b595b
mov rsi, qword [0x1801d4550]
mov rcx, rsi
mov r15, qword [0x1801d4558]
cmp rsi, r15
je 0x1800b595b
mov rax, qword [rcx]
cmp byte [rax + 0x28], 0
jne 0x1800b542e
add rcx, 8
cmp rcx, r15
jne 0x1800b5417
jmp 0x1800b595b
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 0x1800b55b9
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 + 0xf8]
call fcn.1800fc4e0
nop
lea rdi, [rax + 0x28]
lea rdx, str.Saving_component:
mov rcx, rdi
call fcn.180019d70
lea rdx, [r14 + 8]
cmp qword [r14 + 0x20], 0xf
jbe 0x1800b549e
mov rdx, qword [r14 + 8]
mov r8, qword [r14 + 0x18]
mov rcx, rdi
call fcn.18002f850
nop
lea rcx, [rbp + 0xf8]
call fcn.1800fca80
lea rdx, [r14 + 8]
lea rcx, [rsp + 0x30]
call fcn.18001cb30
mov rdi, rax
mov qword [rbp + 0x260], rax
movzx eax, byte [0x1801d4570]
test al, al
jne 0x1800b5536
mov byte [0x1801d4570], 1
mov ecx, 0x10
call fcn.1800ffa74
mov rbx, rax
lea rax, [rbp + 0x250]
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rbx
mov qword [rbx], r12
mov qword [rbx + 8], r12
mov ecx, 0x50
call fcn.1800ffa74
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 [0x1801d4578], rbx
movzx eax, byte [0x1801d4570]
jmp 0x1800b553d
mov rbx, qword [0x1801d4578]
cmp al, 1
jne 0x1800b5976
mov r8, rdi
lea rdx, [rbp + 0x70]
mov rcx, rbx
call fcn.18001efb0
mov rbx, qword [rbp + 0x70]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0xf
jbe 0x1800b5592
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1800b558d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800b573b
mov rcx, r8
call fcn.1800ffa38
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 0x1800b5440
lea rbx, [0x1801d4530]
cmp qword [0x1801d4548], 7
cmova rbx, qword [0x1801d4530]
lea rax, [0x18013e620]
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 + 0x250], 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 [0x1801d3d00]
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x40], r12
mov r8d, 0x12
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.180030d60
test rax, rax
jne 0x1800b56b1
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
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
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
lea rdx, [rsp + 0x30]
lea rcx, [0x1801d4570]
call fcn.180054b40
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1800b56f2
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.18002f850
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1800b5747
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800b5742
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800b5742
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.1800ffa38
cmp qword [rbp - 0x28], 0
je 0x1800b5890
mov rax, qword [rsp + 0x70]
lea rcx, [rbp - 0x38]
cmp qword [rax], rcx
jne 0x1800b577a
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 0x1800b57f7
cmp byte [rbp - 0x37], 0
je 0x1800b57f7
mov rax, qword [rsp + 0x58]
mov r8, qword [rax + 0x18]
lea rax, [fcn.180032030]
mov edx, 0xffffffff
lea rcx, [rsp + 0x58]
cmp r8, rax
jne 0x1800b57ad
call fcn.180032030
jmp 0x1800b57b0
call r8
cmp eax, 0xffffffff
jne 0x1800b57b9
xor bl, bl
jmp 0x1800b57f9
lea rax, [rbp + 0x250]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0xa0]
lea r8, [rbp + 0x80]
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 0x1800b5848
sub eax, 1
je 0x1800b584c
cmp eax, 2
je 0x1800b57f3
xor bl, bl
jmp 0x1800b57f9
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 [0x1801d3d00]
mov qword [rbp - 0x34], rax
mov qword [rbp - 0x40], r12
test rbx, rbx
jne 0x1800b58d5
jmp 0x1800b58b6
mov byte [rbp - 0x37], 0
lea rax, [rbp + 0x80]
mov rbx, qword [rbp + 0x250]
sub rbx, rax
je 0x1800b5884
mov r9, qword [rbp - 0x28]
mov r8, rbx
mov edx, 1
lea rcx, [rbp + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
je 0x1800b5884
xor bl, bl
jmp 0x1800b57f9
cmp byte [rbp - 0x37], 0
sete bl
jmp 0x1800b57f9
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 [0x1801d3d00]
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
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
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 0x1800b592a
mov rax, qword [rsp + 0x70]
lea rcx, [rbp - 0x38]
cmp qword [rax], rcx
jne 0x1800b592a
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 0x1800b593a
lea rcx, [rsp + 0x58]
call fcn.1800322d0
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 + 0x368]
add rsp, 0x310
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x1801d4570]
call fcn.18001bd30
mov qword [rbp + 0x258], rax
lea r8, [rbp + 0x258]
lea rcx, [rbp + 0xd8]
call fcn.18001e8f0
nop
mov r8, rax
mov edx, 0x131
lea rcx, [rbp + 0xa0]
call fcn.18001a8f0
lea rdx, [0x1801a7f28]
lea rcx, [rbp + 0xa0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x1801d4580]
call fcn.1800ff9c0
cmp dword [0x1801d4580], 0xffffffff
jne 0x1800b53f0
xorps xmm0, xmm0
movups xmmword [0x1801d4530], xmm0
movdqa xmm1, xmmword [0x1801817f0]
movdqa xmmword [0x1801d4540], xmm1
mov word [0x1801d4530], r12w
movdqa xmmword [0x1801d4550], xmm0
mov qword [0x1801d4560], r12
mov byte [0x1801d4568], r12b
mov byte [0x1801d4570], 0
xor edx, edx
lea rcx, [0x1801d4578]
call fcn.18001ffb0
nop
lea rcx, [0x180119ea0]
call fcn.1800ff900
lea rcx, [0x1801d4580]
call fcn.1800ff954
jmp 0x1800b53f0