Function at 0x417bf3
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
push ebx
push esi
push edi
call fcn.00417a20
test eax, eax
jge 0x417c49
push 0x3e8
push 2
push 6
call fcn.0041dcea
add esp, 0xc
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
jae 0x417c3a
mov eax, 0x3f
jmp 0x41827b
mov eax, dword [ebp - 0x14c]
push eax
call fcn.00417a35
add esp, 4
push 1
call fcn.00417a20
push eax
call fcn.004194dc
add esp, 8
test eax, eax
je 0x417c6b
mov eax, 0x41
jmp 0x41827b
cmp dword [0x432424], 0
je 0x417d6f
push 0x4359c8
call fcn.0041e31d
add esp, 4
push 0xe
call fcn.0040acea
add esp, 4
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
jne 0x417cbc
push 0
call fcn.00417a20
push eax
call fcn.004194dc
add esp, 8
mov eax, 0x40
jmp 0x41827b
push 0xe
push 0
mov eax, dword [ebp - 0x148]
push eax
call fcn.00409d20
add esp, 0xc
mov eax, dword [ebp - 0x148]
mov word [eax], 6
call fcn.00417a4f
push eax
call fcn.0041df3e
add esp, 4
mov ecx, dword [ebp - 0x148]
mov word [ecx + 0xc], ax
push 4
push 0
mov eax, dword [ebp - 0x148]
add eax, 2
push eax
call fcn.00409d20
add esp, 0xc
push 6
push 0xff
mov eax, dword [ebp - 0x148]
add eax, 6
push eax
call fcn.00409d20
add esp, 0xc
mov eax, dword [ebp - 0x148]
push eax
push 0x4359c8
call fcn.0041e331
add esp, 8
mov eax, dword [0x4359c8]
push eax
call fcn.0041e2a0
add esp, 4
test eax, eax
je 0x417d65
push 0
call fcn.00417a20
push eax
call fcn.004194dc
add esp, 8
mov eax, 0x41
jmp 0x41827b
mov dword [0x432424], 0
push 0
call fcn.0040ab7a
add esp, 4
test eax, eax
jge 0x417d8b
mov eax, 0x4a
jmp 0x41827b
push 0
call fcn.0040ab7a
add esp, 4
cdq
xor eax, edx
sub eax, edx
and eax, 0x1fff
xor eax, edx
sub eax, edx
mov dword [ebp - 0x494], eax
mov dword [ebp - 0x48c], 0xffffffff
mov dword [ebp - 0x498], 0x3d
mov dword [ebp - 0x490], 0
push 0x190
push 0
lea eax, [ebp - 0x488]
push eax
call fcn.00409d20
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
call fcn.0040a820
add esp, 4
inc eax
push eax
mov eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x488]
push eax
call fcn.00409460
add esp, 0xc
mov dword [ebp - 0x49c], 0
mov eax, dword [0x4359c8]
mov dword [ebp - 0x150], eax
jmp 0x417e2d
mov eax, dword [ebp - 0x150]
push eax
call fcn.0041e2f1
add esp, 4
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
push eax
call fcn.0041e2a0
add esp, 4
test eax, eax
jne 0x417f79
mov eax, dword [ebp - 0x150]
push eax
call fcn.0041e2c6
add esp, 4
mov dword [ebp - 0x158], eax
push 0x10
mov eax, dword [ebp - 0x158]
push eax
call fcn.00417a20
push eax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x417e89
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.connect_failed_with__d
call fcn.00418280
add esp, 8
push 0
push 0x1a0
lea eax, [ebp - 0x498]
push eax
call fcn.00417a20
push eax
call sub.WSOCK32.dll_send
cmp eax, 0x1a0
jne 0x417eb8
inc dword [ebp - 0x49c]
jmp 0x417f74
mov dword [ebp - 0x4a0], 0xe
push 0x10
call fcn.0040acea
add esp, 4
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0
jne 0x417ef9
push 0
call fcn.00417a20
push eax
call fcn.004194dc
add esp, 8
mov eax, 1
jmp 0x41827b
mov eax, dword [ebp - 0x11c]
mov word [eax], 6
call fcn.00417a4f
push eax
call fcn.0041df3e
add esp, 4
mov ecx, dword [ebp - 0x11c]
mov word [ecx + 0xc], ax
mov dword [ebp - 0x4a0], 0x10
lea eax, [ebp - 0x4a0]
push eax
mov eax, dword [ebp - 0x11c]
push eax
call fcn.00417a20
push eax
call sub.WSOCK32.dll_getsockname
test eax, eax
je 0x417f60
mov eax, dword [ebp - 0x11c]
push eax
call fcn.0040ad9c
add esp, 4
mov eax, 1
jmp 0x41827b
mov eax, dword [ebp - 0x11c]
push eax
push 0x435b70
call fcn.0041e331
add esp, 8
jmp 0x417e18
cmp dword [ebp - 0x49c], 0
jne 0x417fa0
push 0
call fcn.00417a20
push eax
call fcn.004194dc
add esp, 8
mov eax, 0x3e
jmp 0x41827b
push 0
call fcn.0040ab7a
add esp, 4
mov ecx, dword [ebp + 0x10]
add ecx, eax
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x144], 0
cmp dword [ebp - 0x144], 0
jne 0x418264
mov dword [ebp - 0x12c], 0
mov ebx, dword [ebp - 0x118]
push 0
call fcn.0040ab7a
add esp, 4
sub ebx, eax
mov dword [ebp - 0x130], ebx
cmp dword [ebp - 0x130], 0
jge 0x418005
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x114], 0
cmp dword [ebp - 0x114], 0x40
jae 0x418034
call fcn.00417a20
mov ecx, dword [ebp - 0x114]
mov dword [ebp + ecx*4 - 0x110], eax
inc dword [ebp - 0x114]
lea eax, [ebp - 0x130]
push eax
push 0
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.00417a20
inc eax
push eax
call fcn.0041dd3a
add esp, 0x14
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x4a8], eax
jmp 0x418240
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x4180a9
push 0
call fcn.00417a20
push eax
call fcn.004194dc
add esp, 8
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
jle 0x41809f
xor eax, eax
jmp 0x4180a4
mov eax, 1
jmp 0x41827b
jmp 0x41825f
mov dword [ebp - 0x144], 1
jmp 0x41825f
mov dword [ebp - 0x120], 0xe
push 0
push 0x1a0
lea eax, [ebp - 0x2f8]
push eax
call fcn.00417a20
push eax
call sub.WSOCK32.dll_recv
mov dword [ebp - 0x4a4], eax
cmp dword [ebp - 0x4a4], 0x1a0
je 0x4180fb
jmp 0x41825f
mov dword [ebp - 0x120], 0x10
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00417a20
push eax
call sub.WSOCK32.dll_getpeername
cmp eax, 0xffffffff
jne 0x418137
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.getpeername_returned__d
call fcn.00418280
add esp, 8
lea eax, [ebp - 0x2e8]
push eax
mov eax, dword [ebp - 0x2ec]
push eax
mov eax, dword [ebp - 0x2f4]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0041d4e9
add esp, 4
push eax
mov eax, dword [ebp - 0x4a4]
push eax
push str.VLM_broadcast_text______recv___returned__d._nsenders_address_is__s._nGetFrame_sequence_no____ld__nGetFrame_client_pid_no____d__nGetFrame.info_is_n_s
call fcn.00418280
add esp, 0x18
mov eax, dword [ebp - 0x494]
cmp dword [ebp - 0x2f4], eax
jne 0x418191
mov eax, dword [ebp - 0x48c]
cmp dword [ebp - 0x2ec], eax
je 0x4181cc
mov eax, dword [ebp - 0x494]
push eax
mov eax, dword [ebp - 0x2f4]
push eax
push 0x432508
call fcn.00418280
add esp, 0xc
mov eax, dword [ebp - 0x48c]
push eax
mov eax, dword [ebp - 0x2ec]
push eax
push 0x432544
call fcn.00418280
add esp, 0xc
jmp 0x41825f
lea eax, [ebp - 0x140]
push eax
call fcn.0041d4e9
add esp, 4
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x124]
push eax
lea eax, [ebp - 0x2e8]
push eax
call fcn.00418292
add esp, 0x18
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0x40
jne 0x418224
mov eax, 0x40
jmp 0x41827b
cmp dword [ebp - 0x128], 0
jne 0x41823b
mov dword [ebp - 0x144], 1
jmp 0x41825f
cmp dword [ebp - 0x4a8], 0xffffffff
je 0x41806c
cmp dword [ebp - 0x4a8], 0
je 0x4180ae
jmp 0x4180bd
jmp 0x417fbf
push 0
call fcn.00417a20
push eax
call fcn.004194dc
add esp, 8
xor eax, eax
jmp 0x41827b
pop edi
pop esi
pop ebx
leave
ret