Function at 0x14007dce0
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x210
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x1f0], rcx
mov qword [rbp + 0x138], r12
mov r12, qword [rbp + 0x1f0]
mov qword [rbp + 0x150], r15
mov qword [rbp + 0x158], r14
mov qword [rbp + 0x160], r13
mov qword [rbp + 0x140], rdi
lea rdi, [r12 + 0x138]
mov qword [rbp + 0x168], rsi
mov qword [rbp + 0x148], rbx
mov rax, qword [0x14018b5c0]
xor rax, rbp
mov dword [rbp + 0x1f8], edx
mov qword [rbp + 0x1d8], rax
mov r14, qword gs:[0x58]
mov qword [rbp + 0x130], 0xfffffffffffffffe
cmp qword [rdi + 0x80], 0
jne 0x14007dd72
xor esi, esi
xor ebx, ebx
jmp 0x14007de4d
mov rdx, qword [rdi + 0x18]
lea rax, [r12 + 0x1a8]
cmp rax, qword [rdx]
je 0x14007e745
mov rsi, rdi
cmp qword [rdi + 0x68], 0
je 0x14007dd97
cmp byte [rdi + 0x71], 0
jne 0x14007dd9e
xor ebx, ebx
jmp 0x14007de3a
mov rax, qword [rdi]
mov rcx, rdi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14007de36
mov rcx, qword [rdi + 0x68]
mov rbx, rsp
lea rdx, [r12 + 0x1ac]
lea r8, [rbp + 0x180]
mov r10, qword [rcx]
lea r9, [rbp + 0x1a0]
lea rax, [rbp + 0x78]
mov qword [rbx + 0x20], rax
call qword [r10 + 0x40]
test eax, eax
je 0x14007ddf7
cmp eax, 1
je 0x14007ddfb
cmp eax, 3
jne 0x14007de36
mov byte [rdi + 0x71], 0
xor ebx, ebx
jmp 0x14007de3a
mov byte [rdi + 0x71], 0
mov rbx, qword [rbp + 0x78]
lea rax, [rbp + 0x180]
sub rbx, rax
je 0x14007de2c
mov r9, qword [rdi + 0x80]
lea rcx, [rbp + 0x180]
mov edx, 1
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x14007de36
cmp byte [rdi + 0x71], 0
je 0x14007dd97
xor esi, esi
xor ebx, ebx
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
cmovne rsi, rbx
xor r13d, r13d
lea r9, [r12 + 0x140]
mov byte [rdi + 0x7c], r13b
lea rax, [r12 + 0x148]
mov byte [rdi + 0x71], r13b
lea r10, [r12 + 0x160]
mov qword [rdi + 0x18], r9
lea rdx, [r12 + 0x168]
mov qword [rdi + 0x20], rax
lea r11, [r12 + 0x180]
mov qword [rdi + 0x38], r10
lea r8, [r12 + 0x184]
mov qword [rdi + 0x40], rdx
mov qword [rax], rbx
mov qword [rdx], rbx
mov dword [r8], r13d
mov qword [r9], rbx
mov qword [r10], rbx
mov dword [r11], r13d
mov r15, qword [0x140190b80]
mov qword [rdi + 0x50], r11
mov qword [rdi + 0x58], r8
mov qword [rdi + 0x80], rbx
mov qword [rax + 0x64], r15
mov qword [rdi + 0x68], rbx
test rsi, rsi
je 0x14007e628
mov rdi, qword [rbp + 0x1f0]
mov rax, rdi
pxor xmm0, xmm0
lea rsi, [rbp + 0x120]
unpcklpd xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], rbx
mov qword [rbp], rsi
add rax, 0x18
mov qword [rbp + 0x58], rax
mov qword [rsi], rax
je 0x14007df11
mov rdx, qword [rax]
movsxd rcx, dword [rdx + 4]
lea rdx, [rcx + rdi + 0x18]
jmp 0x14007df14
mov rdx, rbx
mov rcx, qword [rdx + 0x48]
test rcx, rcx
je 0x14007df27
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rbp + 0x58]
test rax, rax
je 0x14007df38
mov rdx, qword [rax]
movsxd rdx, dword [rdx + 4]
add rdx, rax
jmp 0x14007df3b
mov rdx, rbx
cmp dword [rdx + 0x10], 0
jne 0x14007df9e
test rax, rax
je 0x14007df52
mov rdx, qword [rax]
movsxd rdx, dword [rdx + 4]
add rdx, rax
jmp 0x14007df55
mov rdx, rbx
mov rcx, qword [rdx + 0x50]
test rcx, rcx
je 0x14007e231
cmp rcx, rax
je 0x14007e231
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__::flush_void____ptr64]
mov rax, qword [rbp + 0x58]
test rax, rax
je 0x14007df89
mov rcx, rax
mov rdx, qword [rax]
movsxd rbx, dword [rdx + 4]
add rbx, rax
jmp 0x14007df8c
mov rcx, rbx
mov edx, r13d
cmp dword [rbx + 0x10], 0
sete dl
mov byte [rbp + 0x128], dl
jmp 0x14007dfa8
mov byte [rbp + 0x128], 0
mov rcx, rax
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
test byte [rax + rcx + 0x10], 6
je 0x14007e4ae
mov qword [rbp + 0xc8], rsi
call sub.MSVCP140.dll_bool___cdecl_std::uncaught_exception_void_
test al, al
jne 0x14007dff9
mov rbx, qword [rbp + 0xc8]
mov rbx, qword [rbx]
mov rax, qword [rbx]
movsxd rax, dword [rax + 4]
cmp dword [rax + rbx + 0x10], 0
jne 0x14007dfed
test byte [rax + rbx + 0x18], 2
jne 0x14007e240
mov r14, qword gs:[0x58]
xor r13d, r13d
mov rax, qword [rbp + 0xc8]
mov rcx, qword [rax]
test rcx, rcx
je 0x14007e017
xor r12d, r12d
mov rax, qword [rcx]
movsxd rdx, dword [rax + 4]
add rcx, rdx
jmp 0x14007e01c
xor ecx, ecx
xor r12d, r12d
mov rcx, qword [rcx + 0x48]
test rcx, rcx
je 0x14007e02b
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rsi, qword [rbp + 0x1f0]
lea rdx, [rbp + 0x170]
add rsi, 0x18
mov r8d, 8
mov eax, dword [rbp + 0x1f8]
mov rcx, rsi
mov qword [rdx], rax
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__::write_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rbp + 0x1f0]
mov rcx, rsi
mov r8d, 8
lea rdx, [rbp + 0x178]
mov ebx, dword [rax + 0x238]
mov qword [rdx], rbx
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__::write_char_const____ptr64__long_long___int64_____ptr64]
mov rdi, qword [rbp + 0x1f0]
lea rsi, [rdi + 0x20]
cmp qword [rsi + 0x80], 0
jne 0x14007e098
mov rbx, r12
jmp 0x14007e16c
mov rdx, qword [rsi + 0x18]
lea rax, [rdi + 0x90]
cmp rax, qword [rdx]
je 0x14007e487
mov rbx, rsi
cmp qword [rsi + 0x68], 0
je 0x14007e159
cmp byte [rsi + 0x71], 0
je 0x14007e159
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14007e156
mov rcx, qword [rsi + 0x68]
mov r11, rsp
lea rdx, [rdi + 0x94]
lea r8, [rbp + 0x1a0]
mov rax, qword [rcx]
lea r9, [rbp + 0x1c0]
lea r10, [rbp + 0x118]
mov qword [r11 + 0x20], r10
call qword [rax + 0x40]
test eax, eax
je 0x14007e118
cmp eax, 1
je 0x14007e11c
cmp eax, 3
jne 0x14007e156
mov byte [rsi + 0x71], 0
jmp 0x14007e159
mov byte [rsi + 0x71], 0
mov r15, qword [rbp + 0x118]
lea rax, [rbp + 0x1a0]
sub r15, rax
je 0x14007e150
mov r9, qword [rsi + 0x80]
lea rcx, [rbp + 0x1a0]
mov edx, 1
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r15, rax
jne 0x14007e156
cmp byte [rsi + 0x71], 0
je 0x14007e159
mov rbx, r12
mov rcx, qword [rsi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
cmovne rbx, r12
mov byte [rsi + 0x7c], r13b
lea r9, [rdi + 0x28]
mov byte [rsi + 0x71], r13b
lea rax, [rdi + 0x30]
mov qword [rsi + 0x18], r9
lea r10, [rdi + 0x48]
mov qword [rsi + 0x20], rax
lea rdx, [rdi + 0x50]
mov qword [rsi + 0x38], r10
lea r11, [rdi + 0x68]
mov qword [rsi + 0x40], rdx
lea r8, [rdi + 0x6c]
mov qword [rax], r12
mov qword [rdx], r12
mov dword [r8], r13d
mov qword [r9], r12
mov qword [r10], r12
mov dword [r11], r13d
mov r15, qword [0x140190b80]
mov qword [rsi + 0x50], r11
mov qword [rsi + 0x58], r8
mov qword [rsi + 0x80], r12
mov qword [rax + 0x64], r15
mov qword [rsi + 0x68], r12
test rbx, rbx
je 0x14007e36e
mov rcx, qword [rbp + 0x1d8]
mov qword [rbp + 0x1d8], 0
xor rcx, rbp
cmp rcx, qword [0x14018b5c0]
jne 0x14007e369
mov rbx, qword [rbp + 0x148]
mov rsi, qword [rbp + 0x168]
mov rdi, qword [rbp + 0x140]
mov r12, qword [rbp + 0x138]
mov r13, qword [rbp + 0x160]
mov r14, qword [rbp + 0x158]
mov r15, qword [rbp + 0x150]
lea rsp, [rbp + 0x1e0]
pop rbp
ret
mov byte [rbp + 0x128], 1
mov rcx, rax
jmp 0x14007dfa8
mov rcx, qword [rax + rbx + 0x48]
mov rax, qword [rcx]
call qword [rax + Ordinal_105]
cmp eax, 0xffffffff
jne 0x14007dfed
mov rax, qword [rbx]
mov edx, 4
movsxd rcx, dword [rax + 4]
cmp qword [rcx + rbx + 0x48], 0
mov eax, dword [rcx + rbx + 0x10]
cmove r13d, edx
or eax, 0xffffffe4
or eax, r13d
and eax, 0x17
mov dword [rcx + rbx + 0x10], eax
mov ebx, dword [rcx + rbx + 0x14]
and eax, ebx
je 0x14007dfed
test al, 4
je 0x14007e294
lea rbx, str.ios_base::badbit_set
jmp 0x14007e2a8
test al, 2
lea rdx, str.ios_base::failbit_set
lea rbx, str.ios_base::eofbit_set
cmovne rbx, rdx
movsxd rdx, dword [0x1401924e8]
mov eax, 4
mov ecx, dword [0x140190ac0]
mov r14, qword [r14 + rdx*8]
cmp ecx, dword [r14 + rax]
jg 0x14007e329
mov eax, 1
lea rsi, [0x140190a10]
movss xmm0, dword [rbp + 0x84]
lea rdx, [rbp + 0x90]
mov qword [rdx - 8], rsi
lea rsi, [rbp + 0x50]
mov rcx, rsi
mov r8, rbx
movd xmm1, eax
unpcklps xmm1, xmm0
movhps xmm1, qword [rdx - 8]
mov dword [rdx - 0x10], eax
mov qword [rbp], rsi
movups xmmword [rdx], xmm1
call fcn.1400f9780
mov rdx, qword [rbp]
lea rax, vtable.std::ios_base::failure.0
mov rcx, rsi
mov qword [rdx], rax
lea rdx, [0x140145170]
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x14007dfed
lea rcx, [0x140190ac0]
call fcn.14013af9c
cmp dword [0x140190ac0], 0xffffffff
jne 0x14007e2c4
movups xmm0, xmmword [0x140145350]
lea rcx, [method.CTableS1.virtual_48]
movups xmmword [0x140190a10], xmm0
call fcn.14013b2e4
lea rcx, [0x140190ac0]
call fcn.14013af3c
jmp 0x14007e2c4
call fcn.14013ad30
mov rax, qword [rdi + 8]
mov edx, 4
movsxd rcx, dword [rax + 4]
cmp qword [rcx + rdi + 0x50], 0
mov eax, dword [rcx + rdi + 0x18]
cmove r13d, edx
or eax, 0xffffffe2
or eax, r13d
and eax, 0x17
mov ebx, dword [rcx + rdi + 0x1c]
mov dword [rcx + rdi + 0x18], eax
and eax, ebx
je 0x14007e1d5
test al, 4
je 0x14007e3af
lea rbx, str.ios_base::badbit_set
jmp 0x14007e3c3
test al, 2
lea rdx, str.ios_base::failbit_set
lea rbx, str.ios_base::eofbit_set
cmovne rbx, rdx
movsxd rdx, dword [0x1401924e8]
mov eax, 4
mov ecx, dword [0x140190ac0]
mov r14, qword [r14 + rdx*8]
cmp ecx, dword [r14 + rax]
jg 0x14007e447
mov eax, 1
lea rsi, [0x140190a10]
movss xmm0, dword [rbp + 0x84]
lea rdx, [rbp + 0x90]
mov qword [rdx - 8], rsi
lea rsi, [rbp + 0xc8]
mov rcx, rsi
mov r8, rbx
movd xmm1, eax
unpcklps xmm1, xmm0
movhps xmm1, qword [rdx - 8]
mov dword [rdx - 0x10], eax
mov qword [rbp], rsi
movups xmmword [rdx], xmm1
call fcn.1400f9780
mov rdx, qword [rbp]
lea rax, vtable.std::ios_base::failure.0
mov rcx, rsi
mov qword [rdx], rax
lea rdx, [0x140145170]
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x14007e1d5
lea rcx, [0x140190ac0]
call fcn.14013af9c
cmp dword [0x140190ac0], 0xffffffff
jne 0x14007e3df
movups xmm0, xmmword [0x140145350]
lea rcx, [method.CTableS1.virtual_48]
movups xmmword [0x140190a10], xmm0
call fcn.14013b2e4
lea rcx, [0x140190ac0]
call fcn.14013af3c
jmp 0x14007e3df
mov rax, qword [rsi + 0x88]
mov rbx, qword [rsi + 0x90]
mov qword [rdx], rax
sub rbx, rax
mov rdx, qword [rsi + 0x38]
mov qword [rdx], rax
mov r8, qword [rsi + 0x50]
mov dword [r8], ebx
jmp 0x14007e0ac
mov rcx, qword [rax + rcx + 0x48]
lea r8, [rbp + 0x20]
movups xmm0, xmmword [rbp + 0x60]
lea rdx, [rbp + 0x1c0]
mov rax, qword [rbp + 0x70]
mov r9d, 2
mov rbx, qword [rcx]
mov dword [rbp + 0x50], 0
movups xmmword [r8], xmm0
mov qword [r8 + 0x10], rax
call qword [rbx + 0x58]
mov rax, qword [rbp + 0x1c0]
add rax, qword [rbp + 0x1c8]
cmp rax, 0xffffffffffffffff
jne 0x14007e4f9
or dword [rbp + 0x50], 2
mov rcx, qword [rbp + 0x58]
mov eax, 4
mov r14, qword gs:[0x58]
mov r13, qword [rcx]
movsxd rdx, dword [r13 + 4]
xor r13d, r13d
cmp qword [rdx + rcx + 0x48], 0
mov esi, dword [rdx + rcx + 0x10]
cmovne eax, r13d
or esi, dword [rbp + 0x50]
or esi, eax
and esi, 0x17
mov ebx, dword [rdx + rcx + 0x14]
mov dword [rdx + rcx + 0x10], esi
and esi, ebx
je 0x14007e5dc
test esi, 4
je 0x14007e54c
lea rbx, str.ios_base::badbit_set
jmp 0x14007e564
test esi, 2
lea rax, str.ios_base::failbit_set
lea rbx, str.ios_base::eofbit_set
cmovne rbx, rax
movsxd rdx, dword [0x1401924e8]
mov eax, 4
mov ecx, dword [0x140190ac0]
mov rsi, qword [r14 + rdx*8]
cmp ecx, dword [rsi + rax]
jg 0x14007e5e8
mov eax, 1
lea rsi, [0x140190a10]
movss xmm0, dword [rbp + 0x54]
lea rdx, [rbp + 0x60]
mov qword [rbp + 0x58], rsi
lea rsi, [rbp + 0xf0]
mov rcx, rsi
mov r8, rbx
movd xmm1, eax
unpcklps xmm1, xmm0
movhps xmm1, qword [rbp + 0x58]
mov dword [rbp + 0x50], eax
mov qword [rbp], rsi
movups xmmword [rdx], xmm1
call fcn.1400f9780
mov rbx, qword [rbp]
mov rcx, rsi
lea rdx, [0x140145170]
lea rax, vtable.std::ios_base::failure.0
mov qword [rbx], rax
call sub.VCRUNTIME140.dll__CxxThrowException
lea rsi, [rbp + 0x120]
jmp 0x14007dfba
lea rcx, [0x140190ac0]
call fcn.14013af9c
cmp dword [0x140190ac0], 0xffffffff
jne 0x14007e57f
movups xmm0, xmmword [0x140145350]
lea rcx, [method.CTableS1.virtual_48]
movups xmmword [0x140190a10], xmm0
call fcn.14013b2e4
lea rcx, [0x140190ac0]
call fcn.14013af3c
jmp 0x14007e57f
mov rax, qword [r12 + 0x120]
mov edx, 4
movsxd rcx, dword [rax + 4]
cmp qword [rcx + r12 + 0x168], 0
mov eax, dword [rcx + r12 + 0x130]
cmovne edx, r13d
or eax, 0xffffffe2
or eax, edx
and eax, 0x17
mov esi, dword [rcx + r12 + 0x134]
mov dword [rcx + r12 + 0x130], eax
and eax, esi
je 0x14007ded1
test al, 4
je 0x14007e67b
lea rsi, str.ios_base::badbit_set
jmp 0x14007e68f
test al, 2
lea rdx, str.ios_base::failbit_set
lea rsi, str.ios_base::eofbit_set
cmovne rsi, rdx
movsxd rdx, dword [0x1401924e8]
mov eax, 4
mov ecx, dword [0x140190ac0]
mov rdi, qword [r14 + rdx*8]
cmp ecx, dword [rdi + rax]
jg 0x14007e705
mov eax, 1
lea rdi, [0x140190a10]
movss xmm0, dword [rbp + 0x24]
lea rdx, [rbp + 0x30]
mov qword [rbp + 0x28], rdi
lea rcx, [rbp + 0xa0]
mov r8, rsi
movd xmm1, eax
unpcklps xmm1, xmm0
movhps xmm1, qword [rbp + 0x28]
mov dword [rbp + 0x20], eax
movups xmmword [rdx], xmm1
call fcn.1400f9780
lea rdx, [0x140145170]
lea rcx, [rbp + 0xa0]
lea rax, vtable.std::ios_base::failure.0
mov qword [rcx], rax
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x14007ded1
lea rcx, [0x140190ac0]
call fcn.14013af9c
cmp dword [0x140190ac0], 0xffffffff
jne 0x14007e6aa
movups xmm0, xmmword [0x140145350]
lea rcx, [method.CTableS1.virtual_48]
movups xmmword [0x140190a10], xmm0
call fcn.14013b2e4
lea rcx, [0x140190ac0]
call fcn.14013af3c
jmp 0x14007e6aa
mov rax, qword [rdi + 0x88]
mov rbx, qword [rdi + 0x90]
mov qword [rdx], rax
sub rbx, rax
mov rdx, qword [rdi + 0x38]
mov qword [rdx], rax
mov rsi, qword [rdi + 0x50]
mov dword [rsi], ebx
jmp 0x14007dd87