Function at 0x54d6d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x62a338
push eax
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, ecx
mov ebx, 5
push edi
mov eax, dword [esi + 0x30]
cmp eax, ebx
jge 0x54d76e
mov ecx, ebx
push 0
sub ecx, eax
lea edx, [eax + esi + 0x28]
push ecx
push edx
push ebp
call sub.WS2_32.dll_recv
mov edi, eax
push str.recv_socks5_connect_reply
push edi
mov ecx, esi
call fcn.0054c5b0
test eax, eax
jne 0x54d9b5
mov ecx, dword [esi + 0x30]
add ecx, edi
mov eax, ecx
mov dword [esi + 0x30], ecx
cmp eax, ebx
jge 0x54d73c
mov eax, 0x2733
jmp 0x54d9b5
cmp byte [esi + 0x2b], 1
jne 0x54d747
mov dword [esi + 0x38], ebx
jmp 0x54d751
movsx eax, byte [esi + 0x2c]
add eax, 2
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x38]
push ecx
call fcn.005feedc
add esp, 4
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x54d76e
mov eax, 0x753b
jmp 0x54d9b5
mov al, byte [esi + 0x29]
test al, al
jne 0x54d852
cmp byte [esi + 0x28], bl
jne 0x54d852
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x38]
sub edx, eax
push 0
push edx
mov edx, dword [esi + 0x3c]
add eax, edx
push eax
push ebp
call sub.WS2_32.dll_recv
mov edi, eax
push str.recv_socks5_connect_reply
push edi
mov ecx, esi
call fcn.0054c5b0
test eax, eax
jne 0x54d9b5
mov edx, dword [esi + 0x34]
mov ecx, dword [esi + 0x38]
add edx, edi
mov eax, edx
mov dword [esi + 0x34], edx
cmp eax, ecx
jge 0x54d7cb
mov eax, 0x2733
jmp 0x54d9b5
push str.socks5:_connect_reply_OK_n
mov ecx, esi
call fcn.0054c4f0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x54d83e
mov edi, dword [esp + 0x28]
mov al, byte [esi + 0x2c]
mov byte [edi], al
mov edx, dword [esi + 0x3c]
lea ecx, [edi + 1]
mov ax, word [edx]
mov word [ecx], ax
mov dl, byte [edx + 2]
mov byte [ecx + 2], dl
mov eax, dword [edi]
test eax, eax
jne 0x54d829
mov eax, dword [esi + 0x184]
lea ecx, [esp + 0x24]
push 1
push ecx
mov eax, dword [eax + 0x140]
mov ecx, esi
push eax
call fcn.0054c690
test eax, eax
jne 0x54d9b5
mov edx, dword [esp + 0x24]
mov dword [edi], edx
mov eax, dword [esi + 0x3c]
mov edx, dword [esp + 0x2c]
mov cx, word [eax + 3]
xor eax, eax
mov word [edx], cx
jmp 0x54d9b5
mov eax, dword [esi + 0x184]
mov byte [eax + 0x160], 1
xor eax, eax
jmp 0x54d9b5
mov ecx, dword [0x6cc708]
mov dword [esp + 0x20], ecx
mov eax, dword [esi + 0xb4]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], edi
je 0x54d870
mov eax, dword [eax]
jmp 0x54d878
mov edx, dword [esi + 0xb0]
mov eax, dword [edx]
cmp dword [esi + 0x40], edi
je 0x54d8f6
cmp byte [esi + 0x28], bl
jne 0x54d8f6
push eax
mov eax, dword [0x6d265c]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.005fb90b
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov ecx, esi
push 1
push edx
call fcn.0054c420
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0x9c]
push eax
call fcn.00554c40
movsx ecx, byte [esi + 0x29]
mov edx, dword [esi + 0x40]
push ecx
push edx
lea eax, [esp + 0x28]
push str.Error_code___ld__socks_ret_code___d_n
push eax
call fcn.005fb90b
mov ecx, dword [esp + 0x30]
add esp, 0x10
push ecx
mov ecx, esi
call fcn.0054c4f0
mov esi, dword [esi + 0x40]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.00602ad6
mov eax, esi
jmp 0x54d9b5
mov edx, dword [0x6d1a7c]
push eax
lea eax, [esp + 0x24]
push edx
push eax
call fcn.005fb90b
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push 1
push ecx
mov ecx, esi
call fcn.0054c420
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x9c]
push edx
call fcn.00554c40
movsx eax, byte [esi + 0x29]
push eax
lea ecx, [esp + 0x24]
push str.Error_code___d_n
push ecx
call fcn.005fb90b
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov ecx, esi
push edx
call fcn.0054c4f0
cmp dword [esp + 0x24], edi
jne 0x54d99f
mov eax, dword [esi + 0x184]
mov cl, byte [eax + 0x160]
test cl, cl
jne 0x54d99f
mov ecx, dword [eax + 0x150]
cmp ecx, 1
jne 0x54d994
cmp byte [esi + 0x28], bl
jne 0x54d994
lea ecx, [esp + 0x20]
mov dword [eax + 0x150], 2
mov dword [esp + 0x18], 0xffffffff
call fcn.00602ad6
mov eax, 0x7585
jmp 0x54d9b5
cmp ecx, 2
jne 0x54d99f
mov dword [eax + 0x150], edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.00602ad6
mov eax, 0x755d
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x10