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

Disassembly:
jmp 0x61c710
sub esp, 0x20
mov eax, dword [0x684540]
push ebx
push ebp
mov dword [esp + 0x24], eax
call fcn.0061d4d0
mov ebp, dword [esp + 0x38]
test ebp, ebp
jne 0x61c730
mov ebp, 0x10000
mov ebx, dword [esp + 0x34]
test ebx, ebx
jne 0x61c73d
mov ebx, 0x10000
mov edx, dword [esp + 0x30]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00614c80
add esp, 0xc
test eax, eax
jne 0x61c76c
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x1c]
call fcn.006293e9
add esp, 0x20
ret
push esi
push 0x48
call fcn.006291e4
mov esi, eax
add esp, 4
test esi, esi
jne 0x61c792
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1c]
call fcn.006293e9
add esp, 0x20
ret
push edi
push 0
push 0x61c650
push 0x61c630
xor eax, eax
push 2
mov ecx, 0x12
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x54]
push 0x20
mov edi, 1
push 4
mov dword [esi], 0xffffffff
mov dword [esi + 0x38], ebp
mov dword [esi + 0x34], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], edi
call fcn.0061e310
add esp, 0x18
test eax, eax
mov dword [esi + 0xc], eax
jne 0x61c7fd
push esi
call fcn.00628e27
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
call fcn.006293e9
add esp, 0x20
ret
push 0x61c680
push 4
push 4
call fcn.0061de50
add esp, 0xc
test eax, eax
mov dword [esi + 0x10], eax
jne 0x61c83a
mov ecx, dword [esi + 0xc]
push ecx
call fcn.0061e380
push esi
call fcn.00628e27
add esp, 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
call fcn.006293e9
add esp, 0x20
ret
push 0x11
push 2
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x61c882
call sub.WS2_32.dll_WSAGetLastError
mov edx, dword [esi + 0xc]
push edx
call fcn.0061e380
mov eax, dword [esi + 0x10]
push eax
call fcn.0061e020
push esi
call fcn.00628e27
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x1c]
call fcn.006293e9
add esp, 0x20
ret
push 4
lea ecx, [esp + 0x44]
push ecx
push 4
push 0xffff
push eax
mov dword [esp + 0x54], edi
call sub.WS2_32.dll_setsockopt
cmp eax, 0xffffffff
jne 0x61c8a4
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
push ecx
mov dword [esp + 0x2c], edx
mov word [esp + 0x20], 2
mov dword [esp + 0x24], eax
call sub.WSOCK32.dll_htons
push 0x10
lea edx, [esp + 0x20]
mov word [esp + 0x22], ax
mov eax, dword [esi]
push edx
push eax
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x61c8fa
call sub.WS2_32.dll_WSAGetLastError
mov ecx, dword [esi]
push ecx
call sub.WSOCK32.dll_closesocket
jmp 0x61c851
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x18], 0x10
mov eax, dword [esi]
push edx
push eax
call sub.WSOCK32.dll_getsockname
mov ecx, dword [esp + 0x20]
mov dword [esi + 4], ecx
mov edx, dword [esp + 0x1e]
push edx
call sub.WSOCK32.dll_ntohs
mov ecx, dword [esp + 0x2c]
mov word [esi + 8], ax
mov eax, dword [esp + 0x34]
pop edi
mov dword [eax], esi
pop esi
pop ebp
xor eax, eax
pop ebx
call fcn.006293e9
add esp, 0x20
ret