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

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push esi
call fcn.00522e00
test eax, eax
jne 0x523324
mov eax, dword [esp + 0x3c]
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffffa
pop esi
add eax, 0x69
pop ebp
mov dword [0x463b34], eax
xor eax, eax
pop ebx
add esp, 0x24
ret 0x18
mov ecx, dword [esp + 0x48]
mov edx, dword [esi + 0x60]
push ecx
push 0x200
push edx
call fcn.00520200
push 0x100
mov ebp, eax
xor ebx, ebx
call fcn.0051f5b0
mov edi, eax
add esp, 4
test edi, edi
je 0x523378
push 0x100
push edi
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
je 0x52336f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x523363
sub eax, edx
lea ebx, [eax + 1]
push edi
call fcn.00526d54
add esp, 4
mov eax, ebx
push 0x220
lea ecx, [eax + ebp + 0x24]
push ecx
push 0x13
mov dword [esp + 0x44], ebx
call fcn.0051fb00
mov edi, eax
test edi, edi
je 0x523612
mov ebx, dword [esi + 0x3c]
and ebx, 0xf00000
call fcn.00523150
movzx edx, al
mov eax, dword [esi + 0xc]
shl edx, 0x18
or ebx, edx
test al, 1
je 0x5233b9
or ebx, 1
test al, 8
je 0x5233ca
or ebx, 8
mov dword [0x59e6a4], 1
mov edx, dword [esp + 0x40]
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x10]
mov ebx, dword [esp + 0x38]
mov dword [edi + 0xc], eax
mov ecx, dword [esi + 0x14]
mov eax, dword [esp + 0x44]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], ebx
test ebp, ebp
je 0x523406
mov ecx, dword [esi + 0x60]
push ebp
push ecx
lea edx, [edi + 0x24]
push edx
call fcn.00526df0
add esp, 0xc
mov eax, dword [esi + 0x60]
push ebp
push eax
lea ecx, [edi + 0x24]
push ecx
call fcn.00526df0
add esp, 0xc
push ebx
lea eax, [edi + ebp + 0x24]
call fcn.00522e90
movzx eax, word [edi + 2]
mov edx, dword [esi + 4]
push 0
push eax
push edi
push edx
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x523446
mov dword [0x463b34], 0x61
jmp 0x523609
push 0x3a98
push 0x13
push esi
call fcn.00523030
mov ebx, eax
test ebx, ebx
je 0x523609
movzx eax, word [ebx + 4]
test ax, ax
je 0x523473
movzx eax, ax
mov dword [0x463b34], eax
jmp 0x523609
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x38], eax
test eax, eax
je 0x5235ff
cmp eax, 1
je 0x5235ff
cmp dword [esp + 0x3c], 0
mov cx, word [ebx + 0x14]
mov word [esi + 0x44], cx
jne 0x5234aa
mov dx, word [ebx + 0x10]
mov word [esi + 0x48], dx
mov ax, word [ebx + 0xc]
mov word [esi + 0x46], ax
mov ebp, dword [ebx + 0x18]
push ebp
call fcn.0051f5b0
add esp, 4
mov dword [esi + 0x40], eax
test eax, eax
je 0x523609
push ebp
add ebx, 0x20
push ebx
push eax
call fcn.00526df0
mov ecx, dword [esi + 0x40]
mov ebp, dword [esp + 0x44]
add esp, 0xc
cmp dword [esp + 0x4c], 0
mov dword [esi + 0x24], ecx
je 0x5235ea
xor eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov byte [esp + 0x18], 0xb2
mov byte [esp + 0x1a], 0x1c
mov byte [esp + 0x1c], 0x34
mov byte [esp + 0x1e], 0x2c
mov dword [esp + 0x20], ebp
mov byte [esp + 0x24], 0x13
mov byte [esp + 0x28], 0x20
call fcn.00522ff0
test eax, eax
je 0x5235ea
mov eax, dword [esp + 0x16]
push 0x1388
push eax
push esi
call fcn.00523030
test eax, eax
je 0x5235ea
cmp word [eax + 4], 0
jne 0x5235ea
mov ax, word [ebx]
mov bx, word [ebx + 2]
movzx ecx, ax
imul ecx, ecx, 0x3e8
movzx edx, bx
add ecx, edx
cmp ecx, dword [esp + 0x4c]
jge 0x5235ea
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], eax
mov word [esi + 0x44], ax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov al, 0x14
push ecx
push esi
mov byte [esp + 0x18], 0xb2
mov byte [esp + 0x1a], al
mov byte [esp + 0x1c], al
mov byte [esp + 0x1e], 0x24
mov dword [esp + 0x20], ebp
call fcn.00522ff0
test eax, eax
je 0x5235de
mov edx, dword [esp + 0x16]
push 0x1388
push edx
push esi
call fcn.00523030
mov dword [0x463b34], 0x69
jmp 0x523609
push edi
call fcn.00526d54
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x24
ret 0x18
mov dword [0x463b34], 0x62
push edi
call fcn.00526d54
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 0x18