Function at 0x140069ba0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call fcn.14007c9f0
mov rcx, rax
lea r8, [rdi + 8]
mov r9, rdi
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14007ca60
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x1400be680]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov r14, r9
mov r12, r8
mov rdi, rdx
xor ebx, ebx
mov dword [rsp + 0x38], ebx
mov rax, qword [r8 + 8]
cmp qword [r8], rax
je 0x14007cff4
cmp dword [r9], ebx
jbe 0x14007cff4
cmp dword [r9 + 4], ebx
jbe 0x14007cff4
mov r10, qword [rdx + 0x18]
cmp r10, 0x10
jb 0x14007cac6
mov rdx, qword [rdx]
mov r8, qword [rdi + 0x10]
mov r9, 0xffffffffffffffff
test r8, r8
je 0x14007cb02
lea rax, [r8 - 1]
mov rcx, r9
cmp rax, rcx
cmovb rcx, rax
add rcx, rdx
cmp byte [rcx], 0x2e
je 0x14007cafd
nop dword [rax]
cmp rcx, rdx
je 0x14007cb02
dec rcx
cmp byte [rcx], 0x2e
jne 0x14007caf0
sub rcx, rdx
jmp 0x14007cb05
mov rcx, r9
xorps xmm0, xmm0
cmp rcx, r9
je 0x14007cb65
inc rcx
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
cmp r8, rcx
jb 0x14007d069
sub r8, rcx
cmp r8, r9
cmovb r9, r8
mov rax, rdi
cmp r10, 0x10
jb 0x14007cb3e
mov rax, qword [rdi]
lea rdx, [rax + rcx]
mov r8, r9
lea rcx, [rsp + 0x48]
call fcn.1400077a0
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x20]
call fcn.1400805f0
nop
mov esi, 5
jmp 0x14007cb81
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], 0xf
mov byte [rbp - 0x20], bl
lea rax, [rbp - 0x20]
mov esi, 2
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rbp], xmm0
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
test sil, 2
je 0x14007cbf1
and esi, 0xfffffffd
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x14007cbf1
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007cbeb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007cbeb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009488c
nop
test sil, 1
je 0x14007cc35
mov rdx, qword [rbp + 0x38]
cmp rdx, 0x10
jb 0x14007cc35
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007cc30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007cc30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14009488c
mov r13d, dword [r14]
mov eax, dword [r14 + 4]
mov dword [rsp + 0x30], eax
lea rcx, [rbp]
mov rsi, qword [rsp + 0x38]
movups xmm1, xmmword [rsp + 0x68]
movdqa xmm0, xmm1
psrldq xmm0, 8
movq r15, xmm0
cmp r15, 0x10
cmovae rcx, rsi
movq r14, xmm1
cmp r14, 3
jne 0x14007cd0f
mov r8, r14
lea rdx, [0x1400a3b50]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14007cd0f
mov r14, qword [r12]
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14007cc9b
mov rdx, qword [rdi]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
lea r8, [0x1400a26c0]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
je 0x14007ccd1
mov qword [rsp + 0x38], rbx
jmp 0x14007ccd6
mov rbx, qword [rsp + 0x38]
lea rax, [0x14007d070]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rbx
test rbx, rbx
je 0x14007ce5b
mov qword [rsp + 0x20], r14
mov r9d, 4
mov r8d, dword [rsp + 0x30]
mov edx, r13d
lea rcx, [rbp - 0x80]
call fcn.14007d090
jmp 0x14007cf9d
lea rcx, [rbp]
cmp r15, 0x10
cmovae rcx, rsi
cmp r14, 3
jne 0x14007cdc1
mov r8, r14
lea rdx, [0x1400a3b54]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14007cdc1
mov r14, qword [r12]
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14007cd4d
mov rdx, qword [rdi]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
lea r8, [0x1400a26c0]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
je 0x14007cd83
mov qword [rsp + 0x38], rbx
jmp 0x14007cd88
mov rbx, qword [rsp + 0x38]
lea rax, [0x14007d070]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rbx
test rbx, rbx
je 0x14007ce5b
mov qword [rsp + 0x20], r14
mov r9d, 4
mov r8d, dword [rsp + 0x30]
mov edx, r13d
lea rcx, [rbp - 0x80]
call fcn.14007ee00
jmp 0x14007cf9d
lea rcx, [rbp]
cmp r15, 0x10
cmovae rcx, rsi
cmp r14, 3
jne 0x14007cec3
mov r8, r14
lea rdx, [0x1400a3b58]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14007cec3
mov rcx, qword [r12]
mov r12, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14007cdff
mov r12, qword [rdi]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9d, dword [rsp + 0x30]
mov r8d, r13d
xor edx, edx
call fcn.140080690
mov r14, rax
test rax, rax
je 0x14007ce5b
lea r8, [0x1400a26c0]
mov rdx, r12
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
je 0x14007ce48
mov qword [rsp + 0x30], rbx
jmp 0x14007ce4d
mov rbx, qword [rsp + 0x30]
mov rcx, r14
test rbx, rbx
jne 0x14007ce99
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp r15, 0x10
jb 0x14007cff4
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14007cfec
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14007cfec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movsxd r8, dword [rsp + 0x38]
mov r9, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14007cfb1
lea rcx, [rbp]
cmp r15, 0x10
cmovae rcx, rsi
cmp r14, 3
jne 0x14007cee8
mov r8, r14
lea rdx, [0x1400a3b5c]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14007cf15
lea rcx, [rbp]
cmp r15, 0x10
cmovae rcx, rsi
cmp r14, 4
jne 0x14007ce5b
mov r8, r14
lea rdx, str.jpeg
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14007ce5b
mov r14, qword [r12]
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14007cf26
mov rdx, qword [rdi]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
lea r8, [0x1400a26c0]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
je 0x14007cf5c
mov qword [rsp + 0x38], rbx
jmp 0x14007cf61
mov rbx, qword [rsp + 0x38]
lea rax, [0x14007d070]
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rbx
test rbx, rbx
je 0x14007ce5b
mov dword [rsp + 0x28], 0x5a
mov qword [rsp + 0x20], r14
mov r9d, 4
mov r8d, dword [rsp + 0x30]
mov edx, r13d
lea rcx, [rbp - 0x80]
call fcn.14007d320
mov ebx, eax
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test ebx, ebx
je 0x14007ce5b
cmp r15, 0x10
jb 0x14007cfe8
lea rdx, [r15 + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x14007cfe0
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007ce92
mov rcx, rsi
call fcn.14009488c
mov al, 1
jmp 0x14007d042
mov rcx, rsi
call fcn.14009488c
call fcn.1400941a0
mov rcx, rax
lea rdx, str.Failed_to_save_image__
call fcn.140002900
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14007d015
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.14000e040
lea rdx, [0x1400a3b68]
mov rcx, rax
call fcn.140002900
mov rcx, rax
lea rdx, [0x14000d720]
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140094830
mov rbx, qword [rsp + 0x190]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400028e0
int3