Function at 0x54bedd
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x200]
sub esp, 0x280
mov eax, dword [0x6e1760]
xor eax, ebp
mov dword [ebp + 0x1fc], eax
cmp dword [0x773c84], 1
mov eax, dword [ebp + 0x324]
push ebx
push esi
push edi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x328]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x32c]
push 0x45
pop ecx
lea esi, [ebp + 0x20c]
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x330]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x334]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x338]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x33c]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x4c], eax
jne 0x54bf7b
push 0x773c88
call fcn.0054bec0
push 0x10
mov esi, eax
xor ebx, ebx
lea eax, [ebp + 0xd9]
push ebx
push eax
mov byte [ebp + 0xd8], 1
call fcn.00408660
add esp, 0x10
jmp 0x54bfa2
push 0xe04d0000
call dword [sym.imp.WS2_32.dll_htonl]
xor ebx, ebx
push 0x10
mov esi, eax
lea eax, [ebp + 0xd9]
push ebx
push eax
mov byte [ebp + 0xd8], bl
call fcn.00408660
add esp, 0xc
or edi, 0xffffffff
cmp esi, edi
jne 0x54bfd7
push str...RMLCUtil.cpp:125
push str._s:_destination_address_is_invalid_n
push 0x32
call fcn.004f1757
add esp, 0xc
xor al, al
mov ecx, dword [ebp + 0x1fc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040916a
add ebp, 0x200
leave
ret
push 0x10
lea eax, [ebp + 0xec]
push ebx
push eax
call fcn.00408660
add esp, 0xc
push 0x1a0a
mov word [ebp + 0xec], 2
call dword [sym.imp.WS2_32.dll_htons]
push ebx
push ebx
push dword [ebp + 0x208]
mov word [ebp + 0xee], ax
mov dword [ebp + 0xf0], esi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, edi
jne 0x54c047
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004f1822
push eax
push 0x6630a4
push str...RMLCUtil.cpp:137
push str._s:__s_failed:__s_n
push 0x32
call fcn.004f1757
add esp, 0x18
jmp 0x54bfbd
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0x208]
mov dword [ebp - 0x48], ebx
call fcn.0055211f
cmp eax, edi
pop ecx
pop ecx
jne 0x54c078
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004f1822
push eax
push str.ioctlsocket
push str...RMLCUtil.cpp:146
jmp 0x54c033
push 0x10
lea eax, [ebp + 0xec]
push eax
push ebx
mov esi, 0x115
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x208]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, edi
jne 0x54c0b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004f1822
push eax
push str.sendto
push str...RMLCUtil.cpp:154
jmp 0x54c033
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0xfc]
push eax
push ebx
push 0x10
lea eax, [ebp + 0xec]
push eax
mov dword [ebp - 0x3c], 0x100
call dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
lea eax, [ebp + 0xfc]
push eax
lea eax, [ebp - 0x2c]
push eax
push esi
push str.S:___LEN:___d___SESSION:___s__TO:___s__n
push 0xa
call fcn.004f1757
add esp, 0x14
mov esi, 0x104
push 1
push dword [ebp - 0x38]
push dword [ebp + 0x208]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x54c20d
push ebx
push 0x3e8
push ebx
lea eax, [ebp - 0x38]
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0xffffffff
mov dword [ebp - 0x54], eax
je 0x54c229
cmp eax, ebx
jne 0x54c1fb
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x38]
push dword [ebp + 0x208]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
je 0x54c245
test byte [ebp - 0x80], 1
je 0x54c0fa
push dword [ebp - 0x40]
push dword [ebp - 0x34]
push ebx
push esi
push dword [ebp - 0x30]
push dword [ebp + 0x208]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
cmp edi, 0xffffffff
jne 0x54c198
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x54c261
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x54c0fa
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp + 0xfc]
push eax
mov eax, dword [ebp - 0x40]
push ebx
push dword [eax]
mov dword [ebp - 0x3c], 0x100
push dword [ebp - 0x34]
call dword [sym.imp.WS2_32.dll_WSAAddressToStringA]
cmp edi, esi
mov eax, dword [ebp - 0x30]
je 0x54c1c5
mov eax, 0x637898
lea ecx, [ebp + 0xfc]
push ecx
push eax
push 0xff
push edi
push str.R:___LEN:___d___SESSION:___.s__FROM:___s__n
push 0xa
call fcn.004f1757
add esp, 0x18
cmp edi, esi
jne 0x54c0fa
push dword [ebp - 0x44]
push dword [ebp - 0x30]
call fcn.0041b489
test eax, eax
pop ecx
pop ecx
je 0x54c277
cmp dword [ebp - 0x54], 0x102
jne 0x54c0fa
jmp 0x54bfbd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004f1822
push eax
push 0x6630a4
push str...RMLCUtil.cpp:167
jmp 0x54c033
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004f1822
push eax
push 0x663170
push str...RMLCUtil.cpp:175
jmp 0x54c033
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004f1822
push eax
push 0x663144
push str...RMLCUtil.cpp:183
jmp 0x54c033
push eax
call fcn.004f1822
push eax
push str.recvfrom
push str...RMLCUtil.cpp:195
jmp 0x54c033
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x34]
mov cx, word [esi + 0x100]
mov edi, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x50]
mov word [eax + 2], cx
push dword [edi]
push eax
push ebx
call fcn.0040b070
mov eax, dword [edi]
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], eax
mov ax, word [esi + 0x102]
mov word [ebx + 2], ax
add esp, 0xc
mov al, 1
jmp 0x54bfbf