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

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x184]
xor ebx, ebx
mov dword [edi + 0x30], ebx
cmp dword [eax + 0x154], 4
jne 0x54d560
mov eax, dword [edi + 0xb4]
push ebp
mov dword [esp + 0x14], ebx
cmp eax, ebx
je 0x54d3e7
mov ebp, dword [eax]
mov dword [esp + 0x10], ebp
jmp 0x54d3f5
mov eax, dword [edi + 0xb0]
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov ebp, ecx
cmp dword [esp + 0x20], ebx
je 0x54d408
mov edx, dword [esp + 0x24]
mov dword [edi + 0x40], ebx
mov dword [esp + 0x14], edx
jmp 0x54d419
push ebx
lea eax, [esp + 0x18]
push eax
push ebp
mov ecx, edi
call fcn.0054ce70
mov dword [edi + 0x40], eax
mov eax, ebp
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x54d420
sub eax, edx
add eax, 0xa
push eax
call fcn.005cfaa6
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x54d44a
pop ebp
pop edi
pop esi
mov eax, 0x753b
pop ebx
add esp, 8
ret 0x14
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x54d450
sub eax, edx
add eax, 0xa
push eax
push ebx
push esi
call fcn.005f8cb0
add esp, 0xc
cmp dword [esp + 0x2c], ebx
mov ebp, 9
setne cl
inc cl
mov byte [esi], 4
mov byte [esi + 1], cl
cmp dword [esp + 0x20], ebx
je 0x54d488
movzx eax, word [esp + 0x28]
jmp 0x54d4a9
mov eax, dword [edi + 0xb4]
cmp eax, ebx
je 0x54d497
mov eax, dword [eax + 0xc]
jmp 0x54d4a0
mov edx, dword [edi + 0xb0]
mov eax, dword [edx + 0x14]
push eax
call sub.WS2_32.dll_htons
movzx eax, ax
mov word [esi + 2], ax
cmp dword [edi + 0x40], ebx
je 0x54d4ee
mov ebp, dword [esp + 0x10]
lea edx, [esi + 9]
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov byte [esi + 6], bl
mov byte [esi + 7], 1
mov eax, ebp
sub edx, ebp
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x54d4d0
mov eax, ebp
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x54d4e0
sub eax, edx
lea ebp, [eax + 0xa]
jmp 0x54d4f5
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x1c]
push str.sending_socks_CONNECT
push ebx
push ebp
push esi
push ecx
call sub.WS2_32.dll_send
push eax
mov ecx, edi
call fcn.0054cd80
push str.socks4:_sending_connect_n
mov ecx, edi
mov ebp, eax
call fcn.0054c540
push esi
call fcn.005cfa9b
add esp, 4
cmp ebp, 0x2733
jne 0x54d546
xor ebp, ebp
mov eax, ebp
pop ebp
mov dword [edi + 0x8c], 0x1d
pop edi
pop esi
pop ebx
add esp, 8
ret 0x14
cmp ebp, ebx
jne 0x54d554
mov dword [edi + 0x8c], 0x1d
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0x14
mov dword [esp + 0x24], ebx
mov byte [esp + 0x24], 5
cmp byte [eax + 0x15d], bl
push str.sending_socks_INIT
setne dl
inc dl
mov byte [esp + 0x29], dl
mov cl, byte [eax + 0x15d]
neg cl
sbb cl, cl
and cl, 2
xor edx, edx
mov byte [esp + 0x2a], cl
cmp byte [eax + 0x15d], bl
mov ecx, dword [esp + 0x1c]
setne dl
push ebx
add edx, 3
mov eax, edx
push eax
lea eax, [esp + 0x30]
push eax
push ecx
call sub.WS2_32.dll_send
push eax
mov ecx, edi
call fcn.0054cd80
push str.socks5:_sending_init_n
mov ecx, edi
mov esi, eax
call fcn.0054c540
cmp esi, ebx
je 0x54d5d1
cmp esi, 0x2733
jne 0x54d5db
mov dword [edi + 0x8c], 0x1e
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret 0x14