Function at 0x756133
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
mov al, byte [esi + 0x43868]
test al, al
jne 0x756150
call fcn.00756e20
test al, al
jne 0x756162
pop esi
add esp, 0x18
ret 4
cmp dword [esi + 0x4386c], 0xffffffff
je 0x756162
xor al, al
pop esi
add esp, 0x18
ret 4
push edi
mov edi, dword [esp + 0x24]
push edi
push str.IPX_Socket_number_is__04x_n
mov dword [esi + 0x43b0c], edi
call fcn.004068f0
add esp, 8
or eax, 0xffffffff
mov dword [esp + 0x16], eax
mov word [esp + 0x10], 6
push edi
mov dword [esp + 0x16], 0
mov word [esp + 0x1e], ax
call sub.WSOCK32.dll_htons
push str.About_to_create_an_IPX_socket_n
mov word [esp + 0x20], ax
call fcn.004068f0
add esp, 4
push 0x3e8
push 2
push 6
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x4386c], eax
pop edi
jne 0x7561f0
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.Failed_to_create_IPX_socket___error_code__d._n
call fcn.004068f0
mov ecx, dword [esi + 0x4386c]
add esp, 8
push ecx
call sub.WSOCK32.dll_closesocket
xor al, al
pop esi
add esp, 0x18
ret 4
push str.IPX_Socket_created_OK_n
call fcn.004068f0
mov eax, dword [esi + 0x43af8]
add esp, 4
lea edx, [esp + 0xc]
mov ecx, esi
push edx
push eax
call fcn.00755eb0
test al, al
jne 0x756236
push str.IPX_Error___failed_to_get_the_net_card_address_n
call fcn.004068f0
mov ecx, dword [esi + 0x4386c]
add esp, 4
push ecx
call sub.WSOCK32.dll_closesocket
xor al, al
pop esi
add esp, 0x18
ret 4
mov edx, dword [esp + 0x17]
mov eax, dword [esp + 0x16]
mov ecx, dword [esp + 0x15]
and edx, 0xff
push edx
mov edx, dword [esp + 0x18]
and eax, 0xff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x1b]
and edx, 0xff
push ecx
mov ecx, dword [esp + 0x1e]
push edx
mov edx, dword [esp + 0x21]
and eax, 0xff
and ecx, 0xff
push eax
mov eax, dword [esp + 0x24]
and edx, 0xff
push ecx
mov ecx, dword [esp + 0x27]
push edx
mov edx, dword [esp + 0x2a]
and eax, 0xff
and ecx, 0xff
push eax
and edx, 0xff
push ecx
push edx
push str.IPX_net_card_address_is__02x__02x__02x__02x_:__02x__02x__02x__02x__02x__02x_n
call fcn.004068f0
mov ecx, dword [esp + 0x3e]
mov dx, word [esp + 0x42]
lea eax, [esi + 0x43b06]
push str.About_to_bind_IPX_Socket_n
mov dword [eax], ecx
mov word [eax + 4], dx
call fcn.004068f0
mov ecx, dword [esi + 0x4386c]
add esp, 0x30
lea eax, [esp + 0xc]
push 0x10
push eax
push ecx
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x75630d
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.IPX_socket_bind_failed_with_error_code__d._n
call fcn.004068f0
mov edx, dword [esi + 0x4386c]
add esp, 8
push edx
call sub.WSOCK32.dll_closesocket
xor al, al
pop esi
add esp, 0x18
ret 4
push str.IPX_Socket_bound_OK_n
call fcn.004068f0
push str.About_to_set_IPX_socket_option_SO_BROADCAST_n
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 4
call fcn.004068f0
mov ecx, dword [esi + 0x4386c]
add esp, 8
lea eax, [esp + 8]
push 4
push eax
push 0x20
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x756368
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.Failed_to_set_IPX_socket_option_SO_BROADCAST___error_code__d._n
call fcn.004068f0
add esp, 8
jmp 0x756375
push str.IPX_socket_option_SO_BROADCAST_set_OK_n
call fcn.004068f0
add esp, 4
push str.About_to_set_IPX_socket_option_IPX_PTYPE_n
call fcn.004068f0
mov eax, dword [esi + 0x4386c]
add esp, 4
lea edx, [esp + 4]
push 4
push edx
push 0x4000
push 0x3e8
push eax
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x7563b9
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.Failed_to_set_IPX_protocol_option_IPX_PTYPE___error_code__d._n
call fcn.004068f0
add esp, 8
jmp 0x7563c6
push str.IPX_socket_option_IPX_PTYPE_set_OK_n
call fcn.004068f0
add esp, 4
push str.About_to_set_IPX_socket_option_IPX_FILTERTYPE_n
call fcn.004068f0
mov edx, dword [esi + 0x4386c]
add esp, 4
lea ecx, [esp + 4]
push 4
push ecx
push 0x4001
push 0x3e8
push edx
call sub.WSOCK32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x75640a
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.Failed_to_set_IPX_protocol_option_IPX_FILTERTYPE___error_code__d._n
call fcn.004068f0
add esp, 8
jmp 0x756417
push str.IPX_socket_option_IPX_FILTERTYPE_set_OK_n
call fcn.004068f0
add esp, 4
push 0xffffffffffffffff
mov ecx, esi
call fcn.00757620
push str.IPX_Socket_init_complete_n
call fcn.004068f0
add esp, 4
mov al, 1
pop esi
add esp, 0x18
ret 4