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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62aa20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov eax, dword [ebx + 0x3c]
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], ebx
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x34], esi
mov dword [ebx + 0x38], esi
je 0x54c62b
push eax
mov dword [ebp - 4], esi
call fcn.005fdcf6
add esp, 4
jmp 0x54c621
mov dword [ebp - 4], 0xffffffff
mov dword [ebx + 0x3c], esi
mov eax, dword [ebx + 0x184]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], esi
mov ecx, dword [eax + 0x158]
cmp ecx, esi
mov byte [ebp - 0x11], 0
je 0x54c655
mov dword [eax + 0x150], 2
push str.send_socks5_CONNECT__test__v6.30b7.10_r_n
mov ecx, ebx
call fcn.0054b0f0
mov ecx, dword [ebx + 0xb4]
cmp ecx, esi
je 0x54c672
mov edi, dword [ecx]
mov dword [ebp - 0x24], edi
jmp 0x54c67f
mov eax, dword [ebx + 0xb0]
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
mov edi, edx
cmp dword [ebp + 0xc], esi
je 0x54c692
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x40], esi
mov dword [ebp - 0x1c], eax
jmp 0x54c8af
mov edx, dword [ebx + 0x184]
cmp dword [edx + 0x150], 2
je 0x54c8af
mov eax, dword [ebx + 0xb0]
mov dl, byte [eax + 0x16b]
test dl, dl
je 0x54c7a0
mov dl, byte [eax + 0x18d]
test dl, dl
jne 0x54c7a0
cmp ecx, esi
je 0x54c6d0
mov eax, dword [ecx + 0xc]
jmp 0x54c6d3
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x2c]
push edx
push ecx
push eax
push edi
call fcn.0054b610
add esp, 0x14
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x54c78b
mov edx, dword [0x6f175c]
mov dword [ebp - 0x18], edx
push eax
lea eax, [ebp - 0x18]
push str.Error_code___ld_r_nChecking_IPV4_address_r_n
push eax
mov dword [ebp - 4], 2
call fcn.005fa6fb
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.0054b0f0
lea edx, [ebp - 0x1c]
push esi
push edx
push edi
mov ecx, ebx
call fcn.0054b290
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x54c76a
mov eax, dword [0x6f76a4]
push edi
lea ecx, [ebp - 0x18]
push eax
push ecx
call fcn.005fa6fb
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push 1
push edx
call fcn.0054b020
mov ecx, dword [ebx + 0x9c]
cmp ecx, esi
je 0x54c777
mov eax, dword [ebp - 0x18]
push eax
call fcn.00553840
jmp 0x54c777
mov ecx, dword [ebx + 0xb0]
mov byte [ecx + 0x16b], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.006018cc
jmp 0x54c8af
push str.IPV6_address_found_r_n
mov ecx, ebx
call fcn.0054b0f0
mov byte [ebp - 0x11], 1
jmp 0x54c8a2
lea edx, [ebp - 0x1c]
push esi
push edx
push edi
mov ecx, ebx
call fcn.0054b290
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x54c8af
mov eax, dword [0x6f175c]
mov dword [ebp + 0x10], eax
mov ecx, dword [0x6f76a4]
push edi
lea edx, [ebp + 0x10]
push ecx
push edx
mov dword [ebp - 4], 3
call fcn.005fa6fb
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, ebx
push 1
push eax
call fcn.0054b020
mov ecx, dword [ebx + 0x9c]
cmp ecx, esi
je 0x54c7fb
mov edx, dword [ebp + 0x10]
push edx
call fcn.00553840
mov eax, dword [ebx + 0x40]
lea ecx, [ebp + 0x10]
push eax
push str.Error_code___ld_r_nChecking_IPV6_address_r_n
push ecx
call fcn.005fa6fb
mov edx, dword [ebp + 0x10]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.0054b0f0
mov eax, dword [ebx + 0xb4]
cmp eax, esi
je 0x54c82a
mov eax, dword [eax + 0xc]
jmp 0x54c833
mov eax, dword [ebx + 0xb0]
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x2c]
push edx
push ecx
push eax
push edi
call fcn.0054b610
add esp, 0x14
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x54c86f
push eax
lea edx, [ebp + 0x10]
push str.Error_checking_IPV6_address__ld_r_n
push edx
call fcn.005fa6fb
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.0054b0f0
jmp 0x54c88c
push str.IPV6_address_found_r_n
mov ecx, ebx
call fcn.0054b0f0
mov ecx, dword [ebx + 0xb0]
mov byte [ebp - 0x11], 1
mov byte [ecx + 0x16b], 1
lea ecx, [ebp + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.006018cc
mov al, byte [ebp - 0x11]
test al, al
je 0x54c8af
mov edx, dword [ebx + 0xb0]
mov byte [edx + 0x16c], 1
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0x18], ecx
lea edi, [ecx + 0x20]
push edi
call fcn.005fdccd
mov esi, eax
add esp, 4
test esi, esi
mov dword [ebp - 0x30], esi
jne 0x54c8e9
mov eax, 0x753b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [ebp + 0x18]
and ecx, 3
test edx, edx
rep stosb byte es:[edi], al
setne al
inc eax
mov byte [esi], 5
mov byte [esi + 1], al
mov byte [esi + 2], 0
mov eax, dword [ebx + 0x40]
mov edi, 4
test eax, eax
jne 0x54c92b
mov ecx, dword [ebx + 0x184]
cmp dword [ecx + 0x150], 2
jne 0x54c932
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x54c9aa
mov cl, byte [ebp - 0x11]
mov dl, cl
neg dl
sbb dl, dl
and dl, 3
inc dl
mov byte [esi + 3], dl
mov eax, dword [ebx + 0x184]
mov edx, dword [eax + 0x158]
test edx, edx
jne 0x54c95d
mov dword [eax + 0x150], 1
test cl, cl
je 0x54c991
push str.socks5_connect_IPV6_r_n
mov ecx, ebx
call fcn.0054b0f0
mov ecx, dword [ebp - 0x20]
xor eax, eax
add ecx, 8
mov dl, byte [ecx + eax]
mov byte [edi + esi], dl
inc edi
inc eax
cmp eax, 0x10
jl 0x54c975
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x54c9fd
mov eax, dword [ebp + 0x14]
jmp 0x54ca1b
push str.socks5_connect_IPV4_r_n
mov ecx, ebx
call fcn.0054b0f0
mov eax, dword [ebp - 0x1c]
mov edi, 8
mov dword [esi + 4], eax
jmp 0x54c982
push str.socks5_connect_name_r_n
mov ecx, ebx
mov byte [esi + 3], 3
call fcn.0054b0f0
mov ecx, dword [ebx + 0x184]
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
xor eax, eax
mov dword [ecx + 0x150], 2
mov byte [esi + 4], dl
or ecx, 0xffffffff
add esi, 5
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp + 0xc], esi
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x30]
lea edi, [edx + 5]
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x54ca0c
mov eax, dword [eax + 0xc]
jmp 0x54ca15
mov ecx, dword [ebx + 0xb0]
mov eax, dword [ecx + 0x14]
push eax
call sub.WS2_32.dll_htons
mov edx, dword [ebp + 8]
mov word [edi + esi], ax
push str.sending_socks5_CONNECT
add edi, 2
push 0
push edi
push esi
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, ebx
call fcn.0054b1b0
push str.socks5:_sending_connect_n
mov ecx, ebx
mov edi, eax
call fcn.0054b0f0
push esi
call fcn.005fdcf6
add esp, 4
cmp edi, 0x2733
jne 0x54ca5f
xor edi, edi
jmp 0x54ca63
test edi, edi
jne 0x54ca6d
mov dword [ebx + 0x8c], 0x20
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14