Function at 0x1400452e0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe8
mov r14, qword [rcx]
mov r13, qword [rdx]
mov r15d, r9d
mov qword [rsp + 0x70], r14
mov rbp, rdx
mov r12d, r8d
mov qword [rsp + 0x130], rcx
mov qword [rsp + 0x78], r13
mov dword [rsp + 0x6c], 0
cmp r15d, 0x26
ja 0x140045480
lea rcx, [rsp + 0x80]
mov r8, r13
mov rdx, r14
call dbg._find_tcp_header
movzx eax, byte [rsp + 0x99]
mov byte [rsp + 0x5b], al
test al, al
jne 0x140045380
mov rax, qword [rsp + 0x130]
mov qword [rax], r14
mov qword [rbp], r13
mov byte [rsp + 0x5b], 0
movzx eax, byte [rsp + 0x5b]
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0x6c]
mov r9d, r12d
lea edi, [r15 + 2]
mov rcx, r14
mov rsi, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x80]
mov r8, rsi
mov qword [rsp + 0x30], rdx
call sym._find_opt.isra.0
mov byte [rsp + 0xa0], r12b
mov r11, rdi
mov rbx, rax
mov byte [rsp + 0xa1], dil
lea rax, [rsp + 0xa2]
cmp r15d, 8
jae 0x1400454b0
test r15b, 4
jne 0x140045c40
test r15d, r15d
je 0x140045404
mov rcx, qword [rsp + 0x150]
movzx edx, byte [rcx]
mov byte [rsp + 0xa2], dl
test r15b, 2
jne 0x140045cbf
cmp rbx, rsi
jae 0x1400455d0
movzx eax, byte [r14 + rbx]
test al, al
je 0x1400455d0
cmp eax, r12d
jne 0x140045c16
movzx edx, byte [r14 + rbx + 1]
lea r9, [rbx + rdx]
jmp 0x140045451
sub eax, 1
sub rbx, 1
mov dword [rsp + 0x6c], eax
mov rdx, r9
sub rdx, rbx
cmp rdx, rdi
jae 0x140045540
mov eax, dword [rsp + 0x6c]
test eax, eax
jne 0x140045440
cmp r9, rsi
jae 0x140045540
cmp byte [r14 + r9], 1
jne 0x140045520
add r9, 1
jmp 0x14004544b
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x29
mov edx, 1
lea rcx, str.____templ.tcp.add_opt:_opt_len_too_large_n
mov r9, rax
call sym.fwrite
jmp 0x140045349
mov rcx, qword [rsp + 0x150]
mov rdx, qword [rcx]
mov qword [rsp + 0xa2], rdx
mov edx, r15d
mov rcx, qword [rcx + rdx - 8]
mov qword [rax + rdx - 8], rcx
lea rcx, [rsp + 0xa8]
sub rax, rcx
mov rdx, rax
mov rax, qword [rsp + 0x150]
add r15d, edx
and r15d, 0xfffffff8
sub rax, rdx
cmp r15d, 8
jb 0x140045404
and r15d, 0xfffffff8
xor edx, edx
mov r8d, edx
add edx, 8
mov r9, qword [rax + r8]
mov qword [rcx + r8], r9
cmp edx, r15d
jb 0x140045500
jmp 0x140045404
cmp rdx, rdi
jae 0x140045540
lea r15, [r14 + r9]
cmp byte [r15], 0
je 0x140045ad5
nop word cs:[rax + rax]
nop
mov rcx, qword [rsp + 0x30]
lea rax, [rsi + rdi]
add rax, rbx
sub rax, r9
lea rdx, [rcx + 0x3c]
cmp rdx, rax
jb 0x1400456f0
mov eax, r9d
mov r13d, r11d
mov r14, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
sub eax, ebx
sub r13d, eax
test r13d, r13d
jg 0x1400455e0
jne 0x1400458c0
add rbx, r14
lea rax, [rsp + 0xa0]
cmp r11d, 8
jae 0x140045a08
test r11b, 4
jne 0x140045cf1
test r11d, r11d
je 0x1400456db
movzx edx, byte [rsp + 0xa0]
and r11d, 2
mov byte [rbx], dl
je 0x1400456db
movzx eax, word [rax + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x1400456db
mov rdx, rsi
mov r9, rsi
sub rdx, rbx
jmp 0x140045451
movsxd r10, r13d
mov rcx, r14
mov dword [rsp + 0x40], r11d
lea r15, [r12 + r10]
mov qword [rsp + 0x38], r10
mov rdx, r15
mov qword [rsp + 0x48], r9
call sym.realloc
mov r9, qword [rsp + 0x48]
lea r8, [rbx + rdi]
mov rdx, r15
mov rcx, rax
mov r14, rax
sub r12, r9
add rbx, r14
mov qword [rsp + 0x20], r12
call dbg.safe_memmove
mov r11d, dword [rsp + 0x40]
mov r10, qword [rsp + 0x38]
lea rax, [rsp + 0xa0]
cmp r11d, 8
jae 0x1400459b0
test r11b, 4
jne 0x140045cd0
test r11d, r11d
jne 0x140045ab2
mov eax, r13d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r15
and eax, 3
je 0x140045998
mov r12d, 4
lea rdi, [rsp + 0x78]
lea rbx, [rsp + 0x70]
sub r12d, eax
lea r8, [rsi + r10]
mov rdx, rdi
mov rcx, rbx
mov r9d, r12d
add r13d, r12d
call dbg._add_padding
mov r15, qword [rsp + 0x78]
mov r14, qword [rsp + 0x70]
mov r9, qword [rsp + 0x30]
mov rcx, r14
mov r8d, r13d
mov rdx, r15
movzx eax, byte [rsp + 0x98]
mov byte [rsp + 0x28], al
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
call sym._adjust_length.isra.0
mov rdx, rdi
mov rcx, rbx
call dbg._normalize_padding
mov r14, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov rax, qword [rsp + 0x130]
mov qword [rax], r14
mov qword [rbp], r12
jmp 0x14004535d
lea r15, [rcx + 0x14]
cmp r15, rsi
jae 0x140045ce6
mov dword [rsp + 0x40], r11d
xor r9d, r9d
mov qword [rsp + 0x48], rdi
nop word [rax + rax]
lea r11, [r14 + r15]
movzx eax, byte [r11]
cmp eax, 1
je 0x140045830
test eax, eax
je 0x140045b98
cmp r12d, eax
je 0x140045880
test r9d, r9d
je 0x1400457e8
movzx eax, byte [r14 + r15 + 1]
mov edi, r9d
mov rbx, r15
mov r9, r15
sub rbx, rdi
mov rdx, r13
mov rcx, r14
mov qword [rsp + 0x20], rax
mov r8, rbx
mov qword [rsp + 0x38], rax
call dbg.safe_memmove
mov rax, qword [rsp + 0x38]
add rax, r15
mov r15, rax
sub r15, rdi
cmp r13, rax
jb 0x140045840
lea rcx, [r14 + r15]
mov r8, rdi
mov edx, 1
call sym.memset
lea r11, [r14 + rbx]
xor r9d, r9d
movzx eax, byte [r11]
test eax, eax
jne 0x1400457e0
mov r8d, r9d
mov rbx, rsi
mov r11d, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
sub rbx, r8
mov r15, rsi
cmp r13, r15
jb 0x140045b42
lea rcx, [r14 + rbx]
xor edx, edx
mov dword [rsp + 0x38], r11d
call sym.memset
mov r11d, dword [rsp + 0x38]
mov r9, rsi
jmp 0x14004555c
mov r15, rbx
cmp eax, 1
je 0x140045834
lea rax, [r15 + 2]
cmp rsi, rax
jb 0x14004579c
movzx eax, byte [r14 + r15 + 1]
cmp al, 1
jbe 0x14004579c
add rax, r15
cmp rax, rsi
cmova rax, rsi
mov r15, rax
cmp r15, rsi
jb 0x140045710
mov r8d, r9d
mov rbx, r15
mov r11d, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
sub rbx, r8
jmp 0x1400457b2
add r9d, 1
add r15, 1
jmp 0x140045808
lea r9, [r13 + rdi]
mov ecx, 2
mov rdi, r9
sub rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 0x2a
mov rdx, rax
call sym.fputc
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call sym.fflush
jmp 0x14004577c
movzx r8d, byte [r14 + r15 + 1]
lea rax, [r15 + r8]
cmp r13, rax
jb 0x140045bc3
mov rcx, r11
mov edx, 1
mov dword [rsp + 0x38], r9d
mov rbx, r15
call sym.memset
mov r9d, dword [rsp + 0x38]
mov r11, rax
add r9d, 1
jmp 0x140045794
mov rax, r12
lea r8, [rbx + rdi]
mov rcx, r14
mov rdx, r12
sub rax, r9
mov dword [rsp + 0x40], r11d
mov qword [rsp + 0x20], rax
call dbg.safe_memmove
movsxd r8, r13d
mov rcx, r14
lea r15, [r12 + r8]
mov qword [rsp + 0x38], r8
mov rdx, r15
call sym.realloc
mov r11d, dword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
add rbx, rax
mov r14, rax
lea rax, [rsp + 0xa0]
cmp r11d, 8
jae 0x140045a5d
test r11b, 4
jne 0x140045d07
test r11d, r11d
je 0x14004593b
movzx edx, byte [rsp + 0xa0]
and r11d, 2
mov byte [rbx], dl
jne 0x140045d1d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], r15
test r13b, 3
je 0x140045998
mov r9d, r13d
lea rdi, [rsp + 0x78]
lea rbx, [rsp + 0x70]
add r8, rsi
sar r9d, 0x1f
mov rdx, rdi
mov rcx, rbx
shr r9d, 0x1e
lea eax, [r13 + r9]
and eax, 3
mov r12d, eax
sub r12d, r9d
sub r9d, eax
call dbg._add_padding
sub r13d, r12d
mov r15, qword [rsp + 0x78]
mov r14, qword [rsp + 0x70]
jmp 0x14004569a
lea rdi, [rsp + 0x78]
lea rbx, [rsp + 0x70]
jmp 0x14004569a
mov rdx, qword [rsp + 0xa0]
mov qword [rbx], rdx
mov rdx, qword [rax + rdi - 8]
mov qword [rbx + rdi - 8], rdx
lea rdx, [rbx + 8]
and rdx, 0xfffffffffffffff8
sub rbx, rdx
sub rax, rbx
mov rcx, rax
lea eax, [r11 + rbx]
and eax, 0xfffffff8
cmp eax, 8
jb 0x140045652
and eax, 0xfffffff8
xor r8d, r8d
mov r9d, r8d
add r8d, 8
mov r11, qword [rcx + r9]
mov qword [rdx + r9], r11
cmp r8d, eax
jb 0x1400459ec
jmp 0x140045652
mov rdx, qword [rsp + 0xa0]
lea rcx, [rbx + 8]
and rcx, 0xfffffffffffffff8
mov qword [rbx], rdx
mov rdx, qword [rax + rdi - 8]
mov qword [rbx + rdi - 8], rdx
sub rbx, rcx
sub rax, rbx
mov rdx, rax
lea eax, [r11 + rbx]
and eax, 0xfffffff8
cmp eax, 8
jb 0x1400456db
and eax, 0xfffffff8
xor r8d, r8d
mov r9d, r8d
add r8d, 8
mov r10, qword [rdx + r9]
mov qword [rcx + r9], r10
cmp r8d, eax
jb 0x140045a44
jmp 0x1400456db
mov rdx, qword [rsp + 0xa0]
mov qword [rbx], rdx
mov rdx, qword [rax + rdi - 8]
mov qword [rbx + rdi - 8], rdx
lea rdx, [rbx + 8]
and rdx, 0xfffffffffffffff8
sub rbx, rdx
sub rax, rbx
mov rcx, rax
lea eax, [r11 + rbx]
and eax, 0xfffffff8
cmp eax, 8
jb 0x14004593b
and eax, 0xfffffff8
xor r9d, r9d
mov r10d, r9d
add r9d, 8
mov r11, qword [rcx + r10]
mov qword [rdx + r10], r11
cmp r9d, eax
jb 0x140045a99
jmp 0x14004593b
movzx edx, byte [rsp + 0xa0]
and r11d, 2
mov byte [rbx], dl
je 0x140045652
movzx eax, word [rax + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x140045652
cmp r13, rsi
jb 0x140045c60
mov r8, rsi
sub r8, r9
xor edx, edx
mov rcx, r15
mov qword [rsp + 0x40], r9
mov dword [rsp + 0x38], r11d
call sym.memset
mov r9, qword [rsp + 0x40]
mov r11d, dword [rsp + 0x38]
mov rax, r9
sub rax, rbx
cmp rax, rdi
jae 0x140045540
lea rax, [r9 + 1]
mov rdx, rax
sub rdx, rbx
jmp 0x140045b24
add rax, 1
cmp rdx, rdi
mov r9, rax
setae cl
cmp rax, rsi
setae r8b
add rdx, 1
or cl, r8b
je 0x140045b20
jmp 0x140045540
lea r9, [r13 + r8]
mov dword [rsp + 0x40], r11d
mov r8, r9
sub r8, r15
mov qword [rsp + 0x38], r8
mov r12, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call r12
mov ecx, 0x2a
mov rdx, rax
call sym.fputc
mov ecx, 2
call r12
mov rcx, rax
call sym.fflush
mov r11d, dword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
jmp 0x1400457bb
mov rbx, r15
mov r11d, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
sub rbx, r9
sub r9, r15
lea r8, [rsi + r9]
lea rax, [rbx + r8]
cmp r13, rax
jae 0x1400457bb
lea r8, [r13 + r9]
jmp 0x140045b52
mov r8, r13
mov dword [rsp + 0x5c], r9d
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
sub r8, r15
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x38], r8
call rbx
mov ecx, 0x2a
mov rdx, rax
call sym.fputc
mov ecx, 2
call rbx
mov rcx, rax
call sym.fflush
mov r9d, dword [rsp + 0x5c]
mov r11, qword [rsp + 0x50]
mov r8, qword [rsp + 0x38]
jmp 0x140045893
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8d, 0x19
mov edx, 1
lea rcx, str.____not_possible_i09670t_n
mov r9, rax
call sym.fwrite
jmp 0x140045358
mov rcx, qword [rsp + 0x150]
mov edx, dword [rcx]
mov dword [rsp + 0xa2], edx
mov edx, dword [rcx + r15 - 4]
mov dword [rax + r15 - 4], edx
jmp 0x140045404
mov r10, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, r13
mov dword [rsp + 0x50], r11d
mov ecx, 2
sub r8, r9
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], r10
call r10
mov ecx, 0x2a
mov rdx, rax
call sym.fputc
mov r10, qword [rsp + 0x38]
mov ecx, 2
call r10
mov rcx, rax
call sym.fflush
mov r11d, dword [rsp + 0x50]
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
jmp 0x140045ae4
movzx edx, word [rcx + r15 - 2]
mov word [rax + r15 - 2], dx
jmp 0x140045404
mov edx, dword [rsp + 0xa0]
mov dword [rbx], edx
mov eax, dword [rax + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x140045652
mov rbx, r15
xor r8d, r8d
jmp 0x1400457b2
mov edx, dword [rsp + 0xa0]
mov dword [rbx], edx
mov eax, dword [rax + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x1400456db
mov edx, dword [rsp + 0xa0]
mov dword [rbx], edx
mov eax, dword [rax + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x14004593b
movzx eax, word [rax + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x14004593b