Function at 0x5798f0
Capabilities:
Connect socket
Get hostname
Send data
Send data on socket

Disassembly:
sub esp, 0x3c
mov eax, dword [0x616930]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
mov eax, 2
mov word [esp + 0x38], ax
xorps xmm0, xmm0
movlpd qword [esp + 0x40], xmm0
mov eax, dword [edi + 0x54]
mov dword [esp + 0x3c], eax
movzx eax, word [0x62538c]
push eax
call sub.WS2_32.dll_htons
mov word [esp + 0x3a], ax
lea eax, [esp + 0x38]
push 0x10
push eax
push dword [edi + 4]
call sub.WS2_32.dll_connect
test eax, eax
jns 0x579961
cmp dword [esp + 0x54], 0
mov eax, 0x69
mov ecx, 0x63
cmovne eax, ecx
mov dword [0x6156e4], eax
jmp 0x579c40
push dword [esp + 0x60]
push 0x200
push dword [edi + 0x60]
call fcn.0057b950
mov esi, eax
xor ebp, ebp
push 0x100
mov dword [esp + 0x14], esi
call fcn.00576e20
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5799b7
push 0x100
push ebx
call sub.WS2_32.dll_gethostname
cmp eax, 0xffffffff
je 0x5799ae
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5799a2
sub ecx, edx
lea ebp, [ecx + 1]
push ebx
call fcn.004d80ec
add esp, 4
push 0x220
lea eax, [esi + 0x24]
add eax, ebp
push eax
push 0x13
call fcn.00577060
mov ebx, eax
test ebx, ebx
je 0x579c40
mov esi, dword [edi + 0x3c]
and esi, 0xf00000
call fcn.00579260
mov edx, dword [edi + 0xc]
movzx ecx, al
mov eax, edx
shl ecx, 0x18
or ecx, esi
mov esi, ecx
or esi, 1
and al, 1
cmove esi, ecx
test dl, 8
je 0x579a0a
or esi, 8
mov dword [0x62536c], 1
mov dword [ebx + 8], esi
mov eax, dword [edi + 0x10]
mov esi, dword [esp + 0x10]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0x18], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x20], ebp
test esi, esi
je 0x579a48
push esi
push dword [edi + 0x60]
push eax
call fcn.005be280
add esp, 0xc
lea eax, [ebx + 0x24]
push esi
push dword [edi + 0x60]
push eax
call fcn.005be280
lea eax, [esi + 0x24]
add esp, 0xc
xor esi, esi
add eax, ebx
jne 0x579a6d
push ebp
call fcn.00576e20
mov esi, eax
add esp, 4
test esi, esi
je 0x579a7d
push ebp
push eax
call sub.WS2_32.dll_gethostname
push esi
call fcn.004d80ec
add esp, 4
movzx eax, word [ebx + 2]
push 0
push eax
push ebx
push dword [edi + 4]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x579aa1
mov dword [0x6156e4], 0x61
jmp 0x579c37
push 0x3a98
push 0x13
push edi
call fcn.0057af00
mov esi, eax
test esi, esi
je 0x579c37
movzx eax, word [esi + 4]
test ax, ax
je 0x579acb
mov dword [0x6156e4], eax
jmp 0x579c37
mov ebp, dword [esi + 0x1c]
test ebp, ebp
je 0x579c2d
cmp ebp, 1
je 0x579c2d
cmp dword [esp + 0x54], 0
mov ax, word [esi + 0x14]
mov word [edi + 0x44], ax
jne 0x579afe
movzx eax, word [esi + 0x10]
mov word [edi + 0x48], ax
movzx eax, word [esi + 0xc]
mov word [edi + 0x46], ax
mov eax, dword [esi + 0x18]
push eax
mov dword [esp + 0x14], eax
call fcn.00576e20
add esp, 4
mov dword [edi + 0x40], eax
test eax, eax
je 0x579c37
push dword [esp + 0x10]
add esi, 0x20
push esi
push eax
call fcn.005be280
mov eax, dword [edi + 0x40]
add esp, 0xc
cmp dword [esp + 0x64], 0
mov dword [edi + 0x24], eax
je 0x579c0d
lea eax, [esp + 0x14]
mov dword [esp + 0x34], 0
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
push eax
movups xmmword [esp + 0x28], xmm0
push edi
mov byte [esp + 0x1c], 0xb2
mov byte [esp + 0x1e], 0x1c
mov byte [esp + 0x20], 0x34
mov byte [esp + 0x22], 0x2c
mov dword [esp + 0x24], ebp
mov byte [esp + 0x28], 0x13
mov byte [esp + 0x2c], 0x20
call fcn.0057abb0
test eax, eax
je 0x579c0d
push 0x1388
push dword [esp + 0x1e]
push edi
call fcn.0057af00
test eax, eax
je 0x579c0d
cmp word [eax + 4], 0
jne 0x579c0d
movzx eax, word [esi]
imul ecx, eax, 0x3e8
movzx eax, word [esi + 2]
add ecx, eax
cmp ecx, dword [esp + 0x64]
jge 0x579c0d
xor eax, eax
xorps xmm0, xmm0
mov word [edi + 0x44], ax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
push eax
push edi
movups xmmword [esp + 0x2c], xmm0
mov byte [esp + 0x1c], 0xb2
mov byte [esp + 0x1e], 0x14
mov byte [esp + 0x20], 0x14
mov byte [esp + 0x22], 0x24
mov dword [esp + 0x24], ebp
call fcn.0057abb0
test eax, eax
je 0x579c01
push 0x1388
push dword [esp + 0x1e]
push edi
call fcn.0057af00
mov dword [0x6156e4], 0x69
jmp 0x579c37
push ebx
call fcn.004d80ec
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.005bca10
add esp, 0x3c
ret 0x18
mov dword [0x6156e4], 0x62
push ebx
call fcn.004d80ec
add esp, 4
mov ecx, dword [esp + 0x48]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005bca10
add esp, 0x3c
ret 0x18