Function at 0x758046
Capabilities:
Get hostname
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x9c
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x43868]
test al, al
jne 0x758068
call fcn.00756e20
test al, al
jne 0x758068
pop edi
pop esi
add esp, 0x9c
ret 4
push str.About_to_open_primary_UDP_socket_n
call fcn.004068f0
add esp, 4
xor edi, edi
push edi
push 2
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x4386c], eax
jne 0x758099
pop edi
xor al, al
pop esi
add esp, 0x9c
ret 4
mov ax, word [0x7df958]
mov word [esp + 0x14], 2
push eax
call sub.WSOCK32.dll_htons
push edi
mov word [esp + 0x1a], ax
call sub.WSOCK32.dll_htonl
push str.About_to_bind_the_UDP_socket_n
mov dword [esp + 0x1c], eax
call fcn.004068f0
mov edx, dword [esi + 0x4386c]
add esp, 4
lea ecx, [esp + 0x14]
push 0x10
push ecx
push edx
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x7580f4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop edi
xor al, al
pop esi
add esp, 0x9c
ret 4
push str.About_to_query_the_host_name_n
call fcn.004068f0
add esp, 4
lea ecx, [esp + 0x24]
push 0x80
push ecx
call sub.WSOCK32.dll_gethostname
test eax, eax
je 0x758126
lea edx, [esp + 0x24]
push edx
push str.Host_name_is__s_n
call fcn.004068f0
add esp, 8
push ebx
push str.About_to_call_gethostbyname_n
call fcn.004068f0
add esp, 4
lea eax, [esp + 0x28]
push eax
call sub.WSOCK32.dll_gethostbyname
mov ebx, eax
cmp ebx, edi
jne 0x758157
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.gethostbyname_failed__Error_code__d_n
call fcn.004068f0
add esp, 8
cmp dword [esi + 0x43b24], edi
je 0x7581a9
mov ecx, dword [esi + 0x43b18]
mov edx, dword [ecx]
push edx
call fcn.0076d2d5
mov eax, dword [esi + 0x43b24]
add esp, 4
cmp eax, edi
jle 0x7581a1
lea ecx, [eax - 1]
xor eax, eax
cmp ecx, edi
mov dword [esi + 0x43b24], ecx
jle 0x7581a1
mov ecx, dword [esi + 0x43b18]
inc eax
mov edx, dword [ecx + eax*4]
mov dword [ecx + eax*4 - 4], edx
mov ecx, dword [esi + 0x43b24]
cmp eax, ecx
jl 0x758189
cmp dword [esi + 0x43b24], edi
jne 0x75815f
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0x10], ebx
mov eax, dword [ebx]
cmp eax, edi
je 0x75824f
push ebp
lea edi, [esi + 0x43b14]
mov ebx, dword [eax]
mov edx, dword [esp + 0x14]
mov eax, ebx
add edx, 4
shr eax, 0x18
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
xor ecx, ecx
push eax
mov cl, byte [esp + 0x1e]
xor edx, edx
mov eax, ebx
mov dl, bh
push ecx
and eax, 0xff
push edx
push eax
push str.Found_local_address:__d._d._d._d_n
call fcn.004068f0
push 4
call fcn.0076d5a7
mov ebp, eax
add esp, 0x18
mov dword [ebp], ebx
mov eax, dword [edi + 8]
cmp dword [edi + 0x10], eax
jl 0x75822f
mov cl, byte [edi + 0xd]
test cl, cl
jne 0x758218
test eax, eax
jne 0x75823e
mov ecx, dword [edi + 0x14]
test ecx, ecx
jle 0x75823e
mov edx, dword [edi]
add ecx, eax
push 0
push ecx
mov ecx, edi
call dword [edx + 8]
test al, al
je 0x75823e
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 4]
lea ecx, [eax + 1]
mov dword [edi + 0x10], ecx
mov dword [edx + eax*4], ebp
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
test eax, eax
jne 0x7581c1
xor edi, edi
pop ebp
mov edx, dword [esi + 0x4386c]
lea ecx, [esp + 0xc]
push 4
push ecx
push 0x80
push 0xffff
push edx
mov word [esp + 0x20], di
mov word [esp + 0x22], di
call sub.WSOCK32.dll_setsockopt
push 0xffffffffffffffff
mov ecx, esi
call fcn.00757620
push str.Primary_UDP_Socket_init_complete_n
call fcn.004068f0
push str.About_to_open_alternate_UDP_socket_n
call fcn.004068f0
add esp, 8
push edi
push 2
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x43870], eax
pop ebx
jne 0x7582b9
pop edi
xor al, al
pop esi
add esp, 0x9c
ret 4
mov ax, word [0x7df960]
mov word [esp + 0x14], 2
push eax
call sub.WSOCK32.dll_htons
push edi
mov word [esp + 0x1a], ax
call sub.WSOCK32.dll_htonl
push str.About_to_bind_the_UDP_socket_n
mov dword [esp + 0x1c], eax
call fcn.004068f0
mov edx, dword [esi + 0x43870]
add esp, 4
lea ecx, [esp + 0x14]
push 0x10
push ecx
push edx
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x758314
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop edi
xor al, al
pop esi
add esp, 0x9c
ret 4
mov edx, dword [esi + 0x43870]
lea ecx, [esp + 8]
push 4
push ecx
push 0x80
push 0xffff
push edx
mov word [esp + 0x1c], di
mov word [esp + 0x1e], di
call sub.WSOCK32.dll_setsockopt
mov eax, dword [esi + 0x43870]
mov ecx, esi
push eax
call fcn.00757620
push str.Alternate_UDP_Socket_init_complete_n
call fcn.004068f0
add esp, 4
mov al, 1
pop edi
pop esi
add esp, 0x9c
ret 4