Function at 0x100032f0
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015f00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 1
push ebx
push ebx
push 1
push 3
mov edi, ecx
push 2
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
jne 0x10003370
mov dword [ebp - 0x2c], 0x1001d078
mov dword [ebp - 0x28], 0x368
mov dword [ebp - 0x24], 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x2c]
push str.DealICMP_:_WSASocket_Failed._Error___d
push eax
call fcn.10006230
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
push 4
push ecx
push 0x1005
push 0xffff
push eax
mov dword [ebp - 0x20], 0x7d0
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x100033ba
mov dword [ebp - 0x2c], 0x1001d078
mov dword [ebp - 0x28], 0x36f
mov dword [ebp - 0x24], 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [ebp - 0x2c]
push str.DealICMP_:_setsockopt_Failed._Error___d
push edx
jmp 0x10003355
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x1000335d
push 0x1000
push esi
mov ecx, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.10005d50
mov eax, dword [edi + 0x23c]
test eax, eax
je 0x100034c6
mov ecx, edi
call fcn.10005930
test eax, eax
jne 0x100034c6
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10003422
lea eax, [edi + 0x124]
mov ecx, edi
push eax
call fcn.10001e10
test eax, eax
mov dword [ebp - 0x18], eax
je 0x100033e9
mov cx, word [edi + 0x120]
mov dword [ebp - 0x14], 1
push ecx
mov word [ebp - 0x48], 2
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0x18]
mov word [ebp - 0x46], ax
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov word [esi + 6], bx
mov dword [ebp - 0x44], eax
mov word [esi + 2], 0
inc ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1000
push esi
mov ecx, edi
mov dword [esi + 8], eax
call fcn.10005970
mov ecx, dword [ebp - 0x1c]
mov word [esi + 2], ax
lea eax, [ebp - 0x48]
push 0x10
push eax
push 0
push 0x1000
push esi
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x100033e9
mov dword [ebp - 0x2c], 0x1001d078
mov dword [ebp - 0x28], 0x39b
mov dword [ebp - 0x24], 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [ebp - 0x2c]
push str.ICMP:_sendto_Failed._Error___d
push edx
call fcn.10006230
add esp, 0xc
jmp 0x100033e9
test esi, esi
je 0x100034da
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1c]
cmp eax, 0xffffffff
je 0x100034e9
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, edi
mov dword [ebp - 4], 0xffffffff
call fcn.10005d80
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret