Function at 0x100167d0
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070410
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x1008c0c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x1008eb1a], 0
jne 0x10016b0b
push 0x190
lea eax, [ebp - 0x1f0]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1f0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10016b0b
lea eax, [ebp - 0x220]
mov dword [ebp - method.std::_Func_impl_no_alloc_class__lambda_76c246ac9ad7b12b8a4abfebfe6c3489___void___.virtual_0], vtable.std::_Func_impl_no_alloc_class__lambda_76c246ac9ad7b12b8a4abfebfe6c3489___void___.0
mov dword [ebp - 0x1fc], eax
lea ecx, [ebp - 0x220]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x14], 0
push eax
call fcn.1001bc40
mov ecx, dword [ebp - 0x1fc]
mov dword [ebp - 0x14], eax
test ecx, ecx
je 0x10016888
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x220]
cmp ecx, eax
setne al
push eax
call edx
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x1008c584], eax
cmp eax, 0xffffffff
jne 0x100168b0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 4], 0
jmp 0x10016ae7
lea eax, [ebp - 0x248]
mov dword [ebp - method.std::_Func_impl_no_alloc_class__lambda_44da34e3172e6682be440f936d7cb97e___void___.virtual_0], vtable.std::_Func_impl_no_alloc_class__lambda_44da34e3172e6682be440f936d7cb97e___void___.0
mov dword [ebp - 0x224], eax
lea ecx, [ebp - 0x248]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x3c], 0
push eax
call fcn.1001bbd0
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 0x3c], eax
test ecx, ecx
je 0x100168fc
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x248]
cmp ecx, eax
setne al
push eax
call edx
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x1f8]
push 4
push eax
push 0x1001
push 0xffff
push dword [0x1008c584]
mov dword [ebp - 0x1f8], 0x10000
mov dword [ebp - 0x1f4], 0x200000
call esi
cmp eax, 0xffffffff
je 0x10016aa9
push 4
lea eax, [ebp - 0x1f4]
push eax
push 0x1002
push 0xffff
push dword [0x1008c584]
call esi
cmp eax, 0xffffffff
je 0x10016aa9
mov ecx, edi
call fcn.1002bdf0
test al, al
jne 0x100169a6
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x1001699a
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x1001699a
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x60]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 4
jmp 0x10016ae7
sub esp, 0x28
mov eax, esp
mov dword [eax], vtable.._AV___Func_impl_no_alloc_P6AXPBDG__EXPBDG_std__.0
mov dword [eax + 4], 0x10017e30
mov dword [eax + 0x24], eax
call fcn.1002c170
mov eax, esp
mov dword [eax], vtable.._AV___Func_impl_no_alloc_P6A_NAAUPacket____E_NAAU1__std__.0
mov dword [eax + 4], 0x10017f80
mov dword [eax + 0x24], eax
call fcn.1002c410
mov eax, esp
mov dword [eax], vtable.._AV___Func_impl_no_alloc_P6A_NHAAVBitStream____E_NHAAV1__std__.0
mov dword [eax + 4], 0x10017ef0
mov dword [eax + 0x24], eax
call fcn.1002c6e0
mov eax, esp
mov dword [eax], vtable.._AV___Func_impl_no_alloc_P6AXX_EX__V_std__.0
mov dword [eax + 4], 0x10018270
mov dword [eax + 0x24], eax
call fcn.1002c980
mov ecx, dword [ebp - 0x14]
add esp, 0x28
mov dword [0x1008eb74], 0
test ecx, ecx
je 0x10016a2e
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
push eax
call edx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x10016a4f
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x60]
cmp esi, eax
setne al
push eax
call edx
mov ecx, dword [ebp - 0x14]
xor esi, esi
mov dword [ebp - 0x3c], esi
mov byte [0x1008eb1a], 1
mov dword [ebp - 4], 5
test esi, esi
je 0x10016a7d
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x60]
cmp esi, eax
setne al
push eax
call edx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 6
test ecx, ecx
je 0x10016aa5
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10016aa5
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov al, 1
jmp 0x10016b0d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x10016ae0
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x10016ae0
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x60]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10016b0b
mov eax, dword [ecx]
call dword [eax + 8]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10016b0b
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006bfcb
mov esp, ebp
pop ebp
ret