Function at 0x4028c0
Capabilities:
Create raw socket
Get socket status
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xad4
mov eax, dword [0x42e9bc]
push ebx
push esi
mov dword [esp + 0xad8], eax
push edi
lea eax, [esp + 0x948]
push eax
push 0x101
mov dword [esp + 0x14], 0x98967f
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x402975
mov esi, dword [ebp + 8]
mov byte [esp + 0x148], al
mov ecx, 0xff
lea edi, [esp + 0x149]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [esp + 0x548], 0
xor eax, eax
mov ecx, 0xff
lea edi, [esp + 0x549]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x128], ecx
stosw word es:[edi], ax
mov dword [esp + 0x12c], ecx
mov dword [esp + 0x130], ecx
push esi
stosb byte es:[edi], al
mov dword [esp + 0x138], ecx
mov word [esp + 0x12c], 2
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40298d
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x4029ad
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0x98967f
mov ecx, dword [esp + 0xadc]
call fcn.0040b4bc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov esi, dword [edx]
mov eax, ecx
shr ecx, 2
lea edi, [esp + 0x12c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4029b4
mov dword [esp + 0x12c], eax
push 1
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40296f
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], 3
jmp 0x4029e0
xor eax, eax
mov ecx, 0x100
lea edi, [esp + 0x148]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov eax, ecx
cdq
mov edi, 0x39
idiv edi
add dl, 0x41
mov byte [esp + ecx + 0x154], dl
inc ecx
cmp ecx, 0xa
jl 0x4029f2
mov byte [esp + 0x148], 8
mov byte [esp + 0x149], 0
mov word [esp + 0x14a], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov word [esp + 0x14c], ax
mov ax, word [0x42fbe4]
mov word [esp + 0x14e], ax
inc ax
mov word [0x42fbe4], ax
call ebx
lea ecx, [esp + 0x148]
push 0x16
push ecx
mov dword [esp + 0x158], eax
call fcn.00402860
add esp, 8
push 0x10
lea edx, [esp + 0x12c]
push edx
push 0
mov word [esp + 0x156], ax
push 0x16
lea eax, [esp + 0x158]
push eax
push esi
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
mov dword [esp + 0x138], ecx
mov dword [esp + 0x13c], ecx
mov dword [esp + 0x140], ecx
mov dword [esp + 0x144], ecx
xor eax, eax
lea edx, [esp + 0x18]
push edx
mov ecx, 0x100
lea edi, [esp + 0x54c]
rep stosd dword es:[edi], eax
mov eax, 2
push 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
push 0
lea eax, [esp + 0x2c]
push eax
push 1
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x402b5b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x12c
mov edi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
je 0x402b79
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x13c]
push edx
xor edi, edi
push edi
push 0x400
lea eax, [esp + 0x558]
push eax
push esi
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jle 0x402b67
mov cl, byte [esp + 0x548]
and cl, 0xf
movzx cx, cl
shl ecx, 2
movzx edi, cx
lea edx, [edi + 0xc]
cmp eax, edx
jl 0x402b62
call ebx
sub eax, dword [esp + edi + 0x550]
mov edi, eax
jmp 0x402b67
cmp eax, 1
je 0x402b03
jmp 0x402b79
mov edi, 0x98967f
cmp edi, dword [esp + 0xc]
jge 0x402b71
mov dword [esp + 0xc], edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
dec dword [esp + 0x10]
jne 0x4029e0
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0xadc]
mov eax, dword [esp + 0xc]
call fcn.0040b4bc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret