Function at 0x408af0
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x490e2d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4b0300]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
push 1
push 0
push 0
push 6
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push 2
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
lea ecx, [ebp - 0x1c]
cmp edi, 0xffffffff
sete dl
call fcn.004063a0
or eax, 0xffffffff
cmp edi, eax
cmove edi, eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], 0
cmp edi, eax
jne 0x408bab
test byte [ebp - 0x14], 1
mov dword [ebp - 0x2c], str.C:UserspcDesktopImGui_Standalone_mainSourcepackages_boost.1.86.0lib_nativeinclude_boost_asiodetailimpl_socket_select_interrupter.ipp
mov dword [ebp - 0x28], str.void___thiscall_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov dword [ebp - 0x24], 0x32
mov dword [ebp - 0x20], 0x1a
je 0x408ba2
cmp dword [ebp - 0x14], 1
jne 0x409215
cmp dword [ebp - 0x1c], 0
setne al
test al, al
jne 0x409215
jmp 0x408bab
mov dword [ebp - 0x30], 1
jmp 0x408bb7
mov dword [ebp - 0x30], 1
cmp edi, 0xffffffff
jne 0x408c1b
mov ecx, dword [0x4b0e00]
mov eax, dword [0x4b0e04]
cmp ecx, 0x257edfd1
jne 0x408bd1
cmp eax, 0xb2ab117a
je 0x408be0
cmp ecx, 0x257edfd0
jne 0x408be4
cmp eax, 0xb2ab117a
jne 0x408be4
mov al, 1
jmp 0x408bf8
mov eax, dword [0x4b0df8]
mov ecx, 0x4b0df8
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [ebp - 0x28], 0x2719
add eax, 2
mov dword [ebp - 0x24], 0x4b0df8
movq xmm0, qword [ebp - 0x28]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], eax
jmp 0x408c3c
push 4
lea eax, [ebp - 0x30]
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [ebp - 0x1c]
setne dl
call fcn.004063a0
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
xorps xmm0, xmm0
mov eax, 2
mov dword [ebp - 0x34], 0x10
push 0x7f000001
movlpd qword [ebp - 0x40], xmm0
mov word [ebp - 0x48], ax
call ebx
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x48]
xor eax, eax
mov ecx, edi
mov word [ebp - 0x46], ax
lea eax, [ebp - 0x1c]
push eax
push 0x10
call fcn.00406430
add esp, 8
cmp eax, 0xffffffff
jne 0x408cbd
test byte [ebp - 0x14], 1
mov dword [ebp - 0x2c], str.C:UserspcDesktopImGui_Standalone_mainSourcepackages_boost.1.86.0lib_nativeinclude_boost_asiodetailimpl_socket_select_interrupter.ipp
mov dword [ebp - 0x28], str.void___thiscall_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov dword [ebp - 0x24], 0x42
mov dword [ebp - 0x20], 0x1a
je 0x408cbd
cmp dword [ebp - 0x14], 1
jne 0x409226
cmp dword [ebp - 0x1c], 0
setne al
test al, al
jne 0x409226
cmp edi, 0xffffffff
jne 0x408d26
mov ecx, dword [0x4b0e00]
mov eax, dword [0x4b0e04]
cmp ecx, 0x257edfd1
jne 0x408cdc
cmp eax, 0xb2ab117a
je 0x408ceb
cmp ecx, 0x257edfd0
jne 0x408cef
cmp eax, 0xb2ab117a
jne 0x408cef
mov al, 1
jmp 0x408d03
mov eax, dword [0x4b0df8]
mov ecx, 0x4b0df8
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [ebp - 0x28], 0x2719
add eax, 2
mov dword [ebp - 0x24], 0x4b0df8
movq xmm0, qword [ebp - 0x28]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], eax
jmp 0x408d59
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x10
push eax
lea eax, [ebp - 0x48]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
mov esi, eax
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x34]
test esi, esi
mov dword [ebp - 0x34], eax
setne dl
call fcn.004063a0
cmp esi, 0xffffffff
jne 0x408d93
mov eax, dword [ebp - 0x14]
test byte [ebp - 0x14], 1
mov dword [ebp - 0x2c], str.C:UserspcDesktopImGui_Standalone_mainSourcepackages_boost.1.86.0lib_nativeinclude_boost_asiodetailimpl_socket_select_interrupter.ipp
mov dword [ebp - 0x28], str.void___thiscall_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov dword [ebp - 0x24], 0x46
mov dword [ebp - 0x20], 0x1a
je 0x408d93
cmp eax, 1
jne 0x409237
cmp dword [ebp - 0x1c], 0
setne al
test al, al
jne 0x409237
push 0
call ebx
cmp dword [ebp - 0x44], eax
jne 0x408da6
push 0x7f000001
call ebx
mov dword [ebp - 0x44], eax
cmp edi, 0xffffffff
jne 0x408e0f
mov ecx, dword [0x4b0e00]
mov eax, dword [0x4b0e04]
cmp ecx, 0x257edfd1
jne 0x408dc5
cmp eax, 0xb2ab117a
je 0x408dd4
cmp ecx, 0x257edfd0
jne 0x408dd8
cmp eax, 0xb2ab117a
jne 0x408dd8
mov al, 1
jmp 0x408dec
mov eax, dword [0x4b0df8]
mov ecx, 0x4b0df8
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [ebp - 0x28], 0x2719
add eax, 2
mov dword [ebp - 0x24], 0x4b0df8
movq xmm0, qword [ebp - 0x28]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], eax
jmp 0x408e32
push bind
push edi
call dword [sym.imp.WS2_32.dll_listen]
mov esi, eax
lea ecx, [ebp - 0x1c]
test esi, esi
setne dl
call fcn.004063a0
cmp esi, 0xffffffff
jne 0x408e6c
mov eax, dword [ebp - 0x14]
test byte [ebp - 0x14], 1
mov dword [ebp - 0x2c], str.C:UserspcDesktopImGui_Standalone_mainSourcepackages_boost.1.86.0lib_nativeinclude_boost_asiodetailimpl_socket_select_interrupter.ipp
mov dword [ebp - 0x28], str.void___thiscall_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov dword [ebp - 0x24], 0x50
mov dword [ebp - 0x20], 0x1a
je 0x408e6c
cmp eax, 1
jne 0x409248
cmp dword [ebp - 0x1c], 0
setne al
test al, al
jne 0x409248
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ebx, eax
lea ecx, [ebp - 0x1c]
cmp ebx, 0xffffffff
sete dl
call fcn.004063a0
cmp ebx, 0xffffffff
mov eax, 0xffffffff
cmove ebx, eax
mov dword [ebp - 0x58], ebx
mov byte [ebp - 4], 1
cmp ebx, eax
jne 0x408edf
test byte [ebp - 0x14], 1
mov dword [ebp - 0x2c], str.C:UserspcDesktopImGui_Standalone_mainSourcepackages_boost.1.86.0lib_nativeinclude_boost_asiodetailimpl_socket_select_interrupter.ipp
mov dword [ebp - 0x28], str.void___thiscall_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov dword [ebp - 0x24], 0x55
mov dword [ebp - 0x20], 0x1a
je 0x408edf
cmp dword [ebp - 0x14], 1
jne 0x409259
cmp dword [ebp - 0x1c], 0
setne al
test al, al
jne 0x409259
lea eax, [ebp - 0x1c]
mov ecx, ebx
push eax
push dword [ebp - 0x34]
lea edx, [ebp - 0x48]
call fcn.004066c0
add esp, 8
cmp eax, 0xffffffff
jne 0x408f33
test byte [ebp - 0x14], 1
mov dword [ebp - 0x2c], str.C:UserspcDesktopImGui_Standalone_mainSourcepackages_boost.1.86.0lib_nativeinclude_boost_asiodetailimpl_socket_select_interrupter.ipp
mov dword [ebp - 0x28], str.void___thiscall_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov dword [ebp - 0x24], 0x59
mov dword [ebp - 0x20], 0x1a
je 0x408f33
cmp dword [ebp - 0x14], 1
jne 0x40926a
cmp dword [ebp - 0x1c], 0
setne al
test al, al
jne 0x40926a
cmp edi, 0xffffffff
jne 0x408f97
mov ecx, dword [0x4b0e00]
mov eax, dword [0x4b0e04]
cmp ecx, 0x257edfd1
jne 0x408f52
cmp eax, 0xb2ab117a
je 0x408f61
cmp ecx, 0x257edfd0
jne 0x408f65
cmp eax, 0xb2ab117a
jne 0x408f65
mov al, 1
jmp 0x408f79
mov eax, dword [0x4b0df8]
mov ecx, 0x4b0df8
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [ebp - 0x28], 0x2719
mov dword [ebp - 0x24], 0x4b0df8
or esi, 0xffffffff
movq xmm0, qword [ebp - 0x28]
jmp 0x408fc3
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
lea ecx, [ebp - 0x1c]
cmp esi, 0xffffffff
sete dl
call fcn.004063a0
cmp esi, 0xffffffff
jne 0x408fbe
mov eax, dword [ebp - 0x14]
or esi, esi
jmp 0x408fcb
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0x14], eax
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x34], esi
mov byte [ebp - 4], 2
cmp esi, 0xffffffff
jne 0x409011
test byte [ebp - 0x14], 1
mov dword [ebp - 0x2c], str.C:UserspcDesktopImGui_Standalone_mainSourcepackages_boost.1.86.0lib_nativeinclude_boost_asiodetailimpl_socket_select_interrupter.ipp
mov dword [ebp - 0x28], str.void___thiscall_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov dword [ebp - 0x24], 0x5d
mov dword [ebp - 0x20], 0x1a
je 0x409011
cmp eax, 1
jne 0x40927b
cmp dword [ebp - 0x1c], 0
setne al
test al, al
jne 0x40927b
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x38], 1
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 0x49], 0
push eax
push ecx
lea edx, [ebp - 0x49]
mov ecx, ebx
call fcn.00407110
add esp, 0xc
test eax, eax
je 0x409071
test byte [ebp - 0x14], 1
mov dword [ebp - 0x2c], str.C:UserspcDesktopImGui_Standalone_mainSourcepackages_boost.1.86.0lib_nativeinclude_boost_asiodetailimpl_socket_select_interrupter.ipp
mov dword [ebp - 0x28], str.void___thiscall_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov dword [ebp - 0x24], 0x63
mov dword [ebp - 0x20], 0x1a
je 0x409071
cmp dword [ebp - 0x14], 1
jne 0x40928c
cmp dword [ebp - 0x1c], 0
setne al
test al, al
jne 0x40928c
mov dword [ebp - 0x30], 1
cmp ebx, 0xffffffff
jne 0x4090e1
mov ecx, dword [0x4b0e00]
mov eax, dword [0x4b0e04]
cmp ecx, 0x257edfd1
jne 0x409097
cmp eax, 0xb2ab117a
je 0x4090a6
cmp ecx, 0x257edfd0
jne 0x4090aa
cmp eax, 0xb2ab117a
jne 0x4090aa
mov al, 1
jmp 0x4090be
mov eax, dword [0x4b0df8]
mov ecx, 0x4b0df8
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [ebp - 0x28], 0x2719
add eax, 2
mov dword [ebp - 0x24], 0x4b0df8
movq xmm0, qword [ebp - 0x28]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], eax
jmp 0x4090ff
push 4
lea eax, [ebp - 0x30]
push eax
push 1
push 6
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [ebp - 0x1c]
setne dl
call fcn.004063a0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x38], 1
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 0x49], 0
push eax
push ecx
lea edx, [ebp - 0x49]
mov ecx, esi
call fcn.00407110
add esp, 0xc
test eax, eax
je 0x40915f
test byte [ebp - 0x14], 1
mov dword [ebp - 0x2c], str.C:UserspcDesktopImGui_Standalone_mainSourcepackages_boost.1.86.0lib_nativeinclude_boost_asiodetailimpl_socket_select_interrupter.ipp
mov dword [ebp - 0x28], str.void___thiscall_boost::asio::detail::socket_select_interrupter::open_descriptors_void_
mov dword [ebp - 0x24], 0x6d
mov dword [ebp - 0x20], 0x1a
je 0x40915f
cmp dword [ebp - 0x14], 1
jne 0x40929d
cmp dword [ebp - 0x1c], 0
setne al
test al, al
jne 0x40929d
mov dword [ebp - 0x30], 1
cmp esi, 0xffffffff
jne 0x4091a8
mov edx, dword [0x4b0e00]
mov eax, dword [0x4b0e04]
cmp edx, 0x257edfd1
jne 0x409185
cmp eax, 0xb2ab117a
je 0x4091c6
cmp edx, 0x257edfd0
jne 0x409194
cmp eax, 0xb2ab117a
je 0x4091c6
mov eax, dword [0x4b0df8]
mov ecx, 0x4b0df8
push 0x2719
call dword [eax + 0x18]
jmp 0x4091c6
push 4
lea eax, [ebp - 0x30]
push eax
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
lea ecx, [ebp - 0x1c]
setne dl
call fcn.004063a0
mov eax, dword [ebp - 0x50]
mov dword [eax], esi
mov dword [eax + 4], ebx
cmp edi, 0xffffffff
je 0x4091f9
lea eax, [ebp - 0x28]
mov dword [ebp - 0x20], 0
push eax
xorps xmm0, xmm0
mov byte [ebp - 0x49], 0
push 1
lea edx, [ebp - 0x49]
movq qword [ebp - 0x28], xmm0
mov ecx, edi
call fcn.004064d0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00469231
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2c]
mov edx, str.socket_select_interrupter
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402c90
lea eax, [ebp - 0x2c]
mov edx, str.socket_select_interrupter
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402c90
lea eax, [ebp - 0x2c]
mov edx, str.socket_select_interrupter
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402c90
lea eax, [ebp - 0x2c]
mov edx, str.socket_select_interrupter
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402c90
lea eax, [ebp - 0x2c]
mov edx, str.socket_select_interrupter
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402c90
lea eax, [ebp - 0x2c]
mov edx, str.socket_select_interrupter
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402c90
lea eax, [ebp - 0x2c]
mov edx, str.socket_select_interrupter
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402c90
lea eax, [ebp - 0x2c]
mov edx, str.socket_select_interrupter
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402c90
lea eax, [ebp - 0x2c]
mov edx, str.socket_select_interrupter
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402c90
int3