Function at 0x41d2b0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ecx + 0x150]
mov dword [ebp - 0x114], ecx
mov byte [ebp - 0x110], 5
push edi
test esi, esi
jne 0x41d30f
push str.SOCKS5_AUTH
call fcn.004aed9a
mov esi, eax
add esp, 4
test esi, esi
jne 0x41d30f
push str.SOCKS5_AUTH
call fcn.0041c200
test eax, eax
je 0x41d301
mov esi, dword [eax + 4]
test esi, esi
jne 0x41d30f
mov word [ebp - 0x10], 0x200
mov al, 2
jmp 0x41d31a
push ecx
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0041d1b0
movzx edi, al
lea esi, [ebp - 0x10e]
mov byte [ebp - 0x10f], al
test edi, edi
jle 0x41d33f
push edi
lea eax, [ebp - 0x10]
push eax
mov eax, esi
push eax
call fcn.004b6150
add esp, 0xc
add esi, edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x110]
sub esi, eax
xor ebx, ebx
test esi, esi
jle 0x41d370
push 0
push esi
lea eax, [ebp - 0x110]
add eax, ebx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x41d370
sub esi, eax
add ebx, eax
test esi, esi
jg 0x41d350
mov ebx, dword [sym.imp.WS2_32.dll_recv]
xor ecx, ecx
mov esi, 2
mov dword [ebp - 0x118], ecx
push 0
push esi
lea eax, [ebp - 0x110]
add eax, ecx
push eax
push edi
call ebx
cmp eax, 0xffffffff
je 0x41d3af
test eax, eax
je 0x41d3af
mov ecx, dword [ebp - 0x118]
sub esi, eax
add ecx, eax
mov dword [ebp - 0x118], ecx
test esi, esi
jg 0x41d383
cmp byte [ebp - 0x110], 5
jne 0x41d3d4
mov al, byte [ebp - 0x10f]
cmp al, 0xff
je 0x41d3d4
movzx eax, al
sub eax, 0
je 0x41d3fe
sub eax, 2
je 0x41d3ea
sub eax, 0xfd
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x114]
mov ecx, esi
push edi
call fcn.0041cf90
test eax, eax
je 0x41d404
jmp 0x41d3d4
mov esi, dword [ebp - 0x114]
mov eax, dword [esi + 0x118]
mov word [ebp - 0x110], 0x105
mov byte [ebp - 0x10e], 0
test eax, eax
jne 0x41d46b
lea edx, [esi + 0x10]
mov byte [ebp - 0x10d], 3
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x114], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41d433
sub ecx, dword [ebp - 0x114]
lea eax, [ebp - 0x10b]
push ecx
push edx
push eax
mov dword [ebp - 0x114], ecx
mov byte [ebp - 0x10c], cl
call fcn.004b6150
lea ecx, [ebp - 0x10b]
add esp, 0xc
add ecx, dword [ebp - 0x114]
jmp 0x41d47e
mov byte [ebp - 0x10d], 1
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x10c], eax
movzx eax, byte [esi + 0x111]
mov byte [ecx], al
inc ecx
movzx eax, byte [esi + 0x110]
mov byte [ecx], al
lea eax, [ebp - 0x110]
sub ecx, eax
inc ecx
push ecx
push eax
push edi
call fcn.0041ce00
xor ecx, ecx
mov esi, 4
mov dword [ebp - 0x114], ecx
nop
push 0
push esi
lea eax, [ebp - 0x110]
add eax, ecx
push eax
push edi
call ebx
cmp eax, 0xffffffff
je 0x41d4dc
test eax, eax
je 0x41d4dc
mov ecx, dword [ebp - 0x114]
sub esi, eax
add ecx, eax
mov dword [ebp - 0x114], ecx
test esi, esi
jg 0x41d4b0
cmp byte [ebp - 0x10f], 0
jne 0x41d3d4
movzx eax, byte [ebp - 0x10d]
dec eax
je 0x41d5bf
sub eax, 2
je 0x41d559
dec eax
jne 0x41d5fc
xor ecx, ecx
mov esi, 0x12
mov dword [ebp - 0x114], ecx
push 0
push esi
lea eax, [ebp - 0x10c]
add eax, ecx
push eax
push edi
call ebx
cmp eax, 0xffffffff
je 0x41d5fc
test eax, eax
je 0x41d5fc
mov ecx, dword [ebp - 0x114]
sub esi, eax
add ecx, eax
mov dword [ebp - 0x114], ecx
test esi, esi
jg 0x41d510
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov esi, 1
mov dword [ebp - 0x114], ecx
push 0
push esi
lea eax, [ebp - 0x10c]
add eax, ecx
push eax
push edi
call ebx
cmp eax, 0xffffffff
je 0x41d592
test eax, eax
je 0x41d592
mov ecx, dword [ebp - 0x114]
sub esi, eax
add ecx, eax
mov dword [ebp - 0x114], ecx
test esi, esi
jg 0x41d566
movzx eax, byte [ebp - 0x10c]
add eax, 2
push eax
lea eax, [ebp - 0x10b]
push eax
push edi
call fcn.0041ce50
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret 4
xor ecx, ecx
mov esi, 6
mov dword [ebp - 0x114], ecx
lea esp, [esp]
push 0
push esi
lea eax, [ebp - 0x10c]
add eax, ecx
push eax
push edi
call ebx
cmp eax, 0xffffffff
je 0x41d5fc
test eax, eax
je 0x41d5fc
mov ecx, dword [ebp - 0x114]
sub esi, eax
add ecx, eax
mov dword [ebp - 0x114], ecx
test esi, esi
jg 0x41d5d0
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret 4