Function at 0x10031fe0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007bdae
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
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 - 0x78], ecx
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x6c]
call fcn.1000b050
mov dword [ebp - 4], 0
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x74], 0xffffffff
jne 0x100320e9
mov byte [ebp - 0x6c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0xf0]
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], 1
mov eax, dword [ebp - 0x88]
push eax
push str.create_udp_socket_error:
lea ecx, [ebp - 0xa8]
push ecx
call fcn.10012cf0
add esp, 0xc
mov dword [ebp - 0x84], eax
mov edx, dword [ebp - 0x84]
push edx
lea ecx, [ebp - 0x68]
call fcn.10010150
lea ecx, [ebp - 0xa8]
call fcn.10005610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xf0]
call fcn.10005610
lea eax, [ebp - 0x6c]
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 - 0x6c]
call fcn.1000d220
mov eax, dword [ebp + 8]
jmp 0x1003225b
mov dword [ebp - 0x14], 0x40000
push 4
lea edx, [ebp - 0x14]
push edx
push 0x1002
push 0xffff
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 0x14]
push ecx
push 0x1001
push 0xffff
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, 2
mov word [ebp - 0x24], ax
mov ecx, dword [ebp - 0x78]
movzx edx, word [ecx + 0xa6]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
mov ecx, dword [ebp - 0x78]
add ecx, 0x8c
call fcn.10005690
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x20], eax
push 0x10
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x74]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1003221a
mov byte [ebp - 0x6c], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
push edx
lea eax, [ebp - 0xc0]
push eax
call fcn.1000af50
add esp, 8
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x8c]
push edx
push str.bind_error:
lea eax, [ebp - 0xd8]
push eax
call fcn.10012cf0
add esp, 0xc
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x68]
call fcn.10010150
lea ecx, [ebp - 0xd8]
call fcn.10005610
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc0]
call fcn.10005610
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x6c]
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 - 0x6c]
call fcn.1000d220
mov eax, dword [ebp + 8]
jmp 0x1003225b
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x74]
mov dword [edx + 0x28], eax
mov byte [ebp - 0x6c], 1
push 0x100894aa
lea ecx, [ebp - 0x68]
call fcn.10010200
lea ecx, [ebp - 0x6c]
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 - 0x6c]
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