Function at 0x1002c5a0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10071064
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x1008a748]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x6c]
mov byte [eax + 0x44], 0
lea ecx, [ebp - 0x68]
call fcn.1000ce30
mov dword [ebp - 4], 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x6c]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0x6c]
cmp dword [edx + 0xc], 0xffffffff
jne 0x1002c6aa
mov byte [ebp - 0x68], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0xfc]
push ecx
call fcn.1000cd30
add esp, 8
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x78], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x78]
push eax
push str.create_socket_error:
lea ecx, [ebp - 0xb4]
push ecx
call fcn.10013600
add esp, 0xc
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
push edx
lea ecx, [ebp - 0x64]
call fcn.10011710
lea ecx, [ebp - 0xb4]
call fcn.10005300
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xfc]
call fcn.10005300
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000fe90
mov ecx, dword [ebp - 0x70]
or ecx, 1
mov dword [ebp - 0x70], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.1000ed40
mov eax, dword [ebp + 8]
jmp 0x1002c93a
lea edx, [ebp - 0x174]
push edx
mov ecx, dword [ebp - 0x6c]
call fcn.1002c2d0
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x68]
call fcn.10010990
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x174]
call fcn.1000ed40
movzx edx, byte [ebp - 0x68]
test edx, edx
jne 0x1002c721
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000fe90
mov ecx, dword [ebp - 0x70]
or ecx, 1
mov dword [ebp - 0x70], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.1000ed40
mov eax, dword [ebp + 8]
jmp 0x1002c93a
lea edx, [ebp - 0x1bc]
push edx
mov ecx, dword [ebp - 0x6c]
call fcn.1002c4d0
lea ecx, [ebp - 0x1bc]
call fcn.1000ed40
mov eax, 2
mov word [ebp - 0x20], ax
mov ecx, dword [ebp - 0x6c]
add ecx, 0x10
call fcn.10005380
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x6c]
movzx edx, word [ecx + 0x28]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
push 0x10
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1002c840
mov byte [ebp - 0x68], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x12c]
push ecx
call fcn.1000cd30
add esp, 8
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x88], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x88]
push eax
push str.bind_error:
lea ecx, [ebp - 0xe4]
push ecx
call fcn.10013600
add esp, 0xc
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x98]
push edx
lea ecx, [ebp - 0x64]
call fcn.10011710
lea ecx, [ebp - 0xe4]
call fcn.10005300
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.10005300
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
lea edx, [ebp - 0x68]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000fe90
mov eax, dword [ebp - 0x70]
or eax, 1
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.1000ed40
mov eax, dword [ebp + 8]
jmp 0x1002c93a
push 3
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1002c902
mov byte [ebp - 0x68], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0xcc]
push ecx
call fcn.1000cd30
add esp, 8
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x74], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x74]
push eax
push str.listen_error:
lea ecx, [ebp - 0x114]
push ecx
call fcn.10013600
add esp, 0xc
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x64]
call fcn.10011710
lea ecx, [ebp - 0x114]
call fcn.10005300
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xcc]
call fcn.10005300
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
lea edx, [ebp - 0x68]
push edx
mov ecx, dword [ebp + 8]
call fcn.1000fe90
mov eax, dword [ebp - 0x70]
or eax, 1
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.1000ed40
mov eax, dword [ebp + 8]
jmp 0x1002c93a
mov byte [ebp - 0x68], 1
push 0x1007e392
lea ecx, [ebp - 0x64]
call fcn.100117c0
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1000fe90
mov edx, dword [ebp - 0x70]
or edx, 1
mov dword [ebp - 0x70], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.1000ed40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003fec6
mov esp, ebp
pop ebp
ret 4