Function at 0x10078dc0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub esp, 0x34
mov eax, dword [0x100ed040]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push edi
mov edi, dword [esp + 0x4c]
push str.C:ProjectsWorkProjects_forexcopierlocalCopierClientCPPLibraries_vcpkg_buildtreescurl_srcurl_7_83_1_606f2be415.cleanlib_socketpair.c
push 0x4b
push 6
push 1
push 2
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 1
call fcn.10068dd0
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
je 0x10078ff7
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [esp + 0x24], xmm0
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x1c], eax
xor eax, eax
push 4
mov word [esp + 0x1e], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x10078fc1
push 0x10
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10078fc1
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x10078fc1
cmp dword [esp + 8], 0x10
jl 0x10078fc1
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x10078fc1
push str.C:ProjectsWorkProjects_forexcopierlocalCopierClientCPPLibraries_vcpkg_buildtreescurl_srcurl_7_83_1_606f2be415.cleanlib_socketpair.c
push 0x60
push 0
push 1
push 2
call fcn.10068dd0
add esp, 0x14
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x10078fc1
push 0x10
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10078fc1
push 1
push esi
call fcn.100917d0
add esp, 8
test eax, eax
js 0x10078fc1
push 0
push 0x2710
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
push 1
push eax
mov dword [esp + 0x24], 0x300
call fcn.10063a10
push str.C:ProjectsWorkProjects_forexcopierlocalCopierClientCPPLibraries_vcpkg_buildtreescurl_srcurl_7_83_1_606f2be415.cleanlib_socketpair.c
push 0x6d
push 0
push 0
push esi
call fcn.10068830
add esp, 0x24
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x10078fc1
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x1c]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x10078fc1
cmp dword [esp + 8], 0x10
jl 0x10078fc1
lea eax, [esp + 8]
mov dword [esp + 8], 0x10
push eax
lea eax, [esp + 0x2c]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x10078fc1
cmp dword [esp + 8], 0x10
jl 0x10078fc1
mov ax, word [esp + 0x18]
cmp ax, word [esp + 0x28]
jne 0x10078fc1
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x2c]
jne 0x10078fc1
mov ax, word [esp + 0x1a]
cmp ax, word [esp + 0x2a]
jne 0x10078fc1
push str.C:ProjectsWorkProjects_forexcopierlocalCopierClientCPPLibraries_vcpkg_buildtreescurl_srcurl_7_83_1_606f2be415.cleanlib_socketpair.c
push 0x7f
push esi
call fcn.10068ce0
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.1002897d
add esp, 0x34
ret
push str.C:ProjectsWorkProjects_forexcopierlocalCopierClientCPPLibraries_vcpkg_buildtreescurl_srcurl_7_83_1_606f2be415.cleanlib_socketpair.c
push 0x83
push esi
call fcn.10068ce0
push str.C:ProjectsWorkProjects_forexcopierlocalCopierClientCPPLibraries_vcpkg_buildtreescurl_srcurl_7_83_1_606f2be415.cleanlib_socketpair.c
push 0x84
push dword [edi]
call fcn.10068ce0
push str.C:ProjectsWorkProjects_forexcopierlocalCopierClientCPPLibraries_vcpkg_buildtreescurl_srcurl_7_83_1_606f2be415.cleanlib_socketpair.c
push 0x85
push dword [edi + 4]
call fcn.10068ce0
add esp, 0x24
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.1002897d
add esp, 0x34
ret