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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [ebp + 8]
mov word [ebp - 0x4c], ax
cmp dword [ebp + 0xc], 0x11
jne 0x4ad397
cmp dword [ebp + 0x14], 1
jne 0x4ad35e
mov eax, 0x17
jmp 0x4ad363
mov eax, 2
mov dword [esp + 8], 0x11
mov dword [esp + 4], 2
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_socket]
call eax
sub esp, 0xc
mov dword [server.sin_zero], eax
cmp dword [server.sin_zero], 0
jns 0x4ad43c
mov eax, 0xfffffffa
jmp 0x4ad5dc
cmp dword [ebp + 0xc], 6
jne 0x4ad432
mov dword [ebp - 0x3c], 1
cmp dword [ebp + 0x14], 1
jne 0x4ad3b5
mov eax, 0x17
jmp 0x4ad3ba
mov eax, 2
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_socket]
call eax
sub esp, 0xc
mov dword [server.sin_zero], eax
cmp dword [server.sin_zero], 0
jns 0x4ad3ea
mov eax, 0xfffffffa
jmp 0x4ad5dc
mov eax, dword [server.sin_zero]
mov dword [esp + 0x10], 4
lea edx, [ebp - 0x3c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 4
mov dword [esp + 4], 0xffff
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_setsockopt]
call eax
sub esp, 0x14
test eax, eax
jns 0x4ad43c
mov eax, dword [server.sin_zero]
mov dword [esp], eax
call dbg.OS_CloseSocket
mov eax, 0xfffffffa
jmp 0x4ad5dc
mov eax, 0xffffffff
jmp 0x4ad5dc
cmp dword [ebp + 0x14], 0
je 0x4ad4ff
mov dword [esp + 8], 0x1c
mov dword [esp + 4], 0
lea eax, [ebp - 0x38]
mov dword [esp], eax
call sym._memset
mov word [ebp - 0x38], 0x17
movzx eax, word [ebp - 0x4c]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_htons]
call eax
sub esp, 4
mov word [ebp - 0x36], ax
cmp dword [ebp + 0x10], 0
je 0x4ad48c
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
test al, al
jne 0x4ad4ae
mov eax, dword [0x50d3a4]
mov dword [ebp - 0x30], eax
mov eax, dword [0x50d3a8]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x50d3ac]
mov dword [ebp - 0x28], eax
mov eax, dword [0x50d3b0]
mov dword [ebp - 0x24], eax
jmp 0x4ad4c3
lea eax, [ebp - 0x38]
add eax, 8
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call dbg.get_ipv6_numeric
mov eax, dword [server.sin_zero]
mov dword [esp + 8], 0x1c
lea edx, [ebp - 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_bind]
call eax
sub esp, 0xc
test eax, eax
jns 0x4ad5a5
mov eax, dword [server.sin_zero]
mov dword [esp], eax
call dbg.OS_CloseSocket
mov eax, 0xfffffffa
jmp 0x4ad5dc
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sym._memset
mov word [ebp - 0x1c], 2
movzx eax, word [ebp - 0x4c]
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_htons]
call eax
sub esp, 4
mov word [ebp - 0x1a], ax
cmp dword [ebp + 0x10], 0
je 0x4ad545
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
test al, al
jne 0x4ad55b
mov dword [esp], 0
mov eax, dword [sym.imp.WSOCK32.DLL_htonl]
call eax
sub esp, 4
mov dword [ebp - 0x18], eax
jmp 0x4ad570
lea eax, [ebp - 0x1c]
add eax, 4
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call dbg.get_ipv4_numeric
mov eax, dword [server.sin_zero]
mov dword [esp + 8], 0x10
lea edx, [ebp - 0x1c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_bind]
call eax
sub esp, 0xc
test eax, eax
jns 0x4ad5a5
mov eax, dword [server.sin_zero]
mov dword [esp], eax
call dbg.OS_CloseSocket
mov eax, 0xfffffffa
jmp 0x4ad5dc
cmp dword [ebp + 0xc], 6
jne 0x4ad5d9
mov eax, dword [server.sin_zero]
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], eax
mov eax, dword [sym.imp.WSOCK32.DLL_listen]
call eax
sub esp, 8
test eax, eax
jns 0x4ad5d9
mov eax, dword [server.sin_zero]
mov dword [esp], eax
call dbg.OS_CloseSocket
mov eax, 0xfffffffa
jmp 0x4ad5dc
mov eax, dword [server.sin_zero]
leave
ret