Function at 0x4c7ac0
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.004c75d0
test eax, eax
jne 0x4c7af4
mov eax, dword [esp + 0x3c]
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffffa
pop esi
add eax, 0x69
pop ebp
mov dword [0x416fac], 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.004c49e0
push 0x100
mov ebp, eax
xor ebx, ebx
call fcn.004c3d90
mov edi, eax
add esp, 4
test edi, edi
je 0x4c7b48
push 0x100
push edi
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
je 0x4c7b3f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c7b33
sub eax, edx
lea ebx, [eax + 1]
push edi
call fcn.004cb4e1
add esp, 4
mov eax, ebx
push 0x220
lea ecx, [eax + ebp + 0x24]
push ecx
push 0x13
mov dword [esp + 0x44], ebx
call fcn.004c42e0
mov edi, eax
test edi, edi
je 0x4c7de2
mov ebx, dword [esi + 0x3c]
and ebx, 0xf00000
call fcn.004c7920
movzx edx, al
mov eax, dword [esi + 0xc]
shl edx, 0x18
or ebx, edx
test al, 1
je 0x4c7b89
or ebx, 1
test al, 8
je 0x4c7b9a
or ebx, 8
mov dword [0x53f8a4], 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 0x4c7bd6
mov ecx, dword [esi + 0x60]
push ebp
push ecx
lea edx, [edi + 0x24]
push edx
call fcn.004cb570
add esp, 0xc
mov eax, dword [esi + 0x60]
push ebp
push eax
lea ecx, [edi + 0x24]
push ecx
call fcn.004cb570
add esp, 0xc
push ebx
lea eax, [edi + ebp + 0x24]
call fcn.004c7660
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 0x4c7c16
mov dword [0x416fac], 0x61
jmp 0x4c7dd9
push 0x3a98
push 0x13
push esi
call fcn.004c7800
mov ebx, eax
test ebx, ebx
je 0x4c7dd9
movzx eax, word [ebx + 4]
test ax, ax
je 0x4c7c43
movzx eax, ax
mov dword [0x416fac], eax
jmp 0x4c7dd9
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x38], eax
test eax, eax
je 0x4c7dcf
cmp eax, 1
je 0x4c7dcf
cmp dword [esp + 0x3c], 0
mov cx, word [ebx + 0x14]
mov word [esi + 0x44], cx
jne 0x4c7c7a
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.004c3d90
add esp, 4
mov dword [esi + 0x40], eax
test eax, eax
je 0x4c7dd9
push ebp
add ebx, 0x20
push ebx
push eax
call fcn.004cb570
mov ecx, dword [esi + 0x40]
mov ebp, dword [esp + 0x44]
add esp, 0xc
cmp dword [esp + 0x4c], 0
mov dword [esi + 0x24], ecx
je 0x4c7dba
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.004c77c0
test eax, eax
je 0x4c7dba
mov eax, dword [esp + 0x16]
push 0x1388
push eax
push esi
call fcn.004c7800
test eax, eax
je 0x4c7dba
cmp word [eax + 4], 0
jne 0x4c7dba
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 0x4c7dba
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.004c77c0
test eax, eax
je 0x4c7dae
mov edx, dword [esp + 0x16]
push 0x1388
push edx
push esi
call fcn.004c7800
mov dword [0x416fac], 0x69
jmp 0x4c7dd9
push edi
call fcn.004cb4e1
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x24
ret 0x18
mov dword [0x416fac], 0x62
push edi
call fcn.004cb4e1
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 0x18