Function at 0x418fa3
Capabilities:
Create raw socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov eax, dword [0x483e68]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x1c0], eax
lea eax, [ebp - 0x1a4]
push eax
xor esi, esi
push 0x202
mov dword [ebp - 0x1b4], ecx
mov dword [ebp - 0x1b8], esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x418ffe
or eax, 0xffffffff
jmp 0x419198
push ebx
push 1
push esi
push esi
push 1
push 3
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
mov dword [ebp - 0x1a8], ebx
cmp ebx, 0xffffffff
jne 0x41902f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x419197
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push edi
push 4
lea eax, [ebp - 0x1c0]
push eax
push 0x1006
mov edi, 0xffff
push edi
push ebx
call esi
cmp eax, 0xffffffff
je 0x419069
push 4
lea eax, [ebp - 0x1c0]
push eax
push 0x1005
push edi
push ebx
call esi
cmp eax, 0xffffffff
jne 0x41906f
push ebx
jmp 0x419188
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.004374f0
add esp, 0xc
push 2
pop eax
push dword [ebp - 0x1ac]
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
mov ebx, 0x400
push ebx
push 8
mov dword [ebp - 0x10], eax
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
push ebx
push 8
mov edi, eax
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
xor ecx, ecx
mov dword [ebp - 0x1b0], eax
cmp edi, ecx
je 0x419182
cmp eax, ecx
jne 0x4190de
push ecx
push ecx
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_HeapFree]
jmp 0x419182
push ebx
push ecx
push edi
call fcn.004374f0
mov ecx, dword [ebp - 0x1b4]
add esp, 0xc
push 0x2c
push edi
call fcn.00418ec5
and dword [ebp - 0x1ac], 0
cmp dword [ebp + 0x10], 0
jle 0x419215
xor eax, eax
mov word [edi + 2], ax
mov ax, word [ebp - 0x1b8]
inc dword [ebp - 0x1b8]
mov word [edi + 6], ax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [ebp - 0x1b4]
push 0x2c
push edi
mov dword [edi + 8], eax
call fcn.00418eff
push 0x10
mov word [edi + 2], ax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x2c
push edi
push dword [ebp - 0x1a8]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x4191a7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274c
je 0x419200
push dword [ebp - 0x1b0]
push 0
call esi
mov ebx, dword [sym.imp.KERNEL32.DLL_HeapFree]
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
push dword [ebp - 0x1a8]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00435805
leave
ret 0x10
and dword [ebp - 0x1bc], 0
mov eax, dword [ebp - 0x1bc]
inc dword [ebp - 0x1bc]
cmp eax, 0x1e
je 0x4191f5
push 0
push ebx
push dword [ebp - 0x1b0]
push dword [ebp - 0x1a8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x419241
push dword [ebp - 0x1c4]
mov ecx, dword [ebp - 0x1b4]
push eax
push dword [ebp - 0x1b0]
call fcn.00418f50
test eax, eax
je 0x4191ae
push 0x12c
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc dword [ebp - 0x1ac]
mov eax, dword [ebp - 0x1ac]
cmp eax, dword [ebp + 0x10]
jl 0x419108
push dword [ebp - 0x1a8]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [ebp - 0x1b0]
push 0
call esi
mov ebx, dword [sym.imp.KERNEL32.DLL_HeapFree]
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
xor esi, esi
inc esi
jmp 0x419270
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [ebp - 0x1b0]
push 0
call esi
mov ebx, dword [sym.imp.KERNEL32.DLL_HeapFree]
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
push dword [ebp - 0x1a8]
call dword [sym.imp.WS2_32.dll_closesocket]
xor esi, esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, esi
jmp 0x419196