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

Disassembly:
push 0xffffffffffffffff
push 0x64ced8
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x74f8a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x40]
mov ebp, dword [esp + 0x24]
mov ebx, 5
cmp eax, ebx
jge 0x55cf33
push 0
mov ecx, ebx
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x38]
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.0055bff0
test eax, eax
jne 0x55d16a
add dword [esi + 0x40], edi
cmp dword [esi + 0x40], ebx
jge 0x55cf01
mov eax, 0x2733
jmp 0x55d16a
cmp byte [esi + 0x3b], 1
jne 0x55cf0c
mov dword [esi + 0x48], ebx
jmp 0x55cf16
movsx eax, byte [esi + 0x3c]
add eax, 2
mov dword [esi + 0x48], eax
mov ecx, dword [esi + 0x48]
push ecx
call fcn.005ec342
add esp, 4
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x55cf33
mov eax, 0x753b
jmp 0x55d16a
cmp byte [esi + 0x39], 0
jne 0x55d008
cmp byte [esi + 0x38], bl
jne 0x55d008
mov eax, dword [esi + 0x44]
mov edx, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
push 0
sub edx, eax
push edx
add ecx, eax
push ecx
push ebp
call sub.WS2_32.dll_recv
mov edi, eax
push str.recv_socks5_connect_reply
push edi
mov ecx, esi
call fcn.0055bff0
test eax, eax
jne 0x55d16a
add dword [esi + 0x44], edi
mov eax, dword [esi + 0x44]
cmp eax, dword [esi + 0x48]
jl 0x55cef7
push str.socks5:_connect_reply_OK_n
mov ecx, esi
call fcn.0055b6c0
cmp dword [esp + 0x28], 0
je 0x55cff4
movzx edx, byte [esi + 0x3c]
mov edi, dword [esp + 0x2c]
mov byte [edi], dl
mov eax, dword [esi + 0x4c]
mov cx, word [eax]
mov word [edi + 1], cx
movzx edx, byte [eax + 2]
mov byte [edi + 3], dl
cmp dword [edi], 0
jne 0x55cfdf
mov eax, dword [esi + 0x194]
mov eax, dword [eax + 0x140]
push 1
lea ecx, [esp + 0x2c]
push ecx
push eax
mov ecx, esi
call fcn.0055c0e0
test eax, eax
jne 0x55d16a
mov edx, dword [esp + 0x28]
mov dword [edi], edx
mov eax, dword [esi + 0x4c]
mov cx, word [eax + 3]
mov edx, dword [esp + 0x30]
mov word [edx], cx
xor eax, eax
jmp 0x55d16a
mov eax, dword [esi + 0x194]
mov byte [eax + 0x160], 1
xor eax, eax
jmp 0x55d16a
lea ecx, [esp + 0x24]
call fcn.00402500
xor edi, edi
mov dword [esp + 0x1c], edi
mov eax, dword [esi + 0xc4]
cmp eax, edi
je 0x55d025
mov eax, dword [eax]
jmp 0x55d02d
mov ecx, dword [esi + 0xc0]
mov eax, dword [ecx]
cmp dword [esi + 0x50], edi
je 0x55d0ac
cmp byte [esi + 0x38], bl
jne 0x55d0ac
mov edx, dword [0x7559d4]
push eax
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00402f70
mov ecx, dword [esp + 0x30]
add esp, 0xc
push 1
push ecx
mov ecx, esi
call fcn.0055bf00
mov edx, dword [esp + 0x24]
mov ecx, dword [esi + 0xac]
push edx
call fcn.005646e0
movsx eax, byte [esi + 0x39]
mov ecx, dword [esi + 0x50]
push eax
push ecx
lea edx, [esp + 0x2c]
push str.Error_code___ld__socks_ret_code___d_n
push edx
call fcn.00402f70
mov eax, dword [esp + 0x34]
add esp, 0x10
push eax
mov ecx, esi
call fcn.0055b6c0
mov esi, dword [esi + 0x50]
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00402570
mov eax, esi
jmp 0x55d16a
mov ecx, dword [0x7565b8]
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00402f70
mov eax, dword [esp + 0x30]
add esp, 0xc
push 1
push eax
mov ecx, esi
call fcn.0055bf00
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esi + 0xac]
call fcn.005646e0
movsx edx, byte [esi + 0x39]
push edx
lea eax, [esp + 0x28]
push str.Error_code___d_n
push eax
call fcn.00402f70
mov ecx, dword [esp + 0x30]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0055b6c0
cmp dword [esp + 0x28], edi
jne 0x55d154
mov eax, dword [esi + 0x194]
cmp byte [eax + 0x160], 0
jne 0x55d154
mov ecx, dword [eax + 0x150]
cmp ecx, 1
jne 0x55d149
cmp byte [esi + 0x38], bl
jne 0x55d149
mov dword [eax + 0x150], 2
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00402570
mov eax, 0x7585
jmp 0x55d16a
cmp ecx, 2
jne 0x55d154
mov dword [eax + 0x150], edi
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00402570
mov eax, 0x755d
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10