Function at 0x1400829b0
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x210
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x1f0], rcx
mov qword [rbp + 0x158], r12
mov r12, qword [rbp + 0x1f0]
mov qword [rbp + 0x150], r15
mov qword [rbp + 0x160], r14
mov qword [rbp + 0x168], r13
mov qword [rbp + 0x138], rdi
lea rdi, [r12 + 0x138]
mov qword [rbp + 0x140], rsi
mov qword [rbp + 0x148], rbx
mov rax, qword [0x14018b5c0]
xor rax, rbp
mov qword [rbp + 0x1d0], rax
mov r14, qword gs:[0x58]
mov qword [rbp + 0x130], 0xfffffffffffffffe
cmp qword [rdi + 0x80], 0
jne 0x140082a3c
xor esi, esi
xor ebx, ebx
jmp 0x140082b17
mov rdx, qword [rdi + 0x18]
lea rax, [r12 + 0x1a8]
cmp rax, qword [rdx]
je 0x1400833e6
mov rsi, rdi
cmp qword [rdi + 0x68], 0
je 0x140082a61
cmp byte [rdi + 0x71], 0
jne 0x140082a68
xor ebx, ebx
jmp 0x140082b04
mov rax, qword [rdi]
mov rcx, rdi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140082b00
mov rcx, qword [rdi + 0x68]
mov rbx, rsp
lea rdx, [r12 + 0x1ac]
lea r8, [rbp + 0x178]
mov r10, qword [rcx]
lea r9, [rbp + 0x198]
lea rax, [rbp + 0x78]
mov qword [rbx + 0x20], rax
call qword [r10 + 0x40]
test eax, eax
je 0x140082ac1
cmp eax, 1
je 0x140082ac5
cmp eax, 3
jne 0x140082b00
mov byte [rdi + 0x71], 0
xor ebx, ebx
jmp 0x140082b04
mov byte [rdi + 0x71], 0
mov rbx, qword [rbp + 0x78]
lea rax, [rbp + 0x178]
sub rbx, rax
je 0x140082af6
mov r9, qword [rdi + 0x80]
lea rcx, [rbp + 0x178]
mov edx, 1
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140082b00
cmp byte [rdi + 0x71], 0
je 0x140082a61
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 0x1400832c9
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 0x140082bdb
mov rdx, qword [rax]
movsxd rcx, dword [rdx + 4]
lea rdx, [rcx + rdi + 0x18]
jmp 0x140082bde
mov rdx, rbx
mov rcx, qword [rdx + 0x48]
test rcx, rcx
je 0x140082bf1
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rbp + 0x58]
test rax, rax
je 0x140082c02
mov rdx, qword [rax]
movsxd rdx, dword [rdx + 4]
add rdx, rax
jmp 0x140082c05
mov rdx, rbx
cmp dword [rdx + 0x10], 0
jne 0x140082c68
test rax, rax
je 0x140082c1c
mov rdx, qword [rax]
movsxd rdx, dword [rdx + 4]
add rdx, rax
jmp 0x140082c1f
mov rdx, rbx
mov rcx, qword [rdx + 0x50]
test rcx, rcx
je 0x140082ed2
cmp rcx, rax
je 0x140082ed2
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 0x140082c53
mov rcx, rax
mov rdx, qword [rax]
movsxd rbx, dword [rdx + 4]
add rbx, rax
jmp 0x140082c56
mov rcx, rbx
mov edx, r13d
cmp dword [rbx + 0x10], 0
sete dl
mov byte [rbp + 0x128], dl
jmp 0x140082c72
mov byte [rbp + 0x128], 0
mov rcx, rax
mov rax, qword [rax]
movsxd rax, dword [rax + 4]
test byte [rax + rcx + 0x10], 6
je 0x14008314f
mov qword [rbp + 0xc8], rsi
call sub.MSVCP140.dll_bool___cdecl_std::uncaught_exception_void_
test al, al
jne 0x140082cc3
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 0x140082cb7
test byte [rax + rbx + 0x18], 2
jne 0x140082ee1
mov r14, qword gs:[0x58]
xor r13d, r13d
mov rax, qword [rbp + 0xc8]
mov rcx, qword [rax]
test rcx, rcx
je 0x140082ce1
xor r12d, r12d
mov rax, qword [rcx]
movsxd rdx, dword [rax + 4]
add rcx, rdx
jmp 0x140082ce6
xor ecx, ecx
xor r12d, r12d
mov rcx, qword [rcx + 0x48]
test rcx, rcx
je 0x140082cf5
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x1f0]
lea rdx, [rbp + 0x170]
mov r8d, 8
mov eax, dword [rcx + 0x238]
add rcx, 0x18
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 rdi, qword [rbp + 0x1f0]
lea rsi, [rdi + 0x20]
cmp qword [rsi + 0x80], 0
jne 0x140082d39
mov rbx, r12
jmp 0x140082e0d
mov rdx, qword [rsi + 0x18]
lea rax, [rdi + 0x90]
cmp rax, qword [rdx]
je 0x140083128
mov rbx, rsi
cmp qword [rsi + 0x68], 0
je 0x140082dfa
cmp byte [rsi + 0x71], 0
je 0x140082dfa
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140082df7
mov rcx, qword [rsi + 0x68]
mov r11, rsp
lea rdx, [rdi + 0x94]
lea r8, [rbp + 0x198]
mov rax, qword [rcx]
lea r9, [rbp + 0x1b8]
lea r10, [rbp + 0x118]
mov qword [r11 + 0x20], r10
call qword [rax + 0x40]
test eax, eax
je 0x140082db9
cmp eax, 1
je 0x140082dbd
cmp eax, 3
jne 0x140082df7
mov byte [rsi + 0x71], 0
jmp 0x140082dfa
mov byte [rsi + 0x71], 0
mov r15, qword [rbp + 0x118]
lea rax, [rbp + 0x198]
sub r15, rax
je 0x140082df1
mov r9, qword [rsi + 0x80]
lea rcx, [rbp + 0x198]
mov edx, 1
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r15, rax
jne 0x140082df7
cmp byte [rsi + 0x71], 0
je 0x140082dfa
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 0x14008300f
mov rcx, qword [rbp + 0x1d0]
mov qword [rbp + 0x1d0], 0
xor rcx, rbp
cmp rcx, qword [0x14018b5c0]
jne 0x14008300a
mov rbx, qword [rbp + 0x148]
mov rsi, qword [rbp + 0x140]
mov rdi, qword [rbp + 0x138]
mov r12, qword [rbp + 0x158]
mov r13, qword [rbp + 0x168]
mov r14, qword [rbp + 0x160]
mov r15, qword [rbp + 0x150]
lea rsp, [rbp + 0x1e0]
pop rbp
ret
mov byte [rbp + 0x128], 1
mov rcx, rax
jmp 0x140082c72
mov rcx, qword [rax + rbx + 0x48]
mov rax, qword [rcx]
call qword [rax + Ordinal_105]
cmp eax, 0xffffffff
jne 0x140082cb7
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 0x140082cb7
test al, 4
je 0x140082f35
lea rbx, str.ios_base::badbit_set
jmp 0x140082f49
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 0x140082fca
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 0x140082cb7
lea rcx, [0x140190ac0]
call fcn.14013af9c
cmp dword [0x140190ac0], 0xffffffff
jne 0x140082f65
movups xmm0, xmmword [0x140145350]
lea rcx, [method.CTableS1.virtual_48]
movups xmmword [0x140190a10], xmm0
call fcn.14013b2e4
lea rcx, [0x140190ac0]
call fcn.14013af3c
jmp 0x140082f65
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 0x140082e76
test al, 4
je 0x140083050
lea rbx, str.ios_base::badbit_set
jmp 0x140083064
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 0x1400830e8
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 0x140082e76
lea rcx, [0x140190ac0]
call fcn.14013af9c
cmp dword [0x140190ac0], 0xffffffff
jne 0x140083080
movups xmm0, xmmword [0x140145350]
lea rcx, [method.CTableS1.virtual_48]
movups xmmword [0x140190a10], xmm0
call fcn.14013b2e4
lea rcx, [0x140190ac0]
call fcn.14013af3c
jmp 0x140083080
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 0x140082d4d
mov rcx, qword [rax + rcx + 0x48]
lea r8, [rbp + 0x20]
movups xmm0, xmmword [rbp + 0x60]
lea rdx, [rbp + 0x1b8]
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 + 0x1b8]
add rax, qword [rbp + 0x1c0]
cmp rax, 0xffffffffffffffff
jne 0x14008319a
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 0x14008327d
test esi, 4
je 0x1400831ed
lea rbx, str.ios_base::badbit_set
jmp 0x140083205
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 0x140083289
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 0x140082c84
lea rcx, [0x140190ac0]
call fcn.14013af9c
cmp dword [0x140190ac0], 0xffffffff
jne 0x140083220
movups xmm0, xmmword [0x140145350]
lea rcx, [method.CTableS1.virtual_48]
movups xmmword [0x140190a10], xmm0
call fcn.14013b2e4
lea rcx, [0x140190ac0]
call fcn.14013af3c
jmp 0x140083220
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 0x140082b9b
test al, 4
je 0x14008331c
lea rsi, str.ios_base::badbit_set
jmp 0x140083330
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 0x1400833a6
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 0x140082b9b
lea rcx, [0x140190ac0]
call fcn.14013af9c
cmp dword [0x140190ac0], 0xffffffff
jne 0x14008334b
movups xmm0, xmmword [0x140145350]
lea rcx, [method.CTableS1.virtual_48]
movups xmmword [0x140190a10], xmm0
call fcn.14013b2e4
lea rcx, [0x140190ac0]
call fcn.14013af3c
jmp 0x14008334b
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 0x140082a51