Function at 0x140132a90
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140232230]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r12, qword [rbp + 0x120]
mov eax, dword [rbp + 0x128]
xor r13d, r13d
mov r14, qword [r12]
mov dword [rsp + 0x40], eax
mov rbx, rcx
movsxd rax, r9d
mov esi, r8d
mov r8d, dword [r14 + 0x270]
mov rax, qword [r12 + rax*8 + 0x188]
test r8d, r8d
mov r15, rdx
mov edx, dword [r14 + 0x274]
mov qword [rsp + 0x48], rax
mov ecx, r13d
mov eax, 1
mov edi, 0x493e0
cmovg ecx, eax
test edx, edx
jle 0x140132b19
or ecx, 2
dec ecx
je 0x140132b34
dec ecx
je 0x140132b30
dec ecx
jne 0x140132b37
mov edi, edx
cmp r8d, edx
cmovl edi, r8d
jmp 0x140132b37
mov edi, edx
jmp 0x140132b37
mov edi, r8d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
mov eax, 0x10624dd3
mov r9d, edx
shr r9d, 6
mov ecx, r9d
mov dword [rsp + 0x50], r9d
imul ecx, ecx, 0x3e8
sub r8d, ecx
mov rcx, qword [r14 + 0x6b8]
mov rdx, rcx
sub ecx, r9d
imul r8d, r8d, 0x3e8
shr rdx, 0x20
mov dword [rsp + 0x54], r8d
mov r8, qword [rsp + 0x50]
imul ecx, ecx, 0x3e8
shr r8, 0x20
sub r8d, edx
imul r8d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
sub ecx, edx
add edi, ecx
test edi, edi
jg 0x140132bc2
lea rdx, str.Connection_time_out
mov rcx, r14
call fcn.140125b60
mov eax, 0x1c
jmp 0x140132e44
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x50]
mov edx, 0x8004667e
mov dword [rsp + 0x50], r13d
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rsp + 0x40]
mov eax, esi
mov word [rsp + 0x60], 0x104
mov byte [rsp + 0x63], sil
sar eax, 8
mov byte [rsp + 0x62], al
test r8d, r8d
jne 0x140132cf7
lea r9, [rsp + 0x50]
mov r8d, esi
mov rdx, r15
mov rcx, r12
call fcn.140124f30
cmp eax, 0xffffffff
jne 0x140132c21
mov eax, 5
jmp 0x140132e44
cmp eax, 1
jne 0x140132c33
lea rdx, [rsp + 0x50]
mov rcx, r12
call fcn.140125660
mov rsi, qword [rsp + 0x50]
test rsi, rsi
je 0x140132cd6
mov rdi, qword [rsi]
test rdi, rdi
je 0x140132cd6
cmp dword [rdi + 4], 2
jne 0x140132c6a
mov rcx, qword [rdi + 0x20]
lea rdx, [rbp + 0x70]
mov r8d, 0x40
add rcx, 4
call fcn.14013eba0
lea rax, [rsp + 0x56]
lea r9, [rsp + 0x52]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x54]
lea rdx, str._hu._hu._hu._hu
lea rcx, [rbp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.14016743c
cmp eax, 4
jne 0x140132cc3
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x64], al
movzx eax, byte [rsp + 0x52]
mov byte [rsp + 0x65], al
movzx eax, byte [rsp + 0x54]
mov byte [rsp + 0x66], al
movzx eax, byte [rsp + 0x56]
mov byte [rsp + 0x67], al
jmp 0x140132cc6
mov rdi, r13
mov rdx, rsi
mov rcx, r14
call fcn.140125110
test rdi, rdi
jne 0x140132cf2
lea rdx, str.Failed_to_resolve___s__for_SOCKS4_connect.
mov r8, r15
mov rcx, r14
call fcn.140125b60
mov eax, 6
jmp 0x140132e44
mov r8d, dword [rsp + 0x40]
mov byte [rsp + 0x68], r13b
test rbx, rbx
je 0x140132d4d
lea rcx, [rsp + 0x68]
mov eax, 0xfe
nop dword [rax + rax]
dec rax
cmp byte [rcx], r13b
je 0x140132d20
inc rcx
test rax, rax
jne 0x140132d10
lea rdx, [rbp + 0x66]
sub rdx, rcx
je 0x140132d4d
cmp byte [rbx], r13b
je 0x140132d4a
nop
cmp rdx, 1
je 0x140132d42
movzx eax, byte [rbx]
inc rcx
dec rdx
mov byte [rcx - 1], al
inc rbx
cmp byte [rbx], r13b
jne 0x140132d30
mov byte [rcx], r13b
or rdi, 0xffffffffffffffff
mov rbx, r13
lea rax, [rsp + 0x68]
mov rsi, rdi
nop dword [rax]
inc rsi
cmp byte [rax + rsi], bl
jne 0x140132d60
add esi, 9
test r8d, r8d
je 0x140132dc4
mov dword [rsp + 0x64], 0x1000000
mov rbx, rdi
nop dword [rax + rax]
inc rbx
cmp byte [r15 + rbx], r13b
jne 0x140132d80
inc rbx
movsxd rdx, esi
lea rax, [rdx + rbx]
cmp rax, 0x106
jg 0x140132dc1
sub rdx, r15
mov rcx, r15
lea rdx, [rsp + rdx + 0x60]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx + rcx - 1], al
test al, al
jne 0x140132db0
jmp 0x140132dc4
mov rbx, r13
mov rcx, qword [rsp + 0x48]
mov rax, r13
lea r8d, [rbx + rsi]
cmp rcx, qword [r12 + 0x190]
lea rdx, [rsp + 0x60]
sete al
xor r9d, r9d
mov rcx, qword [r12 + rax*8 + 0x188]
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x140132e6e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
je 0x140132e30
mov edx, eax
mov rcx, r12
call fcn.14013f050
mov rcx, qword [r12]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140125b60
mov rcx, qword [r12]
mov dword [rcx + 0x87ac], ebx
lea rdx, str.Failed_to_send_SOCKS4_connect_request.
mov rcx, r14
call fcn.140125b60
mov eax, 7
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.140166980
mov rbx, qword [rsp + 0x200]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movsxd rax, esi
add rax, rbx
cmp rcx, rax
jne 0x140132e30
mov esi, dword [rsp + 0x40]
test esi, esi
je 0x140132ed2
test rbx, rbx
jne 0x140132ed2
inc rdi
cmp byte [r15 + rdi], r13b
jne 0x140132e86
mov rax, qword [rsp + 0x48]
inc rdi
mov r8, r15
cmp rax, qword [r12 + 0x190]
lea rax, [rsp + 0x50]
mov r9, rdi
sete r13b
mov rcx, r12
mov qword [rsp + 0x20], rax
mov edx, r13d
call fcn.140125d80
cmp dword [rsp + 0x50], 0
jne 0x140132e30
cmp rax, rdi
jne 0x140132e30
mov rdi, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
lea r8, [rsp + 0x60]
mov r9d, 8
mov rcx, r12
mov rdx, rdi
mov qword [rsp + 0x20], rax
call fcn.1401327e0
test eax, eax
jne 0x140133050
cmp qword [rsp + 0x50], 8
jne 0x140133050
cmp byte [rsp + 0x60], al
je 0x140132f1d
lea rdx, str.SOCKS4_reply_has_wrong_version__version_should_be_4.
jmp 0x140132e37
movzx r10d, byte [rsp + 0x61]
mov ecx, r10d
sub ecx, 0x5a
je 0x14013300b
movzx eax, byte [rsp + 0x69]
movzx edx, byte [rsp + 0x68]
movzx r9d, byte [rsp + 0x65]
movzx r8d, byte [rsp + 0x64]
shl edx, 8
or edx, eax
movzx eax, byte [rsp + 0x67]
dec ecx
je 0x140132fde
dec ecx
je 0x140132fb1
dec ecx
movzx ecx, byte [rsp + 0x66]
je 0x140132f89
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___Unknown.
mov rcx, r14
call fcn.140125b60
jmp 0x140132e3f
mov dword [rsp + 0x38], 0x5d
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
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.
mov rcx, r14
call fcn.140125b60
jmp 0x140132e3f
movzx ecx, byte [rsp + 0x66]
mov dword [rsp + 0x38], 0x5c
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
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, r14
call fcn.140125b60
jmp 0x140132e3f
movzx ecx, byte [rsp + 0x66]
mov dword [rsp + 0x38], 0x5b
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str.Cant_complete_SOCKS4_connection_to__d._d._d._d:_d.___d___request_rejected_or_failed.
mov rcx, r14
call fcn.140125b60
jmp 0x140132e3f
lea rax, [0x1401e7538]
lea r8, [0x1401b68a0]
test esi, esi
lea rdx, str.SOCKS4_s_request_granted._n
mov rcx, r14
cmovne r8, rax
call fcn.140125a80
lea r8, [rsp + 0x50]
mov edx, 0x8004667e
mov rcx, rdi
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
jmp 0x140132e44
lea rdx, str.Failed_to_receive_SOCKS4_connect_request_ack.
jmp 0x140132e37