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

Disassembly:
sub esp, 0x2c
mov eax, dword [0x59b000]
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.00525480
test eax, eax
jne 0x52519c
cmp dword [esp + 0x44], 0
mov eax, 0x69
mov ecx, 0x63
cmovne eax, ecx
mov dword [0x598c84], eax
jmp 0x525460
push dword [esp + 0x50]
push 0x200
push dword [esi + 0x60]
call fcn.005270e0
mov ebx, eax
xor ebp, ebp
push 0x100
mov dword [esp + 0x14], ebx
call fcn.00522730
mov edi, eax
add esp, 4
test edi, edi
je 0x5251f5
push 0x100
push edi
call sub.WS2_32.dll_gethostname
cmp eax, 0xffffffff
je 0x5251ec
mov ecx, edi
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5251e0
sub ecx, edx
lea ebp, [ecx + 1]
push edi
call fcn.00549ff4
add esp, 4
push 0x220
lea eax, [ebx + 0x24]
add eax, ebp
push eax
push 0x13
call fcn.00522970
mov edi, eax
test edi, edi
je 0x525460
mov ebx, dword [esi + 0x3c]
and ebx, 0xf00000
call fcn.00524a70
movzx ecx, al
mov eax, dword [esi + 0xc]
shl ecx, 0x18
or ebx, ecx
test al, 1
je 0x525231
or ebx, 1
test al, 8
je 0x525242
or ebx, 8
mov dword [0x5a28ec], 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 0x52527d
push ebx
push dword [esi + 0x60]
lea eax, [edi + 0x24]
push eax
call fcn.0054adf0
add esp, 0xc
push ebx
push dword [esi + 0x60]
lea eax, [edi + 0x24]
push eax
call fcn.0054adf0
add esp, 0xc
lea eax, [ebx + 0x24]
add eax, edi
push ebp
push eax
call fcn.00525060
movzx eax, word [edi + 2]
push 0
push eax
push edi
push dword [esi + 4]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x5252bd
mov dword [0x598c84], 0x61
jmp 0x525457
push 0x3a98
push 0x13
push esi
call fcn.00526760
mov ebx, eax
test ebx, ebx
je 0x525457
movzx eax, word [ebx + 4]
test ax, ax
je 0x5252e7
mov dword [0x598c84], eax
jmp 0x525457
mov ebp, dword [ebx + 0x1c]
test ebp, ebp
je 0x52544d
cmp ebp, 1
je 0x52544d
cmp dword [esp + 0x44], 0
mov ax, word [ebx + 0x14]
mov word [esi + 0x44], ax
jne 0x52531a
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.00522730
add esp, 4
mov dword [esi + 0x40], eax
test eax, eax
je 0x525457
push dword [esp + 0x10]
add ebx, 0x20
push ebx
push eax
call fcn.0054adf0
mov eax, dword [esi + 0x40]
add esp, 0xc
cmp dword [esp + 0x54], 0
mov dword [esi + 0x24], eax
je 0x52542d
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.00526410
test eax, eax
je 0x52542d
push 0x1388
push dword [esp + 0x1e]
push esi
call fcn.00526760
test eax, eax
je 0x52542d
cmp word [eax + 4], 0
jne 0x52542d
movzx eax, word [ebx]
imul edx, eax, 0x3e8
movzx eax, word [ebx + 2]
add edx, eax
cmp edx, dword [esp + 0x54]
jge 0x52542d
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.00526410
test eax, eax
je 0x525421
push 0x1388
push dword [esp + 0x1e]
push esi
call fcn.00526760
mov dword [0x598c84], 0x69
jmp 0x525457
push edi
call fcn.00549ff4
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0054a992
add esp, 0x2c
ret 0x18
mov dword [0x598c84], 0x62
push edi
call fcn.00549ff4
add esp, 4
mov ecx, dword [esp + 0x38]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0054a992
add esp, 0x2c
ret 0x18