Function at 0x402700
Capabilities:
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4040b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x141c
call fcn.004038c0
push ebx
push esi
mov dword [esp + 0x24], ecx
push edi
lea ecx, [esp + 0x3c]
call fcn.00402ca0
lea ecx, [esp + 0x668]
mov dword [esp + 0x1434], 0
call fcn.00401190
push 0
mov byte [esp + 0x1438], 1
call dword [sym.imp.MSVCR71.dll_time]
push eax
call dword [sym.imp.MSVCR71.dll_srand]
add esp, 8
lea ecx, [esp + 0x3c]
call fcn.00402cc0
lea eax, [esp + 0xa68]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call dword [sym.imp.MSVCR71.dll_rand]
mov edx, eax
xor eax, eax
mov ecx, 0x180
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
mov byte [esp + 0x69], al
mov byte [esp + 0x68], al
mov byte [esp + 0x76], al
mov byte [esp + 0x75], al
mov byte [esp + 0x74], al
mov eax, edx
mov dword [esp + 0x2c], edx
cdq
mov cl, 8
mov byte [esp + 0x6f], 0x60
mov byte [esp + 0x6e], 0x39
mov byte [esp + 0x6d], 0x20
mov byte [esp + 0x6c], 0x54
mov byte [esp + 0x6b], 0x34
mov byte [esp + 0x6a], 8
mov byte [esp + 0x77], 0xcc
mov byte [esp + 0x7b], al
call fcn.00403940
mov cl, 8
mov byte [esp + 0x7a], al
call fcn.00403940
mov cl, 8
mov byte [esp + 0x79], al
call fcn.00403940
mov esi, dword [ebp + 0x14]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x78], al
mov dword [esp + 0x38], edx
mov eax, esi
sub ecx, esi
lea ebx, [ebx]
mov dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
test dl, dl
jne 0x402810
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402820
sub eax, edx
mov esi, eax
mov eax, dword [ebp + 0x10]
lea edi, [esp + esi + 0x7d]
mov ecx, eax
sub edi, eax
mov dl, byte [ecx]
mov byte [edi + ecx], dl
inc ecx
test dl, dl
jne 0x402836
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402843
sub eax, ecx
lea esi, [esi + eax + 0x16]
lea ecx, [esi - 0xc]
push ecx
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x670]
mov dword [esp + 0x3c], esi
call fcn.00401010
cdq
mov cl, 8
mov byte [esp + 0x73], al
call fcn.00403940
mov cl, 8
mov byte [esp + 0x72], al
call fcn.00403940
mov cl, 8
mov byte [esp + 0x71], al
call fcn.00403940
mov byte [esp + 0x70], al
push esi
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x1c], edx
call fcn.00402d30
push 2
call fcn.00401e00
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
jne 0x4028f3
lea ecx, [esp + 0x668]
mov byte [esp + 0x1434], 0
call fcn.00401000
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1434], edi
call fcn.00402cb0
mov eax, 1
mov ecx, dword [esp + 0x142c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
push edx
mov dword [esp + 0x28], ecx
mov word [esp + 0x1c], 2
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [ebp + 8]
push ebx
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x402944
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40294e
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], 5
jmp 0x4029a0
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x668]
mov byte [esp + 0x1434], 0
call fcn.00401000
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1434], 0xffffffff
call fcn.00402cb0
mov eax, 2
mov ecx, dword [esp + 0x142c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [esp + 0x34]
lea ecx, [ecx]
mov ebx, dword [esp + 0x10]
push 0x10
lea eax, [esp + 0x1c]
push eax
push 0
push esi
lea ecx, [esp + 0x78]
push ecx
dec ebx
push edi
mov dword [esp + 0x28], ebx
call dword [sym.imp.WS2_32.dll_sendto]
mov ebx, 0x14
push 0x64
dec ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x5c]
push eax
push 0
push 0x830
lea ecx, [esp + 0xc08]
push ecx
push edi
mov dword [esp + 0x48], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
cmp esi, 0x14
jl 0x402a29
push esi
lea edx, [esp + 0xbfc]
push edx
lea ecx, [esp + 0x44]
call fcn.00402d80
mov eax, dword [esp + 0x2c]
push eax
push esi
lea ecx, [esp + 0xc00]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00401ea0
test eax, eax
jne 0x402a39
test ebx, ebx
jg 0x4029c4
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x402999
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [esp + 0x668]
mov byte [esp + 0x1434], 0
call fcn.00401000
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1434], 0xffffffff
call fcn.00402cb0
mov ecx, dword [esp + 0x142c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10