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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
mov eax, 0x4c0294
call fcn.0049d698
cmp dword [0x4c0158], 0
jne 0x45642d
mov eax, 8
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x4568da
cmp dword [ebx + 0x94], 0
je 0x45644a
mov eax, 0x10
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x4568da
cmp dword [ebx + 0x80], 0
je 0x456467
mov eax, 0x10
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x4568da
cmp dword [ebx + 0xde], 0
je 0x456484
mov eax, 0x10
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x4568da
cmp dword [ebx + 0x106], 0
je 0x4564a7
cmp dword [ebx + 0x10], 7
jne 0x4564a7
mov eax, 0x10
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x4568da
cmp dword [ebx + 0x90], 0
je 0x4564ca
cmp dword [ebx + 0x10], 7
jne 0x4564ca
mov eax, 0x10
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x4568da
cmp dword [ebx + 0x44], 0
je 0x4564d5
xor ecx, ecx
mov dword [ebx + 0x48], ecx
mov ax, word [ebp + 0x14]
test edi, edi
mov word [ebx + 0xb0], ax
je 0x45650b
mov esi, edi
mov dword [ebp - 0x38], ebx
cmp dword [0x4c0168], 0
jne 0x4564fa
push esi
call sub.WSOCK32.dll_inet_addr
jmp 0x456503
push esi
push dword [ebp - 0x38]
call fcn.0045a193
mov dword [ebx + 0xb2], eax
jmp 0x45652d
mov esi, ebx
cmp dword [0x4c0168], 0
jne 0x45651f
push 0
call sub.WSOCK32.dll_htonl
jmp 0x456527
push 0
push esi
call fcn.0045a0bc
mov dword [ebx + 0xb2], eax
xor edx, edx
mov dword [ebx + 0xce], edx
mov word [ebx + 0x9c], 2
mov si, word [ebp + 0x10]
cmp dword [0x4c0168], 0
mov dword [ebp - 0x3c], ebx
jne 0x456556
push esi
call sub.WSOCK32.dll_htons
jmp 0x45655f
push esi
push dword [ebp - 0x3c]
call fcn.0045a124
mov word [ebx + 0x9e], ax
xor ecx, ecx
mov dword [ebx + 0x98], ecx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x40], ebx
cmp dword [0x4c0168], 0
jne 0x456585
push esi
call sub.WSOCK32.dll_inet_addr
jmp 0x45658e
push esi
push dword [ebp - 0x40]
call fcn.0045a193
mov dword [ebx + 0xa0], eax
cmp eax, 0xffffffff
je 0x4565a3
mov dword [ebx + 0x98], 1
cmp dword [ebx + 0x10], 6
jne 0x456810
cmp dword [ebx + 0x98], 0
jne 0x4565ca
mov eax, 0xf
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x4568da
push ebx
call fcn.00457876
pop ecx
mov dword [ebp - 0x44], ebx
cmp dword [0x4c0168], 0
jne 0x4565ec
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
jmp 0x4565fc
push 0
push 2
push 2
push dword [ebp - 0x44]
call fcn.0045aa64
mov esi, eax
cmp esi, 0xffffffff
je 0x456650
mov word [ebp - 0x24], 0xc
xor ecx, ecx
lea edx, [ebp - 8]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 8], esi
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], eax
inc dword [ebp - 0x18]
push edx
push 0x4d3004
push ecx
call fcn.0045cfd0
inc dword [ebp - 0x18]
inc dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x4c], eax
add esp, 0xc
mov edx, dword [ebp - 0x4c]
mov ecx, dword [edx + 1]
dec dword [ebp - 0x18]
add ecx, 0x10
add ecx, 4
dec dword [ebp - 0x18]
mov eax, dword [ebp - 0x44]
mov dword [ecx], eax
mov dword [ebx + 0xc], esi
cmp dword [ebx + 0xc], 0xffffffff
jne 0x45668a
mov esi, ebx
cmp dword [0x4c0168], 0
jne 0x45666b
call sub.WSOCK32.dll_WSAGetLastError
jmp 0x456671
push esi
call fcn.0045adc4
push eax
push ebx
call fcn.0045861f
add esp, 8
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x4568da
cmp word [ebx + 0xb0], 0
jne 0x45669c
test edi, edi
je 0x456771
mov word [ebp - 0x78], 2
mov ecx, dword [ebx + 0xb2]
mov edi, ebx
mov dword [ebp - 0x74], ecx
mov si, word [ebx + 0xb0]
cmp dword [0x4c0168], 0
jne 0x4566c5
push esi
call sub.WSOCK32.dll_htons
jmp 0x4566cc
push esi
push edi
call fcn.0045a124
mov word [ebp - 0x76], ax
mov dword [ebp - 0x54], 1
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x58], ebx
cmp dword [0x4c0168], 0
jne 0x4566fb
push 4
lea edx, [ebp - 0x54]
push edx
push 4
push 0xffff
push eax
call sub.WSOCK32.dll_setsockopt
jmp 0x456711
push 4
lea ecx, [ebp - 0x54]
push ecx
push 4
push 0xffff
push eax
push dword [ebp - 0x58]
call fcn.0045a663
mov esi, dword [ebx + 0xc]
mov edi, ebx
cmp dword [0x4c0168], 0
jne 0x45672d
push 0x10
lea eax, [ebp - 0x78]
push eax
push esi
call sub.WSOCK32.dll_bind
jmp 0x45673a
push 0x10
lea edx, [ebp - 0x78]
push edx
push esi
push edi
call fcn.004599a1
inc eax
jne 0x456771
mov dword [ebp - 0x5c], ebx
cmp dword [0x4c0168], 0
jne 0x456750
call sub.WSOCK32.dll_WSAGetLastError
jmp 0x456758
push dword [ebp - 0x5c]
call fcn.0045adc4
push eax
push ebx
call fcn.0045861f
add esp, 8
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
jmp 0x4568da
mov dword [ebp - 0x60], 1
mov eax, dword [ebx + 0xc]
mov edx, ebx
cmp dword [0x4c0168], 0
jne 0x456797
lea ecx, [ebp - 0x60]
push ecx
push 0x8004667e
push eax
call sub.WSOCK32.dll_ioctlsocket
jmp 0x4567a7
lea ecx, [ebp - 0x60]
push ecx
push 0x8004667e
push eax
push edx
call fcn.00459b63
mov esi, dword [0x4c0164]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x64], ebx
cmp dword [0x4c0168], 0
jne 0x4567cc
push 3
push 0x400
push esi
push edi
call sub.WSOCK32.dll_WSAAsyncSelect
jmp 0x4567dd
push 3
push 0x400
push esi
push edi
push dword [ebp - 0x64]
call fcn.0045b6b2
test eax, eax
je 0x4567f5
mov eax, 0x14
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x4568da
mov dword [ebx + 0x90], 1
xor eax, eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x4568da
mov dword [ebx + 0x94], 1
cmp dword [ebx + 0x98], 0
jne 0x4568c9
mov dword [ebx + 0xce], 1
cmp dword [ebx + 0xb6], 0
jne 0x45684b
push 0x1f4
call fcn.004a78f4
pop ecx
mov dword [ebx + 0xb6], eax
push 0x1f3
push dword [ebp + 0xc]
push dword [ebx + 0xb6]
call fcn.0049b180
add esp, 0xc
mov esi, dword [ebx + 0xb6]
mov byte [esi + 0x1f3], 0
mov edi, esi
cmp dword [0x4c0168], 0
jne 0x45688a
push 0x1f4
push edi
push ebx
call fcn.00457611
add esp, 0xc
jmp 0x456899
push 0x1f4
push edi
push ebx
call fcn.0045c170
add esp, 0xc
mov dword [ebp - 0x68], eax
test eax, eax
je 0x4568af
mov eax, dword [ebp - 0x68]
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x4568da
mov dword [ebx + 0xd2], 1
xor eax, eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x4568da
push ebx
call fcn.004568e1
pop ecx
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret