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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4af890]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 1
mov dword [eax], 0
push edi
test esi, esi
je 0x41c2dc
push 0x3a
push esi
call fcn.0041fd80
add esp, 8
test eax, eax
mov eax, str.Opening_IP6_socket:___s_:_i_n
jne 0x41c2cc
mov eax, str.Opening_IP6_socket:__s:_i_n
mov edi, dword [ebp + 0xc]
push edi
push esi
push eax
call fcn.0040cbe0
add esp, 0xc
jmp 0x41c2ed
mov edi, dword [ebp + 0xc]
push edi
push str.Opening_IP6_socket:__::_:_i_n
call fcn.0040cbe0
add esp, 8
push 0x11
push 2
push 0x17
call dword [sym.imp.WSOCK32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41c331
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
call fcn.0041b5f0
push eax
push str.WARNING:_NET_IP6Socket:_socket:__s_n
call fcn.0040cbe0
add esp, 8
or eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046cfaf
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x41c37f
call fcn.0041b5f0
push eax
push str.WARNING:_NET_IP6Socket:_ioctl_FIONBIO:__s_n
call fcn.0040cbe0
add esp, 8
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x24]
push ebx
mov dword [ecx], eax
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046cfaf
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 1
push eax
push 0x1b
push 0x29
push ebx
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x41c3af
call fcn.0041b5f0
push eax
push str.WARNING:_NET_IP6Socket:_setsockopt_IPV6_V6ONLY:__s_n
call fcn.0040a6f0
add esp, 8
test esi, esi
je 0x41c3ea
cmp byte [esi], 0
je 0x41c3ea
push 2
push 0x17
push 0x1c
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0041d3c0
add esp, 0x14
test eax, eax
jne 0x41c413
push ebx
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046cfaf
mov esp, ebp
pop ebp
ret
mov eax, 0x17
mov word [ebp - 0x20], ax
mov eax, dword [0x49aa10]
mov dword [ebp - 0x18], eax
mov eax, dword [0x49aa14]
mov dword [ebp - 0x14], eax
mov eax, dword [0x49aa18]
mov dword [ebp - 0x10], eax
mov eax, dword [0x49aa1c]
mov dword [ebp - 0xc], eax
cmp edi, 0xffffffff
jne 0x41c41c
xor eax, eax
jmp 0x41c423
push edi
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x20]
push 0x1c
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x41c472
call fcn.0041b5f0
push eax
push str.WARNING:_NET_IP6Socket:_bind:__s_n
call fcn.0040cbe0
add esp, 8
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x24]
push ebx
mov dword [ecx], eax
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046cfaf
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x41c485
mov ecx, 7
lea esi, [ebp - 0x20]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046cfaf
mov esp, ebp
pop ebp
ret