Function at 0x5245e0
Capabilities:
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
mov eax, dword [0x6d74f0]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x84c], ecx
cmp dword [ebp + 8], 0
jne 0x524606
xor eax, eax
jmp 0x52484c
xor eax, eax
mov word [ebp - 0x848], ax
xor ecx, ecx
mov dword [ebp - 0x846], ecx
mov dword [ebp - 0x842], ecx
mov dword [ebp - 0x83e], ecx
mov word [ebp - 0x83a], cx
push 2
mov edx, dword [ebp + 8]
push edx
call fcn.00593ed0
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_gethostbyaddr
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x524668
mov ecx, 2
mov word [ebp - 0x848], cx
mov edx, dword [ebp + 8]
push edx
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x844], eax
jmp 0x5246af
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x524681
xor eax, eax
jmp 0x52484c
mov ecx, dword [ebp - 0x10]
mov dx, word [ecx + 8]
mov word [ebp - 0x848], dx
mov eax, dword [ebp - 0x10]
movsx ecx, word [eax + 0xa]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x844]
push edx
call fcn.00591f60
add esp, 0xc
mov byte [ebp - 0x838], 0
push 0x3ff
push 0
lea eax, [ebp - 0x837]
push eax
call fcn.005912a0
add esp, 0xc
mov byte [ebp - 0x430], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x42f]
push ecx
call fcn.005912a0
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x838]
push eax
mov ecx, dword [ebp - 0x84c]
call fcn.00524410
lea ecx, [ebp - 0x838]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 0xc
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x434], 0
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x28], ax
xor ecx, ecx
mov dword [ebp - 0x26], ecx
mov dword [ebp - 0x22], ecx
mov dword [ebp - 0x1e], ecx
mov word [ebp - 0x1a], cx
mov dword [ebp - 0xc], 0
xor edx, edx
mov eax, dword [ebp - 8]
mov word [eax + 2], dx
mov ecx, dword [ebp - 8]
mov dx, word [ebp - 0x434]
mov word [ecx + 6], dx
mov eax, dword [ebp - 0x434]
add eax, 1
mov dword [ebp - 0x434], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 0x838]
push eax
mov ecx, dword [ebp - 0x84c]
call fcn.00524480
mov ecx, dword [ebp - 8]
mov word [ecx + 2], ax
push 0x10
lea edx, [ebp - 0x848]
push edx
push 0
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x838]
push ecx
mov edx, dword [ebp - 0x84c]
mov eax, dword [edx + 4]
push eax
call sub.WSOCK32.dll_sendto
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x5247c2
xor eax, eax
jmp 0x52484c
mov dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x28]
push edx
push 0
push 0x400
lea eax, [ebp - 0x430]
push eax
mov ecx, dword [ebp - 0x84c]
mov edx, dword [ecx + 4]
push edx
call sub.WSOCK32.dll_recvfrom
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x5247fb
xor eax, eax
jmp 0x52484c
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x430]
push edx
mov ecx, dword [ebp - 0x84c]
call fcn.00524500
mov eax, dword [ebp - 0x84c]
cmp dword [eax + 8], 0
je 0x524840
mov ecx, dword [ebp - 0x84c]
mov edx, dword [ecx + 8]
cmp dword [edx + 0x24], 1
jg 0x524840
mov eax, dword [ebp - 0x84c]
mov ecx, dword [eax + 8]
mov dword [ecx + 0x24], 1
mov edx, dword [ebp - 0x84c]
mov eax, dword [edx + 8]
mov eax, dword [eax + 0x24]
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0059146f
mov esp, ebp
pop ebp
ret 8