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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b814
mov eax, dword fs:[0]
push eax
sub esp, 0x1b0
mov eax, dword [0x10096748]
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 + 0x48], 0
lea ecx, [ebp - 0x68]
call fcn.1000b050
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 0x1002d9ba
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.1000af50
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.10012cf0
add esp, 0xc
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
push edx
lea ecx, [ebp - 0x64]
call fcn.10010150
lea ecx, [ebp - 0xb4]
call fcn.10005610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xfc]
call fcn.10005610
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000e8a0
mov ecx, dword [ebp - 0x70]
or ecx, 1
mov dword [ebp - 0x70], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.1000d220
mov eax, dword [ebp + 8]
jmp 0x1002dc4a
lea edx, [ebp - 0x174]
push edx
mov ecx, dword [ebp - 0x6c]
call fcn.1002d5e0
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.1000f3a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x174]
call fcn.1000d220
movzx edx, byte [ebp - 0x68]
test edx, edx
jne 0x1002da31
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp + 8]
call fcn.1000e8a0
mov ecx, dword [ebp - 0x70]
or ecx, 1
mov dword [ebp - 0x70], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.1000d220
mov eax, dword [ebp + 8]
jmp 0x1002dc4a
lea edx, [ebp - 0x1bc]
push edx
mov ecx, dword [ebp - 0x6c]
call fcn.1002d7e0
lea ecx, [ebp - 0x1bc]
call fcn.1000d220
mov eax, 2
mov word [ebp - 0x20], ax
mov ecx, dword [ebp - 0x6c]
add ecx, 0x10
call fcn.10005690
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 + 0x2a]
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 0x1002db50
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.1000af50
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 0x1008a654
lea ecx, [ebp - 0xe4]
push ecx
call fcn.10012cf0
add esp, 0xc
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x98]
push edx
lea ecx, [ebp - 0x64]
call fcn.10010150
lea ecx, [ebp - 0xe4]
call fcn.10005610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x12c]
call fcn.10005610
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.1000e8a0
mov eax, dword [ebp - 0x70]
or eax, 1
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.1000d220
mov eax, dword [ebp + 8]
jmp 0x1002dc4a
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 0x1002dc12
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.1000af50
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.10012cf0
add esp, 0xc
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
push edx
lea ecx, [ebp - 0x64]
call fcn.10010150
lea ecx, [ebp - 0x114]
call fcn.10005610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xcc]
call fcn.10005610
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.1000e8a0
mov eax, dword [ebp - 0x70]
or eax, 1
mov dword [ebp - 0x70], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.1000d220
mov eax, dword [ebp + 8]
jmp 0x1002dc4a
mov byte [ebp - 0x68], 1
push 0x10089473
lea ecx, [ebp - 0x64]
call fcn.10010200
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [ebp + 8]
call fcn.1000e8a0
mov edx, dword [ebp - 0x70]
or edx, 1
mov dword [ebp - 0x70], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.1000d220
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.1004910b
mov esp, ebp
pop ebp
ret 4