Function at 0x415800
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x606c82
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x6ab0d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
movzx eax, word [ebp + 8]
push 0x11
push 2
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4158ab
cmp byte [0x6b2b20], 0
je 0x4158a4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0xc4]
call fcn.004029b0
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x415871
mov eax, dword [eax]
push eax
push str.__s_xunyou_report__create_socket_failed
push 3
push 0x6b2b20
call fcn.00403570
mov eax, dword [ebp - 0xb0]
add esp, 0x10
cmp eax, 8
jb 0x4158a4
inc eax
lea ecx, [ebp - 0xc4]
push eax
push dword [ebp - 0xc4]
call fcn.00408960
xor al, al
jmp 0x415b54
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 4
push eax
push 0x2003
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x415923
cmp byte [0x6b2b20], 0
je 0x415b06
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0xc4]
call fcn.004029b0
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x415906
mov eax, dword [eax]
push eax
push str.__s_xunyou_report__get_sock_opt_max_msg_size_failed
push 3
push 0x6b2b20
call fcn.00403570
lea ecx, [ebp - 0xc4]
jmp 0x415afe
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x20]
push 4
push eax
push 4
push 0xffff
push esi
mov dword [ebp - 0x20], 1
call edi
cmp eax, 0xffffffff
jne 0x415991
cmp byte [0x6b2b20], 0
je 0x415b06
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0xc4]
call fcn.004029b0
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x415974
mov eax, dword [eax]
push eax
push str.__s_xunyou_report__set_sock_opt_reuse_addr_failed
push 3
push 0x6b2b20
call fcn.00403570
lea ecx, [ebp - 0xc4]
jmp 0x415afe
push 4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1f4
push eax
push 0x1005
push 0xffff
push esi
call edi
cmp eax, 0xffffffff
jne 0x4159fc
cmp byte [0x6b2b20], 0
je 0x415b06
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0xc4]
call fcn.004029b0
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4159df
mov eax, dword [eax]
push eax
push str.__s_xunyou_report__set_sock_opt_send_timeout_failed
push 3
push 0x6b2b20
call fcn.00403570
lea ecx, [ebp - 0xc4]
jmp 0x415afe
push 0x80
lea eax, [ebp - 0xac]
push 0
push eax
call fcn.005d2630
mov ax, word [ebp + 8]
add esp, 0xc
mov word [ebp - 0xac], ax
xor eax, eax
mov word [ebp - 0xaa], ax
lea eax, [ebp - 0xac]
push 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x415a87
cmp byte [0x6b2b20], 0
je 0x415b06
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0xc4]
call fcn.004029b0
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x415a6d
mov eax, dword [eax]
push eax
push str.__s_xunyou_report__socket_bind_failed
push 3
push 0x6b2b20
call fcn.00403570
lea ecx, [ebp - 0xc4]
jmp 0x415afe
push 0x80
lea eax, [ebp - 0xac]
push 0
push eax
call fcn.005d2630
add esp, 0xc
mov dword [ebp - 0x28], 0x80
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0xac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x415b11
cmp byte [0x6b2b20], 0
je 0x415b06
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0xdc]
call fcn.004029b0
mov dword [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x415ae6
mov eax, dword [eax]
push eax
push str.__s_xunyou_report__get_sock_name_failed
push 3
push 0x6b2b20
call fcn.00403570
lea ecx, [ebp - 0xdc]
add esp, 0x10
call fcn.004044f0
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
jmp 0x415b54
mov eax, dword [ebp - 0x18]
lea edi, [ebx + 0x28]
mov dword [ebx + 0x128], esi
mov ecx, 0x20
lea esi, [ebp - 0xac]
mov dword [ebx + 0x12c], eax
rep movsd dword es:[edi], dword [esi]
cmp byte [0x6b2b20], 0
je 0x415b52
movzx eax, word [ebx + 0x2a]
push eax
push str.__d_xunyou_report__socket_create_succeed
push 1
push 0x6b2b20
call fcn.00403570
add esp, 0x10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005697c8
mov esp, ebp
pop ebp
ret 4