Function at 0x180086e00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rbx, rdx
xor r12d, r12d
mov dword [rbp + 0x140], r12d
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], r12
mov qword [rbp + 0x98], r12
lea rdx, [0x1801e2720]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r12b
jne 0x180086e57
lea rcx, [rbp + 0x80]
call fcn.18001b3d0
nop
mov r13, qword [rbp + 0x98]
mov r14, qword [rbp + 0x80]
mov rdi, qword [rbp + 0x90]
test rdi, rdi
je 0x1800874e7
lea rcx, [rsp + 0x50]
call fcn.180085ba0
nop
lea rax, [rsp + 0x60]
mov qword [rbp + 0x140], rax
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.18008a290
mov r15, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
lea rsi, [rbp + 0x80]
cmp r13, 0xf
cmova rsi, r14
movabs rbx, 0x7fffffffffffffff
cmp rdi, rbx
ja 0x18008753c
cmp rdi, 0xf
ja 0x180086f07
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 0xf
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x30], xmm0
jmp 0x180086f9e
mov rax, rdi
or rax, 0xf
cmp rax, rbx
jbe 0x180086f3f
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1800ffa74
mov rcx, rax
test rax, rax
je 0x180086f6a
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180086f80
mov rbx, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x180086f71
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x180087542
jmp 0x180086f21
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x180086f7d
call fcn.1800ffa74
jmp 0x180086f80
mov rax, r12
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rbx
lea r8, [rdi + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.18001e200
nop
movzx edx, byte [rax]
movzx ecx, byte [r15]
mov byte [rax], cl
mov byte [r15], dl
lea rcx, [r15 + 8]
mov rdx, qword [rax + 8]
mov r8, qword [rcx]
mov qword [rax + 8], r8
mov qword [rcx], rdx
movzx edx, byte [r15]
call fcn.18001c4a0
nop
call fcn.1800feadc
lea rcx, str.._globals.json
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], 0xe
lea r8, [rsp + 0x60]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180043e80
nop
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0xc0]
call fcn.1800651b0
nop
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.180024bb0
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 7
jbe 0x18008706d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180087068
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180087068
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800ffa38
movdqa xmm0, xmmword [0x1801817f0]
movdqu xmmword [rbp + 0xd0], xmm0
mov word [rbp + 0xc0], r12w
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x1800870ca
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800870c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800870c5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800ffa38
movdqa xmm0, xmmword [0x1801817f0]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], r12w
lea rbx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 7
cmova rbx, qword [rbp + 0xa0]
lea rax, [0x18013e620]
mov qword [rsp + 0x70], rax
lea rcx, [rbp + 0x18]
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 + 0x140], 7
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
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 + 0x70]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rdi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
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 + 0x78], rsi
mov byte [rbp - 0xc], 0
mov byte [rbp - 0x17], 0
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 8], r12
mov rax, qword [0x1801d3d00]
mov qword [rbp - 0x14], rax
mov qword [rbp - 0x20], r12
mov r8d, 0x12
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.180030d60
test rax, rax
jne 0x1800871c9
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]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rdi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x50]
call fcn.180054b40
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x18008720a
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.18002f850
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x18008725c
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180087257
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180087257
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800ffa38
cmp qword [rbp - 8], 0
je 0x1800873a4
mov rax, qword [rbp - 0x70]
lea rcx, [rbp - 0x18]
cmp qword [rax], rcx
jne 0x18008728e
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp]
mov qword [rax], rcx
mov rax, qword [rbp - 0x50]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x38]
mov dword [rax], edx
cmp qword [rbp - 0x20], 0
je 0x18008730b
cmp byte [rbp - 0x17], 0
je 0x18008730b
mov rax, qword [rsp + 0x78]
mov r8, qword [rax + 0x18]
lea rax, [fcn.180032030]
mov edx, 0xffffffff
lea rcx, [rsp + 0x78]
cmp r8, rax
jne 0x1800872c1
call fcn.180032030
jmp 0x1800872c4
call r8
cmp eax, 0xffffffff
jne 0x1800872cd
xor bl, bl
jmp 0x18008730d
lea rax, [rbp + 0x140]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x100]
lea r8, [rbp + 0xe0]
lea rdx, [rbp - 0x14]
mov rcx, qword [rbp - 0x20]
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 0x18008735c
sub eax, 1
je 0x180087360
cmp eax, 2
je 0x180087307
xor bl, bl
jmp 0x18008730d
mov byte [rbp - 0x17], 0
mov bl, 1
mov rcx, qword [rbp - 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rcx, [rsp + 0x78]
test bl, bl
cmove rcx, r12
mov rbx, r12
test eax, eax
cmove rbx, rcx
mov byte [rbp - 0xc], 0
mov byte [rbp - 0x17], 0
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 8], r12
mov rax, qword [0x1801d3d00]
mov qword [rbp - 0x14], rax
mov qword [rbp - 0x20], r12
test rbx, rbx
jne 0x1800873e8
jmp 0x1800873ca
mov byte [rbp - 0x17], 0
lea rax, [rbp + 0xe0]
mov rbx, qword [rbp + 0x140]
sub rbx, rax
je 0x180087398
mov r9, qword [rbp - 8]
mov r8, rbx
mov edx, 1
lea rcx, [rbp + 0xe0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
je 0x180087398
xor bl, bl
jmp 0x18008730d
cmp byte [rbp - 0x17], 0
sete bl
jmp 0x18008730d
mov byte [rbp - 0xc], 0
mov byte [rbp - 0x17], 0
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 8], r12
mov rax, qword [0x1801d3d00]
mov qword [rbp - 0x14], rax
mov qword [rbp - 0x20], r12
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]
xor eax, eax
mov qword [0x1801e2720], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rdi
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
mov qword [rsp + 0x78], rsi
cmp qword [rbp - 8], 0
je 0x180087445
mov rax, qword [rbp - 0x70]
lea rcx, [rbp - 0x18]
cmp qword [rax], rcx
jne 0x180087445
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp]
mov qword [rax], rcx
mov rax, qword [rbp - 0x50]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x38]
mov dword [rax], edx
cmp byte [rbp - 0xc], 0
je 0x180087455
lea rcx, [rsp + 0x78]
call fcn.1800322d0
lea rcx, [rsp + 0x78]
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 - 0x80]
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 + 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0xb8]
cmp rdx, 7
jbe 0x1800874bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800874ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800874ba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800ffa38
movdqa xmm0, xmmword [0x1801817f0]
movdqu xmmword [rbp + 0xb0], xmm0
mov word [rbp + 0xa0], r12w
movzx edx, byte [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.18001c4a0
nop
cmp r13, 0xf
jbe 0x180087521
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x180087519
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180087519
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.1800ffa38
mov rbx, qword [rsp + 0x248]
add rsp, 0x200
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18001ca90
nop
call fcn.18001cfe0
int3