Function at 0x55d180
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x658470
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x24], esi
xor ebx, ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
cmp dword [esi + 0x4c], ebx
je 0x55d1ed
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x4c]
push eax
call fcn.005ec337
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x55d1ea
mov dword [esi + 0x4c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x11], 0
mov eax, dword [esi + 0x194]
cmp dword [eax + 0x158], ebx
je 0x55d215
mov dword [eax + 0x150], 2
push str.send_socks5_CONNECT__test__v6.30b7.10_r_n
mov ecx, esi
call fcn.0055b6c0
mov ecx, dword [esi + 0xc4]
cmp ecx, ebx
je 0x55d232
mov edi, dword [ecx]
mov dword [ebp - 0x20], edi
jmp 0x55d23f
mov eax, dword [esi + 0xc0]
mov edx, dword [eax]
mov dword [ebp - 0x20], edx
mov edi, edx
cmp dword [ebp + 0xc], ebx
je 0x55d252
mov dword [esi + 0x50], ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
jmp 0x55d47f
mov edx, dword [esi + 0x194]
cmp dword [edx + 0x150], 2
je 0x55d47f
mov eax, dword [esi + 0xc0]
cmp byte [eax + 0x17b], 0
je 0x55d372
cmp byte [eax + 0x1a4], 0
jne 0x55d372
cmp ecx, ebx
je 0x55d28e
mov eax, dword [ecx + 0xc]
jmp 0x55d291
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x28]
push ecx
push eax
push edi
call fcn.0055c3d0
add esp, 0x14
mov dword [esi + 0x50], eax
cmp eax, ebx
je 0x55d35d
lea ecx, [ebp + 0x10]
call fcn.00402500
mov dword [ebp - 4], 2
mov edx, dword [esi + 0x50]
push edx
push str.Error_code___ld_r_nChecking_IPV4_address_r_n
lea eax, [ebp + 0x10]
push eax
call fcn.00402f70
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.0055b6c0
push ebx
lea edx, [ebp - 0x18]
push edx
push edi
mov ecx, esi
call fcn.0055c0e0
mov dword [esi + 0x50], eax
cmp eax, ebx
je 0x55d33c
push edi
mov eax, dword [0x7559d4]
push eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.00402f70
add esp, 0xc
push 1
mov edx, dword [ebp + 0x10]
push edx
mov ecx, esi
call fcn.0055bf00
mov ecx, dword [esi + 0xac]
cmp ecx, ebx
je 0x55d349
mov eax, dword [ebp + 0x10]
push eax
call fcn.005646e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00402570
jmp 0x55d47f
mov ecx, dword [esi + 0xc0]
mov byte [ecx + 0x17b], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00402570
jmp 0x55d47f
push str.IPV6_address_found_r_n
mov ecx, esi
call fcn.0055b6c0
mov byte [ebp - 0x11], 1
jmp 0x55d472
push ebx
lea edx, [ebp - 0x18]
push edx
push edi
mov ecx, esi
call fcn.0055c0e0
mov dword [esi + 0x50], eax
cmp eax, ebx
je 0x55d47f
lea ecx, [ebp + 0x10]
call fcn.00402500
mov dword [ebp - 4], 3
push edi
mov eax, dword [0x7559d4]
push eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.00402f70
add esp, 0xc
push 1
mov edx, dword [ebp + 0x10]
push edx
mov ecx, esi
call fcn.0055bf00
mov ecx, dword [esi + 0xac]
cmp ecx, ebx
je 0x55d3cc
mov eax, dword [ebp + 0x10]
push eax
call fcn.005646e0
mov ecx, dword [esi + 0x50]
push ecx
push str.Error_code___ld_r_nChecking_IPV6_address_r_n
lea edx, [ebp + 0x10]
push edx
call fcn.00402f70
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, esi
call fcn.0055b6c0
mov eax, dword [esi + 0xc4]
cmp eax, ebx
je 0x55d3fb
mov eax, dword [eax + 0xc]
jmp 0x55d404
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx + 0x14]
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x28]
push edx
push eax
push edi
call fcn.0055c3d0
add esp, 0x14
mov dword [esi + 0x50], eax
cmp eax, ebx
je 0x55d440
push eax
push str.Error_checking_IPV6_address__ld_r_n
lea eax, [ebp + 0x10]
push eax
call fcn.00402f70
add esp, 0xc
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.0055b6c0
jmp 0x55d45d
push str.IPV6_address_found_r_n
mov ecx, esi
call fcn.0055b6c0
mov edx, dword [esi + 0xc0]
mov byte [edx + 0x17b], 1
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00402570
cmp byte [ebp - 0x11], 0
je 0x55d47f
mov eax, dword [esi + 0xc0]
mov byte [eax + 0x17c], 1
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x55d484
sub eax, edx
mov dword [ebp + 0x10], eax
lea ebx, [eax + 0x20]
push ebx
call fcn.005ec342
add esp, 4
mov edi, eax
test edi, edi
jne 0x55d4bb
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push ebx
push 0
push edi
call fcn.00618760
add esp, 0xc
mov ebx, 4
mov byte [edi], 5
cmp dword [ebp + 0x18], 0
setne cl
inc cl
mov byte [edi + 1], cl
mov byte [edi + 2], 0
cmp dword [esi + 0x50], 0
jne 0x55d4f4
mov edx, dword [esi + 0x194]
cmp dword [edx + 0x150], 2
jne 0x55d4fa
cmp dword [ebp + 0xc], 0
je 0x55d569
mov cl, byte [ebp - 0x11]
mov al, cl
neg al
sbb al, al
and al, 3
inc al
mov byte [edi + 3], al
mov eax, dword [esi + 0x194]
cmp dword [eax + 0x158], 0
jne 0x55d523
mov dword [eax + 0x150], 1
test cl, cl
mov ecx, esi
je 0x55d552
push str.socks5_connect_IPV6_r_n
call fcn.0055b6c0
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov dl, byte [ecx + eax + 8]
mov byte [ebx + edi], dl
inc ebx
inc eax
cmp eax, 0x10
jl 0x55d535
cmp dword [ebp + 0xc], 0
je 0x55d5a4
movzx eax, word [ebp + 0x14]
jmp 0x55d5c5
push str.socks5_connect_IPV4_r_n
call fcn.0055b6c0
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], eax
mov ebx, 8
jmp 0x55d546
mov byte [edi + 3], 3
push str.socks5_connect_name_r_n
mov ecx, esi
call fcn.0055b6c0
mov ecx, dword [esi + 0x194]
mov dword [ecx + 0x150], 2
mov ebx, dword [ebp + 0x10]
mov byte [edi + 4], bl
mov eax, dword [ebp - 0x20]
lea edx, [edi + 5]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x55d597
add ebx, 5
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x55d5b3
mov eax, dword [eax + 0xc]
jmp 0x55d5bc
mov edx, dword [esi + 0xc0]
mov eax, dword [edx + 0x14]
push eax
call sub.WS2_32.dll_htons
movzx eax, ax
mov word [ebx + edi], ax
push str.sending_socks5_CONNECT
push 0
add ebx, 2
push ebx
push edi
mov eax, dword [ebp + 8]
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, esi
call fcn.0055bff0
mov ebx, eax
push str.socks5:_sending_connect_n
mov ecx, esi
call fcn.0055b6c0
push edi
call fcn.005ec337
add esp, 4
cmp ebx, 0x2733
jne 0x55d609
xor ebx, ebx
jmp 0x55d60d
test ebx, ebx
jne 0x55d617
mov dword [esi + 0x9c], 0x20
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14