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

Disassembly:
sub esp, 0x2c
mov eax, dword [0x631220]
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.005bac50
test eax, eax
jne 0x5ba96c
cmp dword [esp + 0x44], 0
mov eax, 0x69
mov ecx, 0x63
cmovne eax, ecx
mov dword [0x62fcfc], eax
jmp 0x5bac30
push dword [esp + 0x50]
push 0x200
push dword [esi + 0x60]
call fcn.005bc8d0
mov ebx, eax
xor ebp, ebp
push 0x100
mov dword [esp + 0x14], ebx
call fcn.005b7ec0
mov edi, eax
add esp, 4
test edi, edi
je 0x5ba9c5
push 0x100
push edi
call fcn.00600454
cmp eax, 0xffffffff
je 0x5ba9bc
mov ecx, edi
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5ba9b0
sub ecx, edx
lea ebp, [ecx + 1]
push edi
call fcn.005dfada
add esp, 4
push 0x220
lea eax, [ebx + 0x24]
add eax, ebp
push eax
push 0x13
call fcn.005b8110
mov edi, eax
test edi, edi
je 0x5bac30
mov ebx, dword [esi + 0x3c]
and ebx, 0xf00000
call fcn.005ba240
movzx ecx, al
mov eax, dword [esi + 0xc]
shl ecx, 0x18
or ebx, ecx
test al, 1
je 0x5baa01
or ebx, 1
test al, 8
je 0x5baa12
or ebx, 8
mov dword [0x638be4], 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 0x5baa4d
push ebx
push dword [esi + 0x60]
lea eax, [edi + 0x24]
push eax
call fcn.005e08e0
add esp, 0xc
push ebx
push dword [esi + 0x60]
lea eax, [edi + 0x24]
push eax
call fcn.005e08e0
add esp, 0xc
lea eax, [ebx + 0x24]
add eax, edi
push ebp
push eax
call fcn.005ba830
movzx eax, word [edi + 2]
push 0
push eax
push edi
push dword [esi + 4]
call fcn.00600496
cmp eax, 0xffffffff
jne 0x5baa8d
mov dword [0x62fcfc], 0x61
jmp 0x5bac27
push 0x3a98
push 0x13
push esi
call fcn.005bbf30
mov ebx, eax
test ebx, ebx
je 0x5bac27
movzx eax, word [ebx + 4]
test ax, ax
je 0x5baab7
mov dword [0x62fcfc], eax
jmp 0x5bac27
mov ebp, dword [ebx + 0x1c]
test ebp, ebp
je 0x5bac1d
cmp ebp, 1
je 0x5bac1d
cmp dword [esp + 0x44], 0
mov ax, word [ebx + 0x14]
mov word [esi + 0x44], ax
jne 0x5baaea
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.005b7ec0
add esp, 4
mov dword [esi + 0x40], eax
test eax, eax
je 0x5bac27
push dword [esp + 0x10]
add ebx, 0x20
push ebx
push eax
call fcn.005e08e0
mov eax, dword [esi + 0x40]
add esp, 0xc
cmp dword [esp + 0x54], 0
mov dword [esi + 0x24], eax
je 0x5babfd
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.005bbbe0
test eax, eax
je 0x5babfd
push 0x1388
push dword [esp + 0x1e]
push esi
call fcn.005bbf30
test eax, eax
je 0x5babfd
cmp word [eax + 4], 0
jne 0x5babfd
movzx eax, word [ebx]
imul edx, eax, 0x3e8
movzx eax, word [ebx + 2]
add edx, eax
cmp edx, dword [esp + 0x54]
jge 0x5babfd
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.005bbbe0
test eax, eax
je 0x5babf1
push 0x1388
push dword [esp + 0x1e]
push esi
call fcn.005bbf30
mov dword [0x62fcfc], 0x69
jmp 0x5bac27
push edi
call fcn.005dfada
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.005e0482
add esp, 0x2c
ret 0x18
mov dword [0x62fcfc], 0x62
push edi
call fcn.005dfada
add esp, 4
mov ecx, dword [esp + 0x38]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005e0482
add esp, 0x2c
ret 0x18