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

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebx, ecx
push esi
push edi
xor edi, edi
mov eax, dword [ebx + 0x184]
mov dword [ebx + 0x30], edi
cmp dword [eax + 0x154], 4
jne 0x54bf6a
mov eax, dword [ebx + 0xb4]
mov dword [esp + 0x14], edi
cmp eax, edi
je 0x54bde7
mov esi, dword [eax]
mov dword [esp + 0x10], esi
jmp 0x54bdf5
mov eax, dword [ebx + 0xb0]
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov esi, ecx
cmp dword [esp + 0x20], edi
je 0x54be08
mov edx, dword [esp + 0x24]
mov dword [ebx + 0x40], edi
mov dword [esp + 0x14], edx
jmp 0x54be19
lea eax, [esp + 0x14]
push edi
push eax
push esi
mov ecx, ebx
call fcn.0054b290
mov dword [ebx + 0x40], eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 9
push ecx
call fcn.005fdccd
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x54be45
pop edi
pop esi
pop ebp
mov eax, 0x753b
pop ebx
add esp, 8
ret 0x14
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 9
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x2c]
and ecx, 3
test edx, edx
rep stosb byte es:[edi], al
setne al
inc eax
mov edi, 9
mov byte [ebp + 1], al
mov eax, dword [esp + 0x20]
test eax, eax
mov byte [ebp], 4
je 0x54be87
mov eax, dword [esp + 0x28]
jmp 0x54bea5
mov eax, dword [ebx + 0xb4]
test eax, eax
je 0x54be96
mov eax, dword [eax + 0xc]
jmp 0x54be9f
mov ecx, dword [ebx + 0xb0]
mov eax, dword [ecx + 0x14]
push eax
call sub.WS2_32.dll_htons
mov word [ebp + 2], ax
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x54bef7
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp + 4], 0
mov byte [ebp + 5], 0
mov byte [ebp + 6], 0
mov byte [ebp + 7], 1
lea edx, [ebp + 9]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
add edi, 0xa
jmp 0x54befe
mov ecx, dword [esp + 0x14]
mov dword [ebp + 4], ecx
mov edx, dword [esp + 0x1c]
push str.sending_socks_CONNECT
push 0
push edi
push ebp
push edx
call sub.WS2_32.dll_send
push eax
mov ecx, ebx
call fcn.0054b1b0
push str.socks4:_sending_connect_n
mov ecx, ebx
mov edi, eax
call fcn.0054b0f0
push ebp
call fcn.005fdcf6
add esp, 4
cmp edi, 0x2733
jne 0x54bf50
xor edi, edi
mov dword [ebx + 0x8c], 0x1d
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
test edi, edi
jne 0x54bf5e
mov dword [ebx + 0x8c], 0x1d
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14
mov dword [esp + 0x20], edi
mov byte [esp + 0x20], 5
mov cl, byte [eax + 0x15d]
push str.sending_socks_INIT
test cl, cl
setne cl
inc ecx
push edi
mov byte [esp + 0x29], cl
mov dl, byte [eax + 0x15d]
neg dl
sbb dl, dl
xor ecx, ecx
and edx, 2
mov byte [esp + 0x2a], dl
mov dl, byte [eax + 0x15d]
test dl, dl
setne cl
add ecx, 3
lea edx, [esp + 0x28]
mov eax, ecx
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call sub.WS2_32.dll_send
push eax
mov ecx, ebx
call fcn.0054b1b0
push str.socks5:_sending_init_n
mov ecx, ebx
mov esi, eax
call fcn.0054b0f0
cmp esi, edi
je 0x54bfde
cmp esi, 0x2733
jne 0x54bfe8
mov dword [ebx + 0x8c], 0x1e
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0x14