Function at 0x50f930
Capabilities:
Get hostname
Send data
Send data on socket

Disassembly:
sub esp, 0x2c
mov eax, dword [0x586220]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x3c]
push edi
push esi
call fcn.0050fc50
test eax, eax
jne 0x50f96c
cmp dword [esp + 0x44], 0
mov eax, 0x69
mov ecx, 0x63
cmovne eax, ecx
mov dword [0x584cfc], eax
jmp 0x50fc30
push dword [esp + 0x50]
push 0x200
push dword [esi + 0x60]
call fcn.005118d0
mov ebx, eax
xor ebp, ebp
push 0x100
mov dword [esp + 0x14], ebx
call fcn.0050cec0
mov edi, eax
add esp, 4
test edi, edi
je 0x50f9c5
push 0x100
push edi
call fcn.00555454
cmp eax, 0xffffffff
je 0x50f9bc
mov ecx, edi
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x50f9b0
sub ecx, edx
lea ebp, [ecx + 1]
push edi
call fcn.00534ada
add esp, 4
push 0x220
lea eax, [ebx + 0x24]
add eax, ebp
push eax
push 0x13
call fcn.0050d110
mov edi, eax
test edi, edi
je 0x50fc30
mov ebx, dword [esi + 0x3c]
and ebx, 0xf00000
call fcn.0050f240
movzx ecx, al
mov eax, dword [esi + 0xc]
shl ecx, 0x18
or ebx, ecx
test al, 1
je 0x50fa01
or ebx, 1
test al, 8
je 0x50fa12
or ebx, 8
mov dword [0x58dbe4], 1
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x10]
mov ebx, dword [esp + 0x10]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x4c]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebp
test ebx, ebx
je 0x50fa4d
push ebx
push dword [esi + 0x60]
lea eax, [edi + 0x24]
push eax
call fcn.005358e0
add esp, 0xc
push ebx
push dword [esi + 0x60]
lea eax, [edi + 0x24]
push eax
call fcn.005358e0
add esp, 0xc
lea eax, [ebx + 0x24]
add eax, edi
push ebp
push eax
call fcn.0050f830
movzx eax, word [edi + 2]
push 0
push eax
push edi
push dword [esi + 4]
call fcn.00555496
cmp eax, 0xffffffff
jne 0x50fa8d
mov dword [0x584cfc], 0x61
jmp 0x50fc27
push 0x3a98
push 0x13
push esi
call fcn.00510f30
mov ebx, eax
test ebx, ebx
je 0x50fc27
movzx eax, word [ebx + 4]
test ax, ax
je 0x50fab7
mov dword [0x584cfc], eax
jmp 0x50fc27
mov ebp, dword [ebx + 0x1c]
test ebp, ebp
je 0x50fc1d
cmp ebp, 1
je 0x50fc1d
cmp dword [esp + 0x44], 0
mov ax, word [ebx + 0x14]
mov word [esi + 0x44], ax
jne 0x50faea
movzx eax, word [ebx + 0x10]
mov word [esi + 0x48], ax
movzx eax, word [ebx + 0xc]
mov word [esi + 0x46], ax
mov eax, dword [ebx + 0x18]
push eax
mov dword [esp + 0x14], eax
call fcn.0050cec0
add esp, 4
mov dword [esi + 0x40], eax
test eax, eax
je 0x50fc27
push dword [esp + 0x10]
add ebx, 0x20
push ebx
push eax
call fcn.005358e0
mov eax, dword [esi + 0x40]
add esp, 0xc
cmp dword [esp + 0x54], 0
mov dword [esi + 0x24], eax
je 0x50fbfd
lea eax, [esp + 0x14]
mov dword [esp + 0x34], 0
xorps xmm0, xmm0
movdqu xmmword [esp + 0x14], xmm0
push eax
movdqu xmmword [esp + 0x28], xmm0
push esi
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.00510be0
test eax, eax
je 0x50fbfd
push 0x1388
push dword [esp + 0x1e]
push esi
call fcn.00510f30
test eax, eax
je 0x50fbfd
cmp word [eax + 4], 0
jne 0x50fbfd
movzx eax, word [ebx]
imul edx, eax, 0x3e8
movzx eax, word [ebx + 2]
add edx, eax
cmp edx, dword [esp + 0x54]
jge 0x50fbfd
xor eax, eax
xorps xmm0, xmm0
mov word [esi + 0x44], ax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x14]
movdqu xmmword [esp + 0x14], xmm0
push eax
push esi
movdqu 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.00510be0
test eax, eax
je 0x50fbf1
push 0x1388
push dword [esp + 0x1e]
push esi
call fcn.00510f30
mov dword [0x584cfc], 0x69
jmp 0x50fc27
push edi
call fcn.00534ada
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00535482
add esp, 0x2c
ret 0x18
mov dword [0x584cfc], 0x62
push edi
call fcn.00534ada
add esp, 4
mov ecx, dword [esp + 0x38]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00535482
add esp, 0x2c
ret 0x18