Function at 0x44d215
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Send data
Send data on socket

Disassembly:
push 0x28
mov eax, 0x5b9e6e
call fcn.0058ec94
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x2c]
push eax
mov esi, ecx
mov byte [ebp - 0x21], 0
call fcn.0040855f
and dword [ebp - 4], 0
lea ebx, [esi + 0x3c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x30]
lea edi, [ebp - 0x2c]
call fcn.00408619
mov esi, dword [esi + 0x34]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
or ebx, 0xffffffff
mov dword [ebp - 0x34], edi
cmp edi, ebx
jne 0x44d2aa
cmp dword [0x6c438c], 3
jl 0x44d295
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.socket_error____i
push str.Reporter::SendReport2
push 3
call fcn.00540a02
add esp, 0x10
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x2c]
call fcn.004085f6
xor al, al
call fcn.0058ed17
ret 4
push 2
pop eax
push esi
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 0x2c]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00488a10
pop ecx
pop ecx
mov byte [ebp - 4], 1
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004084b5
cmp dword [ebp - 0x1c], ebx
jne 0x44d351
push dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
call fcn.00488a10
pop ecx
pop ecx
mov byte [ebp - 4], 2
push dword [eax]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004084b5
test esi, esi
jne 0x44d33b
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [0x6c438c], 3
jl 0x44d295
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.gethostbyname_error____i
jmp 0x44d286
movsx eax, word [esi + 0xa]
push eax
mov eax, dword [esi + 0xc]
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.00586840
add esp, 0xc
push 0x10
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, ebx
jne 0x44d380
xor bl, bl
push dword [ebp - 0x34]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004085f6
mov al, bl
jmp 0x44d2a2
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
add eax, 0x400
push eax
call fcn.005819cb
mov edi, eax
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
add eax, 0x400
push eax
push 0
push edi
mov dword [ebp - 0x28], edi
call fcn.00586790
push dword [0x6de140]
lea eax, [ebp - 0x30]
push eax
call fcn.00488a10
add esp, 0x18
mov byte [ebp - 4], 3
mov eax, dword [eax]
mov edx, edi
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x44d3c5
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x30]
call fcn.004084b5
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x44d3db
mov esi, 0x6892a4
movsw word es:[edi], word [esi]
mov eax, dword [ebx]
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x44d3ee
mov ebx, dword [ebp - 0x28]
mov edi, ebx
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x44d3ff
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, ebx
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x44d41a
sub eax, ecx
xor esi, esi
mov edi, eax
mov dword [ebp - 0x28], esi
push 0
push edi
lea eax, [esi + ebx]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x44d458
mov byte [ebp - 0x21], 1
cmp eax, 0xffffffff
je 0x44d458
cmp eax, edi
je 0x44d458
add esi, eax
sub edi, eax
inc dword [ebp - 0x28]
cmp dword [ebp - 0x28], 0xa
jl 0x44d42a
push ebx
call fcn.005818ee
mov bl, byte [ebp - 0x21]
pop ecx
jmp 0x44d364