Function at 0x1400397f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x268
mov rbp, qword [rcx + 0x10]
mov dword [rsp + 0x58], pe_nt_image_headers64
mov r13, rcx
mov r12, rdx
mov rsi, r9
test byte [rcx + 0x24], 1
je 0x140039840
mov byte [r9], 1
xor eax, eax
add rsp, 0x268
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ebx, dword [rdx + 0x6f4]
lea r14, [rsp + 0x40]
mov eax, 0xea60
lea r15, [rsp + 0x160]
mov rcx, r14
test ebx, ebx
cmove rbx, rax
call sym.Curl_now
xor r8d, r8d
mov rdx, r15
mov rcx, r12
movdqu xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x160], xmm0
call sym.Curl_timeleft
test rax, rax
je 0x140039bb8
cmp rbx, rax
jle 0x140039bb8
test rax, rax
js 0x140039bf0
test byte [r12 + 0xa47], 0x10
je 0x1400398cb
mov rax, qword [r12 + 0x1270]
test rax, rax
je 0x1400398bc
mov eax, dword [rax + 8]
test eax, eax
jle 0x1400398cb
mov rax, qword [r13]
mov eax, dword [rax + 0xc]
test eax, eax
jg 0x140039cb8
mov rcx, qword [rbp + 0x98]
xor r9d, r9d
mov r8, 0xffffffffffffffff
mov rdx, 0xffffffffffffffff
call sym.Curl_socket_check
mov ebx, eax
test byte [r12 + 0xa47], 0x10
je 0x14003991a
mov rax, qword [r12 + 0x1270]
test rax, rax
je 0x140039909
mov edi, dword [rax + 8]
test edi, edi
jle 0x14003991a
mov rax, qword [r13]
mov r11d, dword [rax + 0xc]
test r11d, r11d
jg 0x140039cf0
cmp ebx, 0xffffffff
je 0x140039c98
movzx eax, byte [r12 + 0xa47]
and eax, 0x10
and ebx, 1
je 0x140039c10
test al, al
je 0x140039961
mov rax, qword [r12 + 0x1270]
test rax, rax
je 0x140039952
mov r10d, dword [rax + 8]
test r10d, r10d
jle 0x140039961
lea rdx, str.Ready_to_accept_data_connection_from_server
mov rcx, r12
call sym.Curl_infof
lea rsi, [rsp + 0x58]
lea rbx, [rsp + 0x60]
mov rcx, qword [rbp + 0x98]
mov r8, rsi
mov rdx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140039b98
mov rdx, rbx
mov dword [rsp + 0x58], pe_nt_image_headers64
mov rcx, qword [rbp + 0x98]
mov r8, rsi
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140039b98
test byte [r12 + 0xa47], 0x10
je 0x1400399dc
mov rax, qword [r12 + 0x1270]
test rax, rax
je 0x1400399cd
mov ecx, dword [rax + 8]
test ecx, ecx
jle 0x1400399dc
lea rdx, str.Connection_accepted_from_server
mov rcx, r12
call sym.Curl_infof
mov edx, 1
mov rcx, rbx
call sym.curlx_nonblock
movzx eax, byte [rbp + 0x150]
mov rdi, qword [rbp + 0x98]
mov rsi, qword [r13 + 0x18]
and eax, 0xfffffff9
or eax, 4
mov byte [rbp + 0x150], al
cmp rdi, 0xffffffffffffffff
je 0x140039a35
test rsi, rsi
je 0x140039a28
cmp qword [rsi + 0x20], 0
mov rdx, rdi
mov rcx, r12
jne 0x140039d10
call sym.Curl_multi_closed
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rsi, qword [r13 + 0x18]
movsxd rax, dword [r13 + 0x20]
mov qword [rbp + 0x98], rbx
mov ecx, 0x10
lea r8, [rsp + 0x5c]
mov dword [rsp + 0x5c], pe_nt_image_headers64
mov qword [rsi + rax*8 + 0x238], rbx
xor eax, eax
mov rbx, qword [r13 + 0x10]
lea rsi, [rsp + 0xe0]
mov rdi, rsi
mov rdx, rsi
rep stosq qword [rdi], rax
mov byte [rbx + 0xa0], 0
mov rcx, qword [rbx + 0x98]
mov dword [rbx + 0xfc], 0
call qword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x140039c60
mov edx, dword [rsp + 0x5c]
lea r9, [rbx + 0xfc]
lea r8, [rbx + 0xa0]
mov rcx, rsi
call sym.Curl_addr2string
test al, al
je 0x140039d40
mov rcx, qword [r13 + 0x10]
mov rdx, r12
call sym.set_local_ip.isra.0
or byte [rbp + 0x150], 0x10
mov rcx, r14
call sym.Curl_now
movdqu xmm1, xmmword [rsp + 0x40]
movups xmmword [rbp + 0x118], xmm1
or byte [r13 + 0x24], 1
test byte [r12 + 0xa47], 0x10
je 0x140039b40
mov rax, qword [r12 + 0x1270]
test rax, rax
je 0x140039b05
mov edx, dword [rax + 8]
test edx, edx
jle 0x140039b40
mov rax, qword [r13]
mov eax, dword [rax + 0xc]
test eax, eax
jle 0x140039b40
mov eax, dword [rbp + 0xfc]
mov r9, qword [rbp + 0x98]
mov rdx, r13
mov rcx, r12
lea r8, str.accepted_set_sock_zd__remote_s_port_d_
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
call sym.Curl_trc_cf_infof
nop
cmp qword [r12 + 0x280], 0
je 0x140039b8e
mov edx, 1
mov rcx, r12
call sym.Curl_set_in_callback
mov rdx, qword [rbp + 0x98]
mov rcx, qword [r12 + 0x288]
mov r8d, 1
call qword [r12 + 0x280]
xor edx, edx
mov rcx, r12
mov ebx, eax
call sym.Curl_set_in_callback
mov eax, 0x2a
test ebx, ebx
jne 0x140039824
xor eax, eax
jmp 0x140039824
lea rdx, str.Error_accept__ing_server_connect
mov rcx, r12
call sym.Curl_failf
mov eax, 0x1e
jmp 0x140039824
movdqa xmm2, xmmword [rsp + 0x160]
lea rdx, [rsp + 0x30]
mov rcx, r14
movaps xmmword [rsp + 0x40], xmm2
movdqu xmm3, xmmword [rbp + 0x108]
movaps xmmword [rsp + 0x30], xmm3
call sym.Curl_timediff
mov r8, rax
mov rax, rbx
sub rax, r8
jne 0x140039894
nop
lea rdx, str.Accept_timeout_occurred_while_waiting_server_connect
mov rcx, r12
call sym.Curl_failf
mov eax, 0xc
jmp 0x140039824
test al, al
je 0x140039c50
mov rax, qword [r12 + 0x1270]
test rax, rax
je 0x140039c2a
mov r9d, dword [rax + 8]
test r9d, r9d
jle 0x140039c50
mov rax, qword [r13]
mov r8d, dword [rax + 0xc]
test r8d, r8d
jle 0x140039c50
lea r8, str.nothing_heard_from_the_server_yet
mov rdx, r13
mov rcx, r12
call sym.Curl_trc_cf_infof
nop dword [rax]
mov byte [rsi], 0
xor eax, eax
jmp 0x140039824
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rdx, r15
mov r8d, 0x100
mov ecx, eax
mov ebx, eax
call sym.Curl_strerror
mov r8d, ebx
lea rdx, str.getpeername___failed_with_errno__d:__s
mov rcx, r12
mov r9, rax
call sym.Curl_failf
jmp 0x140039ab9
lea rdx, [0x1401607e0]
mov rcx, r12
call sym.Curl_failf
mov eax, 0xa
jmp 0x140039824
mov eax, dword [rbp + 0x100]
mov r9, qword [rbp + 0x98]
mov rdx, r13
mov rcx, r12
lea r8, str.Checking_for_incoming_on_fd_zd_ip_s:_d
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0xce]
mov qword [rsp + 0x20], rax
call sym.Curl_trc_cf_infof
jmp 0x1400398cb
mov r9d, ebx
lea r8, str.socket_check_____x
mov rdx, r13
mov rcx, r12
call sym.Curl_trc_cf_infof
jmp 0x14003991a
call sym.Curl_multi_closed
mov edx, 1
mov rcx, r12
call sym.Curl_set_in_callback
mov rcx, qword [rsi + 0x28]
mov rdx, rdi
call qword [rsi + 0x20]
xor edx, edx
mov rcx, r12
call sym.Curl_set_in_callback
mov rsi, qword [r13 + 0x18]
jmp 0x140039a35
mov rsi, qword [sym.imp.msvcrt.dll__errno]
call rsi
mov rdx, r15
mov r8d, 0x100
mov ecx, dword [rax]
call sym.Curl_strerror
mov rbx, rax
call rsi
mov r9, rbx
lea rdx, str.ssrem_inet_ntop___failed_with_errno__d:__s
mov rcx, r12
mov r8d, dword [rax]
call sym.Curl_failf
jmp 0x140039ab9