Function at 0x5095e7
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, 0x408
push esi
mov esi, 0x100
lea eax, [ebp - 0x208]
push esi
push eax
mov eax, dword [ebp + 0xc]
push 0x504c6c
call fcn.0050934c
add esp, 0xc
test eax, eax
jne 0x50964f
lea eax, [ebp - 0x408]
push esi
push eax
mov eax, dword [ebp + 0xc]
push 0x504c68
call fcn.0050934c
add esp, 0xc
test eax, eax
jne 0x50964f
mov cl, byte [ebp - 0x208]
lea eax, [ebp - 0x208]
test cl, cl
je 0x50964f
cmp cl, 0x40
je 0x50964a
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x50963e
cmp byte [eax], 0
jne 0x509657
xor eax, eax
inc eax
jmp 0x50989a
inc eax
push ebx
push eax
lea eax, [ebp - 0x308]
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 0x509685
xor eax, eax
inc eax
jmp 0x509899
push edi
push 0x10
push dword [ebp + 8]
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x50988c
mov esi, 0x3a98
push ebx
mov eax, esi
call fcn.005094f8
test eax, eax
pop ecx
jne 0x50988c
push eax
push esi
push ebx
call fcn.0050954a
mov esi, 0xc8
add esp, 0xc
cmp eax, esi
jl 0x50988c
cmp eax, 0x190
jge 0x50988c
lea eax, [ebp - 0x108]
push 0x504c5c
push eax
call fcn.00505cb9
lea eax, [ebp - 0x308]
mov edi, 0x2710
push eax
lea eax, [ebp - 0x108]
push eax
push edi
push ebx
call fcn.0050954a
add esp, 0x18
cmp eax, esi
jl 0x50970c
cmp eax, 0x12b
jle 0x509748
lea eax, [ebp - 0x108]
push 0x504c50
push eax
call fcn.00505cb9
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x108]
push eax
push edi
push ebx
call fcn.0050954a
add esp, 0x18
cmp eax, esi
jl 0x50988c
cmp eax, 0x12b
jg 0x50988c
lea eax, [ebp - 0x108]
push 0x504c3c
push eax
call fcn.00505cb9
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x108]
push eax
push edi
push ebx
call fcn.0050954a
add esp, 0x18
cmp eax, esi
jl 0x50988c
cmp eax, 0x12b
jg 0x50988c
lea eax, [ebp - 0x108]
push 0x504c2c
push eax
call fcn.00505cb9
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x108]
push eax
push edi
push ebx
call fcn.0050954a
add esp, 0x18
cmp eax, esi
jl 0x50988c
cmp eax, 0x12b
jg 0x50988c
push 0x504c24
push edi
push ebx
call fcn.0050954a
add esp, 0xc
cmp eax, esi
jl 0x50988c
cmp eax, 0x18f
jg 0x50988c
mov ecx, dword [ebp + 0xc]
mov edi, dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], ecx
mov al, byte [ecx]
mov ebx, ecx
jmp 0x5097ff
cmp al, 0xa
je 0x50980d
cmp al, 0xd
je 0x509803
inc ebx
mov al, byte [ebx]
test al, al
jne 0x5097f4
mov al, byte [ebx]
cmp al, 0xa
je 0x50980d
cmp al, 0xd
jne 0x509810
inc ebx
jmp 0x509803
cmp ecx, ebx
je 0x509842
cmp byte [ecx], 0x2e
jne 0x50982a
push 0
push 1
push 0x504728
push dword [ebp - 4]
call edi
mov ecx, dword [ebp - 8]
mov eax, ebx
push 0
sub eax, ecx
push eax
push ecx
push dword [ebp - 4]
call edi
test eax, eax
jle 0x509889
mov dword [ebp - 8], ebx
mov ecx, ebx
jmp 0x5097ee
push 0
push 5
push 0x504c1c
push dword [ebp - 4]
call edi
push 0
push 0x3a98
push dword [ebp - 4]
call fcn.0050954a
add esp, 0xc
cmp eax, esi
jl 0x509889
cmp eax, 0x190
jge 0x509889
push 0x504c14
push 0x1388
push dword [ebp - 4]
call fcn.0050954a
mov ebx, dword [ebp - 4]
add esp, 0xc
xor esi, esi
jmp 0x50988f
mov ebx, dword [ebp - 4]
xor esi, esi
inc esi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
pop edi
pop ebx
pop esi
leave
ret