Function at 0x14000ea10
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov r13, qword [0x14004add0]
mov r14, qword [rsp + 0x100]
mov rdi, qword [rdx + 0x10]
mov r15, qword [r13]
mov qword [rsp + 0x88], r15
mov r15, qword [rdx + 0x20]
mov rbp, rcx
mov byte [r9], 0
mov rbx, rdx
mov dword [r14], 0
mov esi, r8d
mov r12, r9
test r15, r15
je 0x14000ed94
test rdi, rdi
je 0x14000ed94
cmp byte [rdx + 0x1c0], 0
jne 0x14000edc0
cmp byte [rbx + 0x1c5], 0
jne 0x14000ecef
cmp byte [rdi + 0x469], 0
jne 0x14000ede0
test esi, esi
je 0x14000ef40
cmp byte [rbp + 1], 0
je 0x14000eaae
cmp byte [rbp], 0
je 0x14000f088
mov r9, qword [rbx + 0x1b8]
test r9, r9
je 0x14000eac0
cmp byte [r9], 0
jne 0x14000eacb
mov ecx, esi
call qword [sym.imp.libcurl_4.dll_curl_easy_strerror]
mov r9, rax
mov rax, qword [0x14004b210]
mov r8d, esi
lea rdx, [0x140046370]
mov rcx, qword [rax]
call qword [sym.imp.libcurl_4.dll_curl_mfprintf]
cmp esi, 0x3c
je 0x14000f0a0
cmp byte [rbx + 0xb2], 0
jne 0x14000eb20
mov rcx, qword [rbx + 0xb8]
test rcx, rcx
je 0x14000eb20
test esi, esi
sete byte [rsp + 0x30]
call sub.msvcrt.dll_fflush
test eax, eax
je 0x14000eb20
cmp byte [rsp + 0x30], 0
jne 0x14000f040
nop
cmp byte [rbx + 0xd0], 0
jne 0x14000efb0
mov r10d, dword [rbx + 0x28]
test r10d, r10d
je 0x14000ecc0
mov r9d, dword [rdi + 0x3f8]
test r9d, r9d
jne 0x14000ec98
mov dword [rsp + 0x4c], 0
cmp esi, 0x1c
ja 0x14000f1c0
mov eax, 0x10001060
bt rax, rsi
jae 0x14000f0d0
mov qword [rsp + 0x50], 0
mov r11d, dword [rbx + 0x30]
lea r8, str.:_timeout
movsxd r9, r11d
mov edx, dword [rbx + 0x28]
mov rcx, qword [rdi + 0x498]
mov eax, r11d
imul r9, r9, 0x10624dd3
sar eax, 0x1f
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x20], edx
lea rdx, str.Problem__s._Will_retry_in__ld_seconds.__ld_retries_left.
sar r9, 0x26
sub r9d, eax
call fcn.14000e740
mov ecx, dword [rdi + 0x3f4]
sub dword [rbx + 0x28], 1
mov r11d, dword [rsp + 0x30]
test ecx, ecx
jne 0x14000ebd9
mov eax, dword [rbx + 0x30]
mov edx, 0x927c0
add eax, eax
cmp eax, edx
cmovg eax, edx
mov dword [rbx + 0x30], eax
mov r8, qword [rbx + 0xc0]
test r8, r8
je 0x14000ec80
cmp qword [rbx + 0xa8], 0
je 0x14000ec80
cmp qword [rbx + 0xb8], 0
je 0x14000ec80
mov rcx, qword [rdi + 0x498]
lea rdx, str.Throwing_away__lld_bytes
mov dword [rsp + 0x30], r11d
call fcn.14000e6e0
mov rcx, qword [rbx + 0xb8]
call sub.msvcrt.dll_fflush
mov rcx, qword [rbx + 0xb8]
mov rsi, qword [rbx + 0xc8]
call sub.msvcrt.dll__fileno
mov rdx, rsi
mov ecx, eax
call fcn.14001e440
mov r11d, dword [rsp + 0x30]
test eax, eax
jne 0x14000f358
mov rcx, qword [rbx + 0xb8]
xor edx, edx
mov r8d, 2
mov dword [rsp + 0x30], r11d
call sub.msvcrt.dll_fseek
mov r11d, dword [rsp + 0x30]
test eax, eax
jne 0x14000f3b7
mov qword [rbx + 0xc0], 0
mov byte [r12], 1
xor eax, eax
add dword [rbx + 0x34], 1
mov dword [r14], r11d
jmp 0x14000ed96
call fcn.140019fc0
mov rdx, qword [rbx + 0x40]
mov rcx, rax
call fcn.14001a060
mov edx, eax
imul eax, dword [rdi + 0x3f8], 0x3e8
cmp edx, eax
jl 0x14000eb4a
nop dword [rax]
cmp dword [rbp + 0x24], 1
je 0x14000efd0
cmp byte [rbx + 0xb3], 0
jne 0x14000eec0
test esi, esi
jne 0x14000ecef
cmp byte [rdi], 0
je 0x14000eced
cmp byte [rbx + 0xb2], 0
jne 0x14000eff8
xor esi, esi
cmp qword [rdi + 0x328], 0
je 0x14000ed07
mov r8d, esi
mov rdx, rbx
mov rcx, rdi
call fcn.14001a990
cmp byte [rbx + 0xe3], 0
je 0x14000ed21
mov rcx, qword [rbx + 0xe8]
test rcx, rcx
je 0x14000ed21
call sub.msvcrt.dll_fclose
cmp byte [rbx + 0xe0], 0
jne 0x14000ee20
cmp byte [rbx + 0x113], 0
je 0x14000ed48
mov rcx, qword [rbx + 0x118]
test rcx, rcx
je 0x14000ed48
call sub.msvcrt.dll_fclose
cmp byte [rbx + 0x110], 0
jne 0x14000ee50
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.libcurl_4.dll_curl_easy_cleanup]
cmp byte [rbx + 0xb0], 0
jne 0x14000ee70
mov rcx, qword [rbx + 0x48]
call sub.msvcrt.dll_free
mov rcx, qword [rbx + 0x58]
call sub.msvcrt.dll_free
mov rcx, qword [rbx + 0x1b0]
call sub.msvcrt.dll_free
cmp byte [rbp + 0x38], 0
jne 0x14000ee88
mov eax, esi
mov rdx, qword [rsp + 0x88]
sub rdx, qword [r13]
jne 0x14000f498
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, dword [rdx + 0x60]
call sub.msvcrt.dll__close
cmp byte [rbx + 0x1c5], 0
je 0x14000ea89
jmp 0x14000ecef
cmp byte [rdi + 0x1be], 0
jne 0x14000ef4d
test esi, esi
jne 0x14000eaee
mov rcx, qword [rbx + 0xb8]
test rcx, rcx
je 0x14000f248
xor esi, esi
cmp byte [rbx + 0xb2], 0
jne 0x14000eb20
mov byte [rsp + 0x30], 1
jmp 0x14000eb0a
mov rcx, qword [rbx + 0xd8]
call sub.msvcrt.dll_free
cmp byte [rbx + 0x113], 0
mov qword [rbx + 0xd8], 0
je 0x14000ed48
jmp 0x14000ed37
mov rcx, qword [rbx + 0x108]
call sub.msvcrt.dll_free
mov qword [rbx + 0x108], 0
jmp 0x14000ed55
mov rcx, qword [rbx + 0xa8]
call sub.msvcrt.dll_free
jmp 0x14000ed6c
mov rcx, qword [rbx + 0x1b8]
call sub.msvcrt.dll_free
jmp 0x14000ed94
mov edx, dword [rbx + 0x68]
test edx, edx
jne 0x14000efdb
cmp byte [rbx + 0xb3], 0
je 0x14000ecdb
nop word cs:[rax + rax]
nop dword [rax]
mov rcx, qword [rbx + 0xb8]
test rcx, rcx
je 0x14000ecd7
call sub.msvcrt.dll_fclose
test esi, esi
jne 0x14000eef0
test eax, eax
jne 0x14000f060
test esi, esi
je 0x14000ecdb
nop dword [rax]
cmp byte [rdi + 0x500], 0
je 0x14000ecef
mov rcx, qword [rbx + 0xa8]
lea rdx, [rsp + 0x50]
call sub.msvcrt.dll__stat64
mov r8, qword [rbx + 0xa8]
test eax, eax
jne 0x14000ef2c
movzx eax, word [rsp + 0x56]
and ax, 0xf000
cmp ax, 0x8000
je 0x14000f45d
lea rdx, str.Skipping_removal__not_a_regular_file:__s
mov rcx, rbp
call fcn.14000e740
jmp 0x14000ecef
cmp byte [rdi + 0x1be], 0
je 0x14000edf5
mov dword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
mov edx, 0x200002
mov rcx, r15
call qword [sym.imp.libcurl_4.dll_curl_easy_getinfo]
mov r9d, dword [rsp + 0x50]
cmp r9d, 0x18f
jle 0x14000eded
cmp byte [rbp + 1], 0
je 0x14000ef86
cmp byte [rbp], 0
je 0x14000efa3
mov rax, qword [0x14004b210]
mov r8d, 0x16
lea rdx, str.curl:___d__The_requested_URL_returned_error:__ld_n
mov rcx, qword [rax]
call qword [sym.imp.libcurl_4.dll_curl_mfprintf]
mov esi, 0x16
jmp 0x14000eaee
mov dword [rbx + 0xd0], 0
mov byte [rbx + 0xd4], 0
jmp 0x14000eb2d
mov eax, dword [rbx + 0x68]
test eax, eax
je 0x14000ecca
mov rdx, qword [rbx + 0x88]
mov ecx, 0xa
call sub.msvcrt.dll_fputc
jmp 0x14000ecca
cmp qword [rbx + 0xa8], 0
je 0x14000eced
lea r8, [rsp + 0x50]
mov edx, 0x60000e
mov rcx, r15
xor esi, esi
mov qword [rsp + 0x50], 0xffffffffffffffff
call qword [sym.imp.libcurl_4.dll_curl_easy_getinfo]
mov rdx, qword [rbx + 0xa8]
mov rcx, qword [rsp + 0x50]
mov r8, rbp
call fcn.140005250
jmp 0x14000ecef
lea rdx, str.Failed_writing_body
mov rcx, rbp
mov esi, 0x17
call fcn.14000e830
jmp 0x14000eb20
mov rcx, qword [rdi + 0x498]
mov r8d, 0x17
mov esi, 0x17
lea rdx, str.curl:___d__Failed_writing_body
call fcn.14000e830
jmp 0x14000eef0
cmp byte [rdi + 0x1be], 0
je 0x14000eaee
jmp 0x14000ef4d
mov rax, qword [0x14004b210]
mov r8d, 0x107
mov edx, 1
lea rcx, str.More_details_here:_https:__curl.se_docs_sslcerts.html_n_ncurl_failed_to_verify_the_legitimacy_of_the_server_and_therefore_could_not_nestablish_a_secure_connection_to_it._To_learn_more_about_this_situation_and_nhow_to_fix_it__please_visit_the_webpage_mentioned_above._n
mov r9, qword [rax]
call sub.msvcrt.dll_fwrite
jmp 0x14000eaee
cmp byte [rdi + 0x3f1], 0
je 0x14000f0e2
cmp esi, 7
je 0x14000f375
test esi, esi
jne 0x14000f19e
mov r9, qword [sym.imp.libcurl_4.dll_curl_easy_getinfo]
lea rax, [rsp + 0x50]
mov edx, 0x100031
mov rcx, r15
mov r8, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r9
call r9
mov rcx, qword [rsp + 0x50]
call fcn.14000e510
mov rdx, qword [0x14004b070]
mov r9, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
cmp rax, qword [rdx]
je 0x14000f2a8
mov rdx, qword [0x14004b080]
cmp rax, qword [rdx]
je 0x14000f2a8
test esi, esi
jne 0x14000f178
cmp dword [rbp + 0x24], 1
je 0x14000ee99
cmp byte [rbx + 0xb3], 0
je 0x14000ecdb
mov rcx, qword [rbx + 0xb8]
test rcx, rcx
jne 0x14000eed0
jmp 0x14000ecdb
cmp byte [rdi + 0x3f0], 0
je 0x14000ecc0
mov qword [rsp + 0x50], 0
mov r11d, dword [rbx + 0x30]
lea r8, str._retrying_all_errors_
jmp 0x14000eb7e
test word [rdi + 0x1bd], 0xffff
je 0x14000f1c0
cmp esi, 0x16
je 0x14000f0ea
nop word cs:[rax + rax]
nop dword [rax]
mov r9, qword [sym.imp.libcurl_4.dll_curl_easy_getinfo]
lea r8, [rsp + 0x4c]
mov edx, 0x200002
mov rcx, r15
mov qword [rsp + 0x30], r9
call r9
mov edx, 0x100031
mov r9, qword [rsp + 0x30]
mov rcx, r15
lea r8, [rsp + 0x50]
call r9
mov rcx, qword [rsp + 0x50]
call fcn.14000e510
mov rdx, qword [0x14004b050]
cmp rax, qword [rdx]
je 0x14000f217
mov rdx, qword [0x14004b060]
cmp rax, qword [rdx]
jne 0x14000f178
mov eax, dword [rsp + 0x4c]
sub eax, 0x190
cmp eax, 0x63
ja 0x14000f178
mov qword [rsp + 0x50], 0
mov r11d, dword [rbx + 0x30]
lea r8, str.:_FTP_error
jmp 0x14000eb7e
xor esi, esi
cmp qword [rbx + 0xc0], 0
jne 0x14000eb20
mov dword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
mov edx, 0x200023
mov rcx, r15
call qword [sym.imp.libcurl_4.dll_curl_easy_getinfo]
mov r11d, dword [rsp + 0x50]
test r11d, r11d
je 0x14000f284
xor esi, esi
jmp 0x14000eaee
lea rcx, [rbx + 0xa8]
mov rdx, rdi
call fcn.140002ef0
test al, al
jne 0x14000f27d
mov esi, 0x17
jmp 0x14000eaee
mov qword [rsp + 0x30], r9
lea r8, [rsp + 0x4c]
mov edx, 0x200002
mov rcx, r15
call r9
mov eax, dword [rsp + 0x4c]
mov r9, qword [rsp + 0x30]
cmp eax, 0x1f4
je 0x14000f2e5
jg 0x14000f3cc
cmp eax, 0x198
je 0x14000f2e5
cmp eax, 0x1ad
jne 0x14000f142
mov r11d, dword [rbx + 0x30]
mov r8, qword [rsp + 0x38]
mov edx, 0x600039
mov rcx, r15
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x30], r11d
call r9
mov rax, qword [rsp + 0x50]
mov r11d, dword [rsp + 0x30]
test rax, rax
je 0x14000f348
cmp rax, 0x20c49b
jg 0x14000f3df
imul rcx, rax, 0x3e8
movsxd rdx, r11d
cmp rcx, rdx
jle 0x14000f338
imul r11d, eax, 0x3e8
mov r8d, dword [rdi + 0x3f8]
test r8d, r8d
jne 0x14000f3ea
lea r8, str.:_HTTP_error
jmp 0x14000eb7e
mov rcx, qword [rdi + 0x498]
lea rdx, str.Failed_to_truncate_file
call fcn.14000e830
mov eax, 0x17
jmp 0x14000ed96
mov dword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
mov edx, 0x200019
mov rcx, r15
call qword [sym.imp.libcurl_4.dll_curl_easy_getinfo]
cmp dword [rsp + 0x50], 0x274d
jne 0x14000f178
mov qword [rsp + 0x50], 0
mov r11d, dword [rbx + 0x30]
lea r8, str.:_connection_refused
jmp 0x14000eb7e
mov rcx, qword [rdi + 0x498]
lea rdx, str.Failed_seeking_to_end_of_file
call fcn.14000e830
jmp 0x14000f36b
sub eax, 0x1f6
cmp eax, 2
ja 0x14000f142
jmp 0x14000f2e5
mov r11d, 0x7fffffff
jmp 0x14000f338
mov dword [rsp + 0x30], r11d
call fcn.140019fc0
mov rdx, qword [rbx + 0x40]
mov rcx, rax
call fcn.14001a060
movabs rcx, 0x7fffffffffffffff
mov edx, eax
cdqe
imul rax, rax, 0x10624dd3
sar edx, 0x1f
sar rax, 0x26
sub eax, edx
mov rdx, qword [rsp + 0x50]
cdqe
sub rcx, rdx
cmp rcx, rax
jl 0x14000f445
add rdx, rax
movsxd rax, dword [rdi + 0x3f8]
mov r11d, dword [rsp + 0x30]
cmp rdx, rax
jle 0x14000f348
mov rcx, qword [rdi + 0x498]
lea rdx, str.The_Retry_After:_time_would_make_this_command_line_exceed_the_maximum_allowed_time_for_retries.
call fcn.14000e740
jmp 0x14000ecc0
mov rcx, r8
call sub.msvcrt.dll__unlink
mov r8, qword [rbx + 0xa8]
test eax, eax
jne 0x14000f484
lea rdx, str.Removed_output_file:__s
mov rcx, rbp
call fcn.14000e6e0
jmp 0x14000ecef
lea rdx, str.Failed_removing:__s
mov rcx, rbp
call fcn.14000e740
jmp 0x14000ecef
call fcn.14001e3f0
nop
nop
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rdi, qword [0x14004add0]
mov rax, qword [rdi]
mov qword [rsp + 0x58], rax
xor eax, eax
mov rsi, rcx
mov rbx, rdx
test r8d, r8d
jne 0x14000f4cd
mov eax, dword [rcx + 0x108]
test eax, eax
jg 0x14000f4e8
mov rax, qword [rsp + 0x58]
sub rax, qword [rdi]
jne 0x14000f598
xor eax, eax
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
mov dword [rsp + 0x38], eax
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x3c]
mov rcx, rbx
mov dword [rsp + 0x3c], 0x10
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14000f4cd
movzx eax, word [rsp + 0x40]
cmp ax, 2
je 0x14000f578
cmp ax, 0x17
jne 0x14000f4cd
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov edx, 0x29
mov rcx, rbx
mov r8d, 0x27
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14000f4cd
call qword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [rax]
mov ecx, ebx
call sub.msvcrt.dll_strerror
mov rcx, qword [rsi + 0x498]
mov r9d, ebx
mov r8d, dword [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, str.Setting_type_of_service_to__d_failed_with_errno__d:__s__n
call fcn.14000e740
jmp 0x14000f4cd
lea r9, [rsp + 0x38]
mov r8d, 3
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x14000f53d
call fcn.14001e3f0
nop
nop