Function at 0x1400f7a50
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov ebx, r8d
mov r14, rdx
mov r15, rcx
mov r13, qword [rsp + 0x118]
mov rdi, qword [rsp + 0x110]
mov rax, qword [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov ebp, dword [rdi + 0x3a4]
lea r12, [rdi + 0xc]
movsxd rax, r9d
mov rax, qword [rdi + rax*8 + 0x4c0]
mov qword [rsp + 0x50], rax
mov rsi, qword [rdi]
mov qword [rsp + 0x58], 0
mov eax, dword [rdi + 8]
dec eax
cmp eax, 0x10
jb 0x1400f7ac9
cmp byte [r13], 0
je 0x1400f7d5e
cmp eax, 0xd
ja case.0x1400f7ae0.1
lea rcx, [0x14029ec30]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov qword [rsp + 0x48], r12
mov ebx, ebp
mov ebp, dword [rdi + 0x3f0]
mov rcx, qword [rsi + 0xe0]
test rcx, rcx
je 0x1400f7b21
test byte [rcx], 8
je 0x1400f7b21
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400f7b21
mov r9, qword [rcx + 0x18]
mov rcx, rsi
mov edx, 3
mov r8d, 2
call qword [0x1402a7b00]
mov rcx, rdi
mov rdx, r14
mov r8d, ebp
call fcn.1400d06a0
mov r12, rax
test rax, rax
je 0x1400f7b3c
inc dword [r12 + 0x10]
mov rcx, qword [rsi + 0xe0]
test rcx, rcx
mov ebp, ebx
je 0x1400f7b6a
test byte [rcx], 8
je 0x1400f7b6a
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x1400f7b6a
mov r8, qword [rcx + 0x18]
mov rcx, rsi
mov edx, 3
call qword [0x1402a7b00]
mov qword [rsp + 0x58], r12
test r12, r12
je 0x1400f80cd
mov qword [rdi + 0x9d0], r12
mov byte [rdi + 0x9e8], 1
lea rdx, str.Hostname__s_was_found_n
mov rcx, rsi
mov r8, r14
call fcn.1400b8a80
cmp dword [rdi + 8], 0xb
mov r12, qword [rsp + 0x48]
je case.0x1400f7ae0.10
mov dword [rdi + 8], Ordinal_14
mov rcx, qword [rsp + 0x58]
movaps xmm0, xmmword [0x140275a70]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
test rcx, rcx
je 0x1400f7c33
mov rbx, qword [rcx]
test rbx, rbx
je 0x1400f7c33
mov ecx, dword [rbx + 4]
cmp ecx, 2
je 0x1400f7bf1
cmp ecx, 0x17
jne 0x1400f7c0d
mov edx, 8
jmp 0x1400f7bf6
mov edx, 4
add rdx, qword [rbx + 0x20]
lea r8, [rsp + 0x60]
mov r9d, 0x40
call fcn.1400f8d30
mov ecx, dword [rbx + 4]
cmp ecx, 2
je 0x1400f7c4f
lea rdx, str.SOCKS4_connection_to__s_not_supported_n
lea r8, [rsp + 0x60]
mov rcx, rsi
call fcn.1400b8d80
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call fcn.1400d0f10
lea rdx, str.Failed_to_resolve___s__for_SOCKS4_connect.
mov rcx, rsi
mov r8, r14
call fcn.1400b8d80
mov eax, 6
jmp 0x1400f7d30
mov rax, qword [rbx + 0x20]
mov cl, byte [rax + 4]
mov byte [rdi + 0x10], cl
mov cl, byte [rax + 5]
mov byte [rdi + 0x11], cl
mov cl, byte [rax + 6]
mov byte [rdi + 0x12], cl
mov al, byte [rax + 7]
mov byte [rdi + 0x13], al
lea rdx, str.SOCKS4_connect_to_IPv4__s__locally_resolved__n
lea r8, [rsp + 0x60]
mov rcx, rsi
call fcn.1400b8a80
mov rdx, qword [rsp + 0x58]
mov rcx, rsi
call fcn.1400d0f10
jmp case.0x1400f7ae0.8
mov ecx, 0x38
call fcn.1400d2900
lea rdx, str.SOCKS4:_Failed_receiving_connect_request_ack:__s
mov rcx, rsi
mov r8, rax
call fcn.1400b8d80
jmp 0x1400f7d2b
mov r8d, dword [rdi + 0x268]
mov rdx, qword [rdi + 0x270]
mov r14, qword [rsp + 0x50]
mov rcx, r14
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x1400f7cf3
cdqe
mov rcx, qword [rdi + 0x268]
sub rcx, rax
je 0x1400f7d04
mov qword [rdi + 0x268], rcx
add qword [rdi + 0x270], rax
xor eax, eax
jmp 0x1400f7d30
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400f7c91
xor eax, eax
jmp 0x1400f7cd5
cmp dword [rdi + 8], 0x11
je case.0x1400f7ae0.1
mov dword [rdi + 8], 0x11
cmp byte [r12], 0
je 0x1400f7f8e
lea rdx, str.SOCKS4_reply_has_wrong_version__version_should_be_0.
mov rcx, rsi
call fcn.1400b8d80
mov eax, 7
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x1400f7d4a
call fcn.14019f290
int3
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rdi + 8], 1
mov dword [rdi + 0x6a8], 1
cmp byte [rdi + 0x65a], 1
jne 0x1400f7da3
cmp ebp, 6
lea rax, [0x14027ac56]
lea r8, [0x14027ab32]
cmove r8, rax
mov dword [rsp + 0x20], ebx
lea rdx, str.SOCKS4_s:_connecting_to_HTTP_proxy__s_port__d_n
mov rcx, rsi
mov r9, r14
call fcn.1400b8a80
lea rdx, str.SOCKS4_communication_to__s:_d_n
mov rcx, rsi
mov r8, r14
mov r9d, ebx
call fcn.1400b8a80
mov word [rdi + 0xc], 0x104
mov byte [rdi + 0xe], bh
mov byte [rdi + 0xf], bl
cmp ebp, 6
jne 0x1400f7e14
cmp dword [rdi + 8], 9
je case.0x1400f7ae0.8
mov dword [rdi + 8], 9
mov rbx, r12
lea r12, [rdi + 0x14]
mov byte [rdi + 0x14], 0
test r15, r15
je 0x1400f7e95
mov rcx, r15
call fcn.1401c0bd0
cmp rax, 0x24f
jbe 0x1400f7e84
lea rdx, str.Too_long_SOCKS_proxy_name__cant_use__n
jmp 0x1400f7d23
mov eax, 5
jmp 0x1400f7d30
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, r14
mov r8d, ebx
xor r9d, r9d
call fcn.1400d0b20
cmp eax, 0xffffffff
je 0x1400f7e0a
cmp eax, 1
je 0x1400f7e48
cmp dword [rdi + 8], 0xb
jne 0x1400f7ba3
jmp case.0x1400f7ae0.10
cmp dword [rdi + 8], 0xa
je 0x1400f7e55
mov dword [rdi + 8], 0xa
lea rdx, str.SOCKS4_non_blocking_resolve_of__s_n
mov rcx, rsi
mov r8, r14
call fcn.1400b8a80
jmp 0x1400f7cef
mov r15, qword [rdi + 0x268]
mov r8, qword [rdi + 0x270]
mov r14, qword [rsp + 0x50]
jmp 0x1400f7f13
inc rax
mov rcx, r12
mov rdx, r15
mov r8, rax
call fcn.1401d8080
mov rcx, r12
call fcn.1401c0bd0
lea r15, [rax + 9]
cmp ebp, 6
jne 0x1400f7eed
mov r12, rax
mov dword [rdi + 0x10], 0x1000000
mov rcx, r14
call fcn.1401c0bd0
cmp rax, 0xfe
jle 0x1400f7ecc
lea rdx, str.SOCKS4:_too_long_host_name
jmp 0x1400f7d23
mov r13, rax
add r15, rbx
mov rcx, r15
mov rdx, r14
call fcn.1401c0470
lea r15, [r12 + r13]
add r15, 0xa
mov r13, qword [rsp + 0x118]
mov r12, rbx
mov qword [rdi + 0x270], rbx
mov qword [rdi + 0x268], r15
cmp dword [rdi + 8], 0xe
mov r14, qword [rsp + 0x50]
je 0x1400f7f10
mov dword [rdi + 8], reloc.WLDAP32.dll_Ordinal_14
mov r8, r12
lea rbx, [rsp + 0x60]
mov dword [rbx], 0xaaaaaaaa
xor edx, edx
cmp r14, qword [rdi + 0x4c8]
sete dl
mov qword [rsp + 0x20], rbx
mov rcx, rdi
mov r9, r15
call fcn.1400b9150
mov ecx, dword [rbx]
test ecx, ecx
je 0x1400f7f51
cmp ecx, 0x51
je 0x1400f7f51
lea rdx, str.Failed_to_send_SOCKS4_connect_request.
jmp 0x1400f7d23
mov rcx, qword [rdi + 0x268]
sub rcx, rax
jne 0x1400f7ce1
mov qword [rdi + 0x268], 8
mov qword [rdi + 0x270], r12
mov r8d, 8
cmp dword [rdi + 8], 4
je 0x1400f7f86
mov dword [rdi + 8], 4
mov rdx, r12
jmp 0x1400f7cc2
movzx eax, byte [rdi + 0xd]
lea ecx, [rax - 0x5a]
cmp ecx, 3
ja case.default.0x1400f7fac
lea rax, [0x14029ec68]
movsxd rcx, dword [rax + rcx*4]
add rcx, rax
jmp rcx
cmp ebp, 6
lea rax, [0x14027ac56]
lea r8, [0x14027ab32]
cmove r8, rax
lea rdx, str.SOCKS4_s_request_granted._n
mov rcx, rsi
call fcn.1400b8a80
mov byte [r13], 1
jmp 0x1400f7cef
movzx eax, word [rdi + 0xe]
rol ax, 8
movzx eax, ax
movzx ecx, byte [rdi + 0x13]
movzx edx, byte [rdi + 0x12]
movzx r9d, byte [rdi + 0x11]
movzx r8d, byte [rdi + 0x10]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov dword [rsp + 0x38], 0x5b
lea rdx, str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___request_rejected_or_failed.
jmp 0x1400f8088
movzx eax, word [rdi + 0xe]
rol ax, 8
movzx eax, ax
movzx ecx, byte [rdi + 0x13]
movzx edx, byte [rdi + 0x12]
movzx r9d, byte [rdi + 0x11]
movzx r8d, byte [rdi + 0x10]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov dword [rsp + 0x38], 0x5d
lea rdx, str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___request_rejected_because_the_client_program_and_identd_report_different_user_ids.
jmp 0x1400f8088
movzx eax, word [rdi + 0xe]
rol ax, 8
movzx eax, ax
movzx ecx, byte [rdi + 0x13]
movzx edx, byte [rdi + 0x12]
movzx r9d, byte [rdi + 0x11]
movzx r8d, byte [rdi + 0x10]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
mov dword [rsp + 0x38], 0x5c
lea rdx, str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___request_rejected_because_SOCKS_server_cannot_connect_to_identd_on_the_client.
mov rcx, rsi
call fcn.1400b8d80
jmp 0x1400f7d2b
movzx ecx, word [rdi + 0xe]
rol cx, 8
movzx ecx, cx
movzx edx, byte [rdi + 0x13]
movzx r10d, byte [rdi + 0x12]
movzx r9d, byte [rdi + 0x11]
movzx r8d, byte [rdi + 0x10]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], r10d
lea rdx, str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___Unknown.
jmp 0x1400f8088
mov rcx, qword [rsi + 0x10]
mov rax, qword [rcx]
cmp byte [rax + 0xf38], 1
je 0x1400f80e9
lea rdx, [rsp + 0x58]
call fcn.1400b7990
jmp 0x1400f80f3
lea rdx, [rsp + 0x58]
call fcn.1400fd770
mov r12, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400f7d30
movaps xmm0, xmmword [0x140275a70]
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
jmp 0x1400f7bd5