Function at 0x415670
Capabilities:
Create udp socket
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x15c
mov eax, dword [0x8e4a3c]
xor eax, esp
mov dword [esp + 0x158], eax
mov dword [esp + 0xf], 0xc5130000
mov dword [esp + 0xc], 0x60580
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
je 0x415968
mov esi, eax
mov word [esp + 0x148], 2
push 0x438
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x14a], ax
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x14c], eax
lea eax, [esp + 0x148]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x41595d
mov edi, esi
inc edi
mov word [esp + 0x138], 2
push 0x1f96
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x13a], ax
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x13c], eax
lea ecx, [esp + 0x138]
lea eax, [esp + 0xc]
push 0x10
push ecx
push 0
push 7
push eax
push esi
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
mov dword [esp], 0
mov dword [esp + 4], 0x186a0
mov eax, esp
lea ebx, [esp + 0x14]
push eax
push 0
push 0
push ebx
push edi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x4157c9
push ebx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4157c9
mov dword [esp + 8], 0x10
xorps xmm0, xmm0
movups xmmword [esp + 0x118], xmm0
lea eax, [esp + 8]
lea ecx, [esp + 0x128]
lea ebp, [esp + 0x118]
push eax
push ecx
push 0
push 0x10
push ebp
push esi
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jle 0x4157c9
push ebp
call fcn.00435830
add esp, 4
test al, al
jne 0x415959
mov word [esp + 0x138], 2
push 0x1f96
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x13a], ax
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x13c], eax
push 0x10
lea eax, [esp + 0x13c]
push eax
push 0
push 7
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
mov dword [esp], 0
mov dword [esp + 4], 0x186a0
mov eax, esp
push eax
push 0
push 0
push ebx
push edi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x415893
push ebx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x415893
mov dword [esp + 8], 0x10
xorps xmm0, xmm0
movups xmmword [esp + 0x118], xmm0
lea eax, [esp + 8]
lea ecx, [esp + 0x128]
lea ebp, [esp + 0x118]
push eax
push ecx
push 0
push 0x10
push ebp
push esi
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jle 0x415893
push ebp
call fcn.00435830
add esp, 4
test al, al
jne 0x415959
mov word [esp + 0x138], 2
push 0x1f96
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x13a], ax
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x13c], eax
push 0x10
lea eax, [esp + 0x13c]
push eax
push 0
push 7
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 1
mov dword [esp], 0
mov dword [esp + 4], 0x186a0
mov eax, esp
push eax
push 0
push 0
push ebx
push edi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x41595d
push ebx
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x41595d
mov dword [esp + 8], 0x10
xorps xmm0, xmm0
movups xmmword [esp + 0x118], xmm0
lea eax, [esp + 8]
lea ecx, [esp + 0x128]
lea edi, [esp + 0x118]
push eax
push ecx
push 0
push 0x10
push edi
push esi
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jle 0x41595d
push edi
call fcn.00435830
add esp, 4
test al, al
je 0x41595d
mov bl, 1
jmp 0x41595f
xor ebx, ebx
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x41596a
xor ebx, ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.004c0e60
mov eax, ebx
add esp, 0x15c
pop esi
pop edi
pop ebx
pop ebp
ret