Function at 0x14001a990
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x298
mov rbx, qword [0x14004add0]
mov r13, qword [fcn.1400287d0]
mov r12, rcx
mov rsi, rdx
mov edi, r8d
mov rcx, qword [rbx]
mov qword [rsp + 0x288], rcx
mov ecx, 1
call r13
mov rbp, qword [r12 + 0x328]
mov rbx, rax
test rbp, rbp
je 0x14001aa7b
lea r12, [rsp + 0x60]
mov edx, 0x18
mov rcx, r12
call fcn.14001c800
movsx ecx, byte [rbp]
test cl, cl
je 0x14001aa73
xor r15d, r15d
nop
cmp cl, 0x25
je 0x14001aab0
cmp cl, 0x5c
jne 0x14001aa50
movzx eax, byte [rbp + 1]
test al, al
je 0x14001aa50
cmp al, 0x72
je 0x14001ac30
cmp al, 0x74
je 0x14001ac18
cmp al, 0x6e
je 0x14001ab20
mov rdx, rbx
mov ecx, 0x5c
call sub.msvcrt.dll_fputc
movsx ecx, byte [rbp + 1]
mov rdx, rbx
call sub.msvcrt.dll_fputc
jmp 0x14001ab2d
mov rdx, rbx
call sub.msvcrt.dll_fputc
add rbp, 1
xor eax, eax
movsx ecx, byte [rbp]
test cl, cl
je 0x14001aa6a
test al, al
je 0x14001aa00
test r15b, r15b
jne 0x14001ac08
mov rcx, r12
call fcn.14001c820
mov rdi, qword [0x14004add0]
mov rax, qword [rsp + 0x288]
sub rax, qword [rdi]
jne 0x14001af0c
add rsp, 0x298
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx eax, byte [rbp + 1]
test al, al
je 0x14001aa50
cmp al, 0x25
je 0x14001add0
cmp al, 0x7b
je 0x14001ac48
lea r14, [rbp + 1]
mov r8d, 7
lea rcx, str.header
mov rdx, r14
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x14001ab40
add rbp, 8
mov edx, 0x7d
mov rcx, rbp
call sub.msvcrt.dll_strchr
mov r14, rax
test rax, rax
je 0x14001ae54
mov r8, rax
sub r8, rbp
cmp r8, 0xff
jbe 0x14001ad58
lea rbp, [r14 + 1]
xor eax, eax
jmp 0x14001aa5e
mov rdx, rbx
mov ecx, 0xa
call sub.msvcrt.dll_fputc
add rbp, 2
xor eax, eax
jmp 0x14001aa5e
mov r8d, 7
mov rdx, r14
lea rcx, str.output
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x14001ad48
cmp byte [rbp + 8], 0x3e
mov byte [rsp + 0x30], 0
lea r14, [rbp + 8]
je 0x14001ade8
mov edx, 0x7d
mov rcx, r14
call sub.msvcrt.dll_strchr
mov rbp, rax
test rax, rax
je 0x14001ae75
mov r8, rax
sub r8, r14
cmp r8, 0x1ff
ja 0x14001aa58
mov rdx, r14
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x38], r8
call sub.msvcrt.dll_memcpy
mov r8, qword [rsp + 0x38]
cmp byte [rsp + 0x30], 0
lea rdx, [0x14004949e]
mov rcx, rax
lea rax, [0x14004949b]
mov byte [rsp + r8 + 0x80], 0
cmovne rdx, rax
call fcn.14001c6d0
mov r14, rax
test rax, rax
je 0x14001aa58
test r15b, r15b
jne 0x14001aee8
mov rbx, r14
mov r15d, 1
jmp 0x14001aa58
mov rcx, rbx
call sub.msvcrt.dll_fclose
jmp 0x14001aa73
mov rdx, rbx
mov ecx, 9
call sub.msvcrt.dll_fputc
jmp 0x14001ab2d
mov rdx, rbx
mov ecx, 0xd
call sub.msvcrt.dll_fputc
jmp 0x14001ab2d
pxor xmm0, xmm0
mov rcx, rbp
mov edx, 0x7d
mov qword [rsp + 0x50], 0
movups xmmword [rsp + 0x40], xmm0
add rbp, 2
call sub.msvcrt.dll_strchr
mov r14, rax
test rax, rax
je 0x14001ae33
sub rax, rbp
mov rcx, r12
mov qword [rsp + 0x30], rax
call fcn.14001c850
mov r8, qword [rsp + 0x30]
mov rdx, rbp
mov rcx, r12
call fcn.14001c8d0
test eax, eax
jne 0x14001ad18
mov rcx, r12
call fcn.14001c9e0
lea rcx, [rsp + 0x40]
mov r9d, 0x18
mov r8d, 0x46
mov qword [rsp + 0x40], rax
lea rax, [0x14001a180]
lea rdx, [0x1400498a0]
mov qword [rsp + 0x20], rax
call sub.msvcrt.dll_bsearch
test rax, rax
je 0x14001ad18
mov edx, dword [rax + 8]
cmp edx, 0x2f
je 0x14001aea9
jbe 0x14001ae00
cmp edx, 0x42
je 0x14001aecf
cmp edx, 0x43
jne 0x14001aeb3
test r15b, r15b
jne 0x14001aef5
mov ecx, 1
xor r15d, r15d
call r13
mov rbx, rax
xor eax, eax
jmp 0x14001ad39
mov rax, qword [0x14004b210]
mov r8d, dword [rsp + 0x30]
mov r9, rbp
lea rdx, str.curl:_unknown___write_out_variable:__.s_n
mov rcx, qword [rax]
call qword [sym.imp.libcurl_4.dll_curl_mfprintf]
xor eax, eax
lea rbp, [r14 + 1]
jmp 0x14001aa5e
mov rdx, rbx
mov ecx, 0x25
jmp 0x14001aa36
lea r11, [rsp + 0x80]
mov rdx, rbp
mov qword [rsp + 0x30], r8
mov rcx, r11
call sub.msvcrt.dll_memcpy
mov r8, qword [rsp + 0x30]
mov rcx, qword [rsi + 0x20]
mov r9d, 1
mov r11, rax
lea rax, [rsp + 0x40]
mov byte [rsp + r8 + 0x80], 0
mov rdx, r11
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.libcurl_4.dll_curl_easy_header]
test eax, eax
jne 0x14001ab15
mov rax, qword [rsp + 0x40]
mov rdx, rbx
mov rcx, qword [rax + 8]
call sub.msvcrt.dll_fputs
jmp 0x14001ab15
mov rdx, rbx
mov ecx, 0x25
add rbp, 2
call sub.msvcrt.dll_fputc
xor eax, eax
jmp 0x14001aa5e
cmp byte [rbp + 9], 0x3e
jne 0x14001ab70
mov byte [rsp + 0x30], 1
lea r14, [rbp + 0xa]
jmp 0x14001ab70
cmp edx, 0xd
je 0x14001ae99
cmp edx, 0x27
jne 0x14001aeb3
mov dword [rsp + 0x20], edi
mov r9, rsi
mov r8d, 0x46
mov rcx, rbx
lea rdx, [0x1400498a0]
call fcn.14001b1f0
jmp 0x14001ad37
mov r9, rbx
mov r8d, 2
mov edx, 1
lea rcx, [0x1400494a1]
call sub.msvcrt.dll_fwrite
xor eax, eax
jmp 0x14001aa5e
mov r9, rbx
mov r8d, 8
mov edx, 1
lea rcx, str._header
call sub.msvcrt.dll_fwrite
xor eax, eax
jmp 0x14001aa5e
mov r9, rbx
mov r8d, 8
mov edx, 1
mov rbp, r14
lea rcx, str._output
call sub.msvcrt.dll_fwrite
xor eax, eax
jmp 0x14001aa5e
mov rdx, rsi
mov rcx, rbx
call fcn.14001b2d0
jmp 0x14001ad37
test edi, edi
sete al
jmp 0x14001ad39
mov r9d, edi
mov r8, rsi
mov rdx, rax
mov rcx, rbx
mov dword [rsp + 0x20], 0
call qword [rax + 0x10]
jmp 0x14001ad37
test r15b, r15b
jne 0x14001af02
mov rax, qword [0x14004b210]
xor r15d, r15d
mov rbx, qword [rax]
xor eax, eax
jmp 0x14001ad39
mov rcx, rbx
call sub.msvcrt.dll_fclose
jmp 0x14001abf3
mov rcx, rbx
call sub.msvcrt.dll_fclose
jmp 0x14001ad03
mov rcx, rbx
call sub.msvcrt.dll_fclose
jmp 0x14001aed4
call fcn.14001e3f0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop