Function at 0x45c670
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6d3f68]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x28a8
mov ebx, ecx
call dword [0x6d4188]
mov esi, eax
add esp, 4
test esi, esi
jne 0x45c6b2
call dword [0x6d4190]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0062e5ad
mov esp, ebp
pop ebp
ret
push 0x28a8
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x60000
call dword [0x6d4188]
mov edi, eax
add esp, 4
test edi, edi
jne 0x45c6e4
call dword [0x6d4190]
mov dword [esi + 0x24], edi
jmp 0x45c9ba
push 0x60000
push 0
push edi
mov dword [esi + 0x24], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
mov dword [esi], edi
cmp edi, 0xffffffff
je 0x45c9a0
test ebx, ebx
je 0x45c74f
mov eax, 2
xorps xmm0, xmm0
mov word [ebp - 0x1c], ax
movzx eax, word [ebx + 4]
push eax
movlpd qword [ebp - 0x14], xmm0
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1a], ax
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x45c9a0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0x8004667e
push dword [esi]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0xc]
push 4
push eax
push 0x20
push 0xffff
push dword [esi]
mov dword [ebp - 0xc], 1
call edi
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x40000
push eax
push 0x1002
push 0xffff
push dword [esi]
call edi
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x40000
push eax
push 0x1001
push 0xffff
push dword [esi]
call edi
test ebx, ebx
je 0x45c7fb
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x10
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x45c7f0
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x1a]
mov dword [esi + 4], eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esi + 8], ax
jmp 0x45c7fb
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0x1c], esi
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [esi + 0x1c]
add ecx, eax
mov dword [esi + 0x28], 0x400
xor eax, eax
rol ecx, 0x10
mov word [esi + 0x2870], ax
mov dword [esi + 0x2874], eax
mov dword [esi + 0x2878], eax
mov dword [esi + 0x287c], eax
mov dword [esi + 0x2880], eax
mov dword [esi + 0x2884], eax
mov dword [esi + 0x2888], eax
mov dword [esi + 0x2890], eax
mov dword [esi + 0x2894], eax
mov dword [esi + 0x85c], eax
mov dword [esi + 0x860], eax
mov dword [esi + 0x864], eax
mov dword [esi + 0x868], eax
mov dword [esi + 0x288c], eax
lea eax, [esi + 0x34]
mov dword [eax], eax
mov dword [eax + 4], eax
mov eax, dword [esi + 0x28]
mov ebx, dword [esi + 0x24]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x2c], 0xa
lea eax, [eax + eax*2]
mov dword [esi + 0xc], 0
shl eax, 7
add eax, ebx
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x18], 0x578
mov dword [esi + 0x648], 0
mov dword [esi + 0x854], 0
mov dword [esi + 0x858], 0
mov dword [esi + 0x286c], 0
mov dword [esi + 0x2898], 0xfff
mov dword [esi + 0x289c], 0x2000000
mov dword [esi + 0x28a0], 0x2000000
cmp ebx, eax
jae 0x45c98d
lea edi, [ebx + 0xcc]
mov dword [edi - 0xc4], esi
mov ecx, ebx
sub ecx, dword [esi + 0x24]
mov eax, 0x2aaaaaab
imul ecx
mov ecx, ebx
mov word [edi - 0xb8], 0xffff
sar edx, 6
mov eax, edx
mov dword [edi - 0xac], 0
shr eax, 0x1f
add eax, edx
mov word [edi - 0xbe], ax
lea eax, [edi - 0xc]
mov dword [eax], eax
mov dword [edi - 8], eax
lea eax, [edi - 4]
mov dword [eax], eax
mov dword [edi], eax
lea eax, [edi + 4]
mov dword [eax], eax
mov dword [edi + 8], eax
lea eax, [edi + 0xc]
mov dword [eax], eax
mov dword [edi + 0x10], eax
lea eax, [edi + 0x14]
mov dword [eax], eax
mov dword [edi + 0x18], eax
lea eax, [edi + 0x1c]
mov dword [eax], eax
mov dword [edi + 0x20], eax
call fcn.0045d4b0
mov eax, dword [esi + 0x28]
lea edi, [edi + 0x180]
add ebx, 0x180
lea eax, [eax + eax*2]
shl eax, 7
add eax, dword [esi + 0x24]
cmp ebx, eax
jb 0x45c901
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0062e5ad
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x45c9ae
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [esi + 0x24]
call dword [0x6d418c]
add esp, 4
push esi
call dword [0x6d418c]
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.0062e5ad
mov esp, ebp
pop ebp
ret