Function at 0x7ff670d5a9c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x7ff670e2f670]
mov rdi, rax
mov rcx, qword [rax + 0x58]
test rcx, rcx
je 0x7ff670d5aab9
cmp byte [rax + 1], 0
je 0x7ff670d5aab9
mov byte [rcx + 0x18], 0
mov rbx, qword [rax + 0x58]
test rbx, rbx
je 0x7ff670d5aab9
cmp byte [rbx + 0x18], 0
je 0x7ff670d5aa28
mov r8d, 0x7b6
lea rdx, [0x7ff670e07c50]
lea rcx, [0x7ff670e07f10]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rcx, rbx
call fcn.7ff670d7aa40
nop
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x7ff670d5aa53
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5aa4c
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
nop
mov rcx, qword [rbx + 0x60]
test rcx, rcx
je 0x7ff670d5aa75
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5aa6e
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
nop
mov rcx, qword [rbx + 0x50]
test rcx, rcx
je 0x7ff670d5aa97
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5aa90
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
nop
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5aaa9
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_free]
mov rax, qword [0x7ff670e2f670]
xor r12d, r12d
mov qword [rdi + 0x58], r12
mov rcx, qword [rdi + 0x3c50]
test rcx, rcx
je 0x7ff670d5aaf2
mov qword [rdi + 0x3c48], r12
test rax, rax
je 0x7ff670d5aade
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x3c50], r12
mov rax, qword [0x7ff670e2f670]
cmp byte [rdi], r12b
je 0x7ff670d5b2e8
cmp byte [rdi + 0x5b61], r12b
je 0x7ff670d5ab5c
mov rbx, qword [rdi + 0x20]
test rbx, rbx
je 0x7ff670d5ab5c
mov dword [rax + 0x5b64], r12d
mov qword [rsp + 0x50], r12
lea rcx, [rsp + 0x50]
call fcn.7ff670d6bbd0
mov rsi, rax
lea rdx, [0x7ff670dc91bc]
mov rcx, rbx
call fcn.7ff670d539e0
mov rbx, rax
test rax, rax
je 0x7ff670d5ab5c
mov r9, rax
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ucrtbase.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_fclose]
mov edx, 6
mov rcx, rdi
call fcn.7ff670d57140
mov esi, r12d
cmp dword [rdi + 0x3e50], r12d
jle 0x7ff670d5abc1
mov r14, r12
nop dword [rax + rax]
mov rax, qword [rdi + 0x3e58]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x7ff670d5abb3
mov rcx, rbx
call fcn.7ff670d56450
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5abaa
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_free]
inc esi
add r14, 8
cmp esi, dword [rdi + 0x3e50]
jl 0x7ff670d5ab80
mov rcx, qword [rdi + 0x3e58]
test rcx, rcx
je 0x7ff670d5abf3
mov qword [rdi + 0x3e50], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5abe6
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x3e58], r12
mov rcx, qword [rdi + 0x3e68]
test rcx, rcx
je 0x7ff670d5ac25
mov qword [rdi + 0x3e60], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5ac18
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x3e68], r12
mov rcx, qword [rdi + 0x3e78]
test rcx, rcx
je 0x7ff670d5ac57
mov qword [rdi + 0x3e70], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5ac4a
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x3e78], r12
mov qword [rdi + 0x3eb0], r12
mov rcx, qword [rdi + 0x3e88]
test rcx, rcx
je 0x7ff670d5ac90
mov qword [rdi + 0x3e80], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5ac83
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x3e88], r12
mov rcx, qword [rdi + 0x3e98]
test rcx, rcx
je 0x7ff670d5acc2
mov qword [rdi + 0x3e90], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5acb5
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x3e98], r12
mov qword [rdi + 0x4878], r12
mov qword [rdi + 0x3ec0], r12
mov qword [rdi + 0x3eb8], r12
mov qword [rdi + 0x3f30], r12
mov qword [rdi + 0x3f18], r12
mov qword [rdi + 0x3ec8], r12
lea rcx, [rdi + 0x45d0]
call fcn.7ff670d51d30
mov rcx, qword [rdi + 0x47e8]
test rcx, rcx
je 0x7ff670d5ad2a
mov qword [rdi + 0x47e0], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5ad1d
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x47e8], r12
mov rcx, qword [rdi + 0x47f8]
test rcx, rcx
je 0x7ff670d5ad5c
mov qword [rdi + 0x47f0], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5ad4f
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x47f8], r12
mov rcx, qword [rdi + 0x4808]
test rcx, rcx
je 0x7ff670d5ad8e
mov qword [rdi + 0x4800], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5ad81
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x4808], r12
mov rcx, qword [rdi + 0x4848]
test rcx, rcx
je 0x7ff670d5adc0
mov qword [rdi + 0x4840], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5adb3
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x4848], r12
mov rcx, qword [rdi + 0x4858]
test rcx, rcx
je 0x7ff670d5adf2
mov qword [rdi + 0x4850], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5ade5
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x4858], r12
mov ebp, r12d
cmp dword [rdi + 0x4868], r12d
jle 0x7ff670d5aec4
mov r14, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4870]
mov rbx, qword [r14 + rax]
test rbx, rbx
je 0x7ff670d5aeb2
mov rsi, qword [rbx + 0x38]
test rsi, rsi
je 0x7ff670d5ae50
mov rcx, rsi
call fcn.7ff670d51b30
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5ae47
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.ucrtbase.dll_free]
mov rsi, qword [rbx + 0x40]
test rsi, rsi
je 0x7ff670d5ae7d
mov rcx, rsi
call fcn.7ff670d51b30
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5ae73
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.ucrtbase.dll_free]
nop
lea rcx, [rbx + 0x78]
lea r9, [0x7ff670d6cc30]
mov edx, 0x10
lea r8d, [rdx - 0xe]
call fcn.7ff670dbdf14
nop
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5aea9
dec dword [rax + 0xf4]
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_free]
inc ebp
add r14, 8
cmp ebp, dword [rdi + 0x4868]
jl 0x7ff670d5ae10
mov rcx, qword [rdi + 0x4870]
test rcx, rcx
je 0x7ff670d5aef6
mov qword [rdi + 0x4868], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5aee9
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x4870], r12
lea rcx, [rdi + 0x4b50]
call fcn.7ff670d6cd00
mov rcx, qword [rdi + 0x4b80]
test rcx, rcx
je 0x7ff670d5af34
mov qword [rdi + 0x4b78], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5af27
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x4b80], r12
mov rcx, qword [rdi + 0x4b90]
test rcx, rcx
je 0x7ff670d5af66
mov qword [rdi + 0x4b88], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5af59
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x4b90], r12
mov ebx, r12d
cmp dword [rdi + 0x4ad0], r12d
jle 0x7ff670d5afb8
mov rsi, r12
nop word [rax + rax]
mov rax, qword [rdi + 0x4ad8]
mov rcx, qword [rsi + rax + 0x20]
test rcx, rcx
je 0x7ff670d5afaa
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5afa3
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
nop
inc ebx
add rsi, 0x28
cmp ebx, dword [rdi + 0x4ad0]
jl 0x7ff670d5af80
mov rcx, qword [rdi + 0x4ad8]
test rcx, rcx
je 0x7ff670d5afea
mov qword [rdi + 0x4ad0], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5afdd
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x4ad8], r12
lea rcx, [rdi + 0x4b00]
call fcn.7ff670d6cee0
mov esi, r12d
cmp dword [rdi + 0x4af0], r12d
jle 0x7ff670d5b055
mov rbp, r12
nop word [rax + rax]
mov rbx, qword [rdi + 0x4af8]
lea rcx, [rbx + 0x10]
add rcx, rbp
call fcn.7ff670d79c60
nop
mov rcx, qword [rbx + rbp + 0x20]
test rcx, rcx
je 0x7ff670d5b047
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5b040
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
nop
inc esi
add rbp, 0x70
cmp esi, dword [rdi + 0x4af0]
jl 0x7ff670d5b010
mov rcx, qword [rdi + 0x4af8]
test rcx, rcx
je 0x7ff670d5b087
mov qword [rdi + 0x4af0], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5b07a
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x4af8], r12
mov rcx, qword [rdi + 0x4b40]
test rcx, rcx
je 0x7ff670d5b0b9
mov qword [rdi + 0x4b38], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5b0ac
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x4b40], r12
mov rcx, qword [rdi + 0x5b28]
test rcx, rcx
je 0x7ff670d5b0eb
mov qword [rdi + 0x5b20], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5b0de
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x5b28], r12
mov rcx, qword [rdi + 0x5b38]
test rcx, rcx
je 0x7ff670d5b11d
mov qword [rdi + 0x5b30], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5b110
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x5b38], r12
mov rcx, qword [rdi + 0x4bc8]
test rcx, rcx
je 0x7ff670d5b14f
mov qword [rdi + 0x4bc0], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5b142
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x4bc8], r12
mov rcx, qword [rdi + 0x4bd8]
test rcx, rcx
je 0x7ff670d5b181
mov qword [rdi + 0x4bd0], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5b174
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x4bd8], r12
mov rcx, qword [rdi + 0x4be8]
test rcx, rcx
je 0x7ff670d5b1b3
mov qword [rdi + 0x4be0], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5b1a6
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x4be8], r12
mov rcx, qword [rdi + 0x5b90]
test rcx, rcx
je 0x7ff670d5b1e5
mov qword [rdi + 0x5b88], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5b1d8
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x5b90], r12
mov rcx, qword [rdi + 0x5b80]
test rcx, rcx
je 0x7ff670d5b217
mov qword [rdi + 0x5b78], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5b20a
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x5b80], r12
cmp qword [rdi + 0x5bc8], 0
je 0x7ff670d5b248
mov rbx, qword [rdi + 0x5bc8]
mov ecx, 1
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
cmp rbx, rax
je 0x7ff670d5b241
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_fclose]
mov qword [rdi + 0x5bc8], r12
mov rcx, qword [rdi + 0x5bd8]
test rcx, rcx
je 0x7ff670d5b27a
mov qword [rdi + 0x5bd0], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5b26d
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x5bd8], r12
mov rcx, qword [rdi + 0x5c10]
test rcx, rcx
je 0x7ff670d5b2ac
mov qword [rdi + 0x5c08], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5b29f
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x5c10], r12
mov rcx, qword [rdi + 0x5c20]
test rcx, rcx
je 0x7ff670d5b2de
mov qword [rdi + 0x5c18], r12
mov rax, qword [0x7ff670e2f670]
test rax, rax
je 0x7ff670d5b2d1
dec dword [rax + 0xf4]
call qword [sym.imp.ucrtbase.dll_free]
mov qword [rdi + 0x5c20], r12
mov dword [rdi + 0x5c28], r12d
mov byte [rdi], 0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret