Function at 0x10002e60
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 0x10015ee0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
push 1
push 0
push 0
push 0xff
push 3
push 2
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10002ee6
mov dword [ebp - 0x2c], 0x1001d078
mov dword [ebp - 0x28], 0x2c6
mov dword [ebp - 0x24], 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x2c]
push str.DealSYN_:_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
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 0x1c]
push 4
push ecx
push 2
push 0
push ebx
mov dword [ebp - 0x1c], 1
call esi
cmp eax, 0xffffffff
jne 0x10002f4c
mov dword [ebp - 0x2c], 0x1001d078
mov dword [ebp - 0x28], 0x2cd
mov dword [ebp - 0x24], 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea edx, [ebp - 0x2c]
push str.DealSYN_:_setsockopt_IP_HDRINCL_Failed._Error___d
push edx
call fcn.10006230
add esp, 0xc
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
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 eax, [ebp - 0x20]
push 4
push eax
push 0x1005
push 0xffff
push ebx
mov dword [ebp - 0x20], 0x1388
call esi
cmp eax, 0xffffffff
jne 0x10002f92
mov dword [ebp - 0x2c], 0x1001d078
mov dword [ebp - 0x28], 0x2d5
mov dword [ebp - 0x24], 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x2c]
push str.DealSYN_:_setsockopt_SO_SNDTIMEO_Failed._Error___d
push ecx
jmp 0x10002f2a
mov edx, dword [edi + 0x120]
xor eax, eax
push edx
push eax
mov ecx, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.10005a20
mov eax, dword [edi + 0x23c]
test eax, eax
je 0x1000308a
mov ecx, edi
call fcn.10005930
test eax, eax
jne 0x1000308a
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x10002fe2
lea eax, [edi + 0x124]
mov ecx, edi
push eax
call fcn.10001e10
test eax, eax
mov dword [ebp - 0x18], eax
je 0x10002fa9
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 dword [ebp - 0x44], eax
xor esi, esi
cmp esi, 0x1000
jge 0x10002fa9
mov eax, dword [edi + 0x23c]
test eax, eax
je 0x1000308a
mov ecx, edi
call fcn.10005930
test eax, eax
jne 0x10002fa9
lea eax, [ebp - 0x48]
push 0x10
push eax
lea eax, [esi + esi*2]
push 0
push 0x28
lea ecx, [eax + eax*4]
lea edx, [edi + ecx*4 + 0x240]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x10003087
mov dword [ebp - 0x2c], 0x1001d078
mov dword [ebp - 0x28], 0x2fa
mov dword [ebp - 0x24], 0x100
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x2c]
push str.SYN:_sendto_Error___d
push eax
call fcn.10006230
add esp, 0xc
jmp 0x10002fa9
inc esi
jmp 0x10003010
cmp ebx, 0xffffffff
je 0x10003096
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
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