Function at 0x180090a80
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, [0x1801fb420]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r12b
jne 0x180090ad7
lea rcx, [rbp + 0x80]
call fcn.18001bf20
nop
mov r13, qword [rbp + 0x98]
mov r14, qword [rbp + 0x80]
mov rdi, qword [rbp + 0x90]
test rdi, rdi
je 0x18009117a
lea rcx, [rsp + 0x60]
call fcn.18008f820
nop
lea rax, [rsp + 0x50]
mov qword [rbp + 0x140], rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.180093e90
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 0x1800911cf
cmp rdi, 0xf
ja 0x180090b87
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 0xf
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x30], xmm0
jmp 0x180090c1e
mov rax, rdi
or rax, 0xf
cmp rax, rbx
jbe 0x180090bbf
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.180111264
mov rcx, rax
test rax, rax
je 0x180090bf4
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180090c00
mov rbx, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
test rcx, rcx
jne 0x180090bdc
mov rax, r12
jmp 0x180090c00
cmp rcx, 0x1000
jb 0x180090bfb
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1800911d5
jmp 0x180090ba1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180111264
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 + 0x60]
call fcn.18001ead0
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.18001d050
nop
lea rax, str.._globals.json
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0xe
call fcn.1801102d0
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov edx, eax
lea rcx, [rsp + 0x30]
call fcn.180044f70
nop
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0xc0]
call fcn.18006d330
nop
mov rdx, rax
lea rcx, [rbp + 0xa0]
call fcn.180025610
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 7
jbe 0x180090cf8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180090cf3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180090cf3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180111228
movdqa xmm0, xmmword [0x180196210]
movdqu xmmword [rbp + 0xd0], xmm0
mov word [rbp + 0xc0], r12w
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x180090d5d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180090d50
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180090d50
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180111228
movdqa xmm0, xmmword [0x180196210]
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, [0x180150790]
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 [0x1801ec9e0]
mov qword [rbp - 0x14], rax
mov qword [rbp - 0x20], r12
mov r8d, 0x12
mov rdx, rbx
lea rcx, [rsp + 0x78]
call fcn.180032040
test rax, rax
jne 0x180090e55
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
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 + 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 r8d, 4
lea rdx, [rbp + 0xc0]
lea rcx, [rsp + 0x60]
call fcn.18006ab50
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x180090e9c
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.180030a00
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0xf
jbe 0x180090eee
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180090ee9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180090ee9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180111228
cmp qword [rbp - 8], 0
je 0x180091036
lea rcx, [rbp - 0x18]
mov rax, qword [rbp - 0x70]
cmp qword [rax], rcx
jne 0x180090f20
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 0x180090f9d
cmp byte [rbp - 0x17], 0
je 0x180090f9d
mov rax, qword [rsp + 0x78]
mov r8, qword [rax + 0x18]
lea rax, [fcn.180033310]
mov edx, 0xffffffff
lea rcx, [rsp + 0x78]
cmp r8, rax
jne 0x180090f53
call fcn.180033310
jmp 0x180090f56
call r8
cmp eax, 0xffffffff
jne 0x180090f5f
xor bl, bl
jmp 0x180090f9f
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 0x180090fee
sub eax, 1
je 0x180090ff2
cmp eax, 2
je 0x180090f99
xor bl, bl
jmp 0x180090f9f
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 [0x1801ec9e0]
mov qword [rbp - 0x14], rax
mov qword [rbp - 0x20], r12
test rbx, rbx
jne 0x18009107b
jmp 0x18009105c
mov byte [rbp - 0x17], 0
lea rax, [rbp + 0xe0]
mov rbx, qword [rbp + 0x140]
sub rbx, rax
je 0x18009102a
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 0x18009102a
xor bl, bl
jmp 0x180090f9f
cmp byte [rbp - 0x17], 0
sete bl
jmp 0x180090f9f
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 [0x1801ec9e0]
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
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]
xor eax, eax
mov qword [0x1801fb420], 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 0x1800910d8
lea rcx, [rbp - 0x18]
mov rax, qword [rbp - 0x70]
cmp qword [rax], rcx
jne 0x1800910d8
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 0x1800910e8
lea rcx, [rsp + 0x78]
call fcn.1800335b0
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 0x180091152
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18009114d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009114d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180111228
movdqa xmm0, xmmword [0x180196210]
movdqu xmmword [rbp + 0xb0], xmm0
mov word [rbp + 0xa0], r12w
movzx edx, byte [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.18001d050
nop
cmp r13, 0xf
jbe 0x1800911b4
lea rdx, [r13 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x1800911ac
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800911ac
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.180111228
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.18001d640
nop
call fcn.18001db70
int3