Function at 0x10126380
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10357440
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xf0
mov eax, dword [0x103fbc90]
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 dword [ebp - 0x10], esp
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x9c], 0
xor eax, eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], 2
mov dword [ebp - 0xb8], 0x11
mov dword [ebp - 0xc4], 9
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0xc4]
push edx
push 0x103641f8
push 0x103641fc
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1012645f
push str.Resolution_failed_for_localhost_address
lea ecx, [ebp - 0xd0]
call fcn.10070e00
push 0x103cffd0
lea eax, [ebp - 0xd0]
push eax
call fcn.103171fa
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x98]
mov dword [ecx], eax
mov edx, dword [ebp - 0x98]
cmp dword [edx], 0xffffffff
jne 0x101264be
push 0x10364230
lea ecx, [ebp - 0xdc]
call fcn.10070e00
push 0x103cffd0
lea eax, [ebp - 0xdc]
push eax
call fcn.103171fa
mov dword [ebp - 0xa4], 1
lea ecx, [ebp - 0xa4]
push ecx
push 0x8004667e
mov edx, dword [ebp - 0x98]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 0x98]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x1012652b
push str.Failed_to_bind_UDP_socket
lea ecx, [ebp - 0xe8]
call fcn.10070e00
push 0x103cffd0
lea ecx, [ebp - 0xe8]
push ecx
call fcn.103171fa
mov dword [ebp - 0xa0], 0x80
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0x94]
push eax
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x10126577
push str.getsockname_failed
lea ecx, [ebp - 0xf4]
call fcn.10070e00
push 0x103cffd0
lea eax, [ebp - 0xf4]
push eax
call fcn.103171fa
mov ecx, dword [ebp - 0xa0]
push ecx
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jge 0x101265b9
push str.Failed_to_connect_UDP_socket
lea ecx, [ebp - 0x100]
call fcn.10070e00
push 0x103cffd0
lea edx, [ebp - 0x100]
push edx
call fcn.103171fa
jmp 0x101265f1
mov dword [ebp - 4], 0xffffffff
jmp 0x10126601
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0x98]
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.10314cf5
mov esp, ebp
pop ebp
ret