Function at 0x506e01
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push esi
mov esi, 0x100
lea eax, [ebp - 0x10c]
push esi
push eax
mov eax, dword [ebp + 0xc]
push 0x502a90
call fcn.00506b89
add esp, 0xc
test eax, eax
jne 0x506e82
lea eax, [ebp - 0x10c]
push eax
call fcn.00506d35
lea eax, [ebp - 0x30c]
push esi
push eax
mov eax, dword [ebp + 0xc]
push 0x502a8c
call fcn.00506b89
add esp, 0x10
test eax, eax
jne 0x506e82
lea eax, [ebp - 0x30c]
push eax
call fcn.00506d35
pop ecx
lea eax, [ebp - 0x10c]
mov cl, byte [ebp - 0x10c]
test cl, cl
je 0x506e82
cmp cl, 0x40
je 0x506e7d
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x506e71
cmp byte [eax], 0
jne 0x506e8a
xor eax, eax
inc eax
jmp 0x507090
inc eax
push ebx
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp - 4], ebx
jne 0x506eb8
xor eax, eax
inc eax
jmp 0x50708f
push edi
push 0x10
push dword [ebp + 8]
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x507080
push eax
push 0x7530
mov eax, ebx
call fcn.00506d65
mov esi, 0xc8
pop ecx
cmp eax, esi
pop ecx
jl 0x507080
cmp eax, 0x190
jge 0x507080
lea eax, [ebp - 0x20c]
mov edi, 0x4e20
push eax
push 0x502a88
push 0x502a7c
push edi
mov eax, ebx
call fcn.00506d65
add esp, 0x10
cmp eax, esi
jl 0x506f20
cmp eax, 0x12b
jle 0x506f4f
lea eax, [ebp - 0x20c]
push eax
push 0x502a78
push 0x502a6c
push edi
mov eax, ebx
call fcn.00506d65
add esp, 0x10
cmp eax, esi
jl 0x507080
cmp eax, 0x12b
jg 0x507080
lea eax, [ebp - 0x10c]
mov ebx, 0x61a8
push eax
mov eax, dword [ebp - 4]
push 0x502a64
push 0x502a54
push ebx
call fcn.00506d65
add esp, 0x10
cmp eax, esi
jl 0x507080
mov edi, 0x12b
cmp eax, edi
jg 0x507080
lea eax, [ebp - 0x30c]
push eax
mov eax, dword [ebp - 4]
push 0x502a4c
push 0x502a3c
push ebx
call fcn.00506d65
add esp, 0x10
cmp eax, esi
jl 0x507080
cmp eax, edi
jg 0x507080
mov eax, dword [ebp - 4]
push 0x502a34
push ebx
call fcn.00506d65
pop ecx
cmp eax, esi
pop ecx
jl 0x507080
cmp eax, 0x18f
jg 0x507080
mov eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0xc], eax
mov cl, byte [eax]
mov edx, eax
jmp 0x506ff5
cmp cl, 0xa
je 0x507008
cmp cl, 0xd
je 0x506ffc
inc edx
mov cl, byte [edx]
test cl, cl
mov dword [ebp - 8], edx
jne 0x506fe8
mov cl, byte [edx]
cmp cl, 0xa
je 0x507008
cmp cl, 0xd
jne 0x50700e
inc edx
mov dword [ebp - 8], edx
jmp 0x506ffc
cmp eax, edx
je 0x507042
cmp byte [eax], 0x2e
jne 0x507028
push 0
push 1
push 0x501830
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push 0
sub ecx, eax
push ecx
push eax
push dword [ebp - 4]
call edi
test eax, eax
jle 0x507080
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jmp 0x506fe2
push 0
push 5
push 0x502a2c
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 4]
push 0
push ebx
call fcn.00506d65
pop ecx
cmp eax, esi
pop ecx
jl 0x507080
cmp eax, 0x190
jge 0x507080
mov eax, dword [ebp - 4]
push 0x502a24
push 0x1388
call fcn.00506d65
pop ecx
xor esi, esi
pop ecx
jmp 0x507083
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
pop edi
pop ebx
pop esi
leave
ret