Function at 0x6122a2
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 [0x7c0650]
xor eax, ebp
mov dword [ebp + 0x1fc], eax
cmp dword [ebp + 0x340], 1
mov eax, dword [ebp + 0x324]
push ebx
push esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x328]
push edi
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x32c]
push 0x45
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x330]
pop ecx
lea esi, [ebp + 0x20c]
lea edi, [ebp - 0x2c]
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]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x344]
movsb byte es:[edi], byte [esi]
jne 0x612342
push eax
call fcn.00612285
push 0x10
mov esi, eax
xor ebx, ebx
lea eax, [ebp + 0xd9]
push ebx
push eax
mov byte [ebp + 0xd8], 1
call fcn.006455e0
add esp, 0x10
jmp 0x612369
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.006455e0
add esp, 0xc
or edi, 0xffffffff
cmp esi, edi
jne 0x61239e
push str...RMLCUtil.cpp:135
push str._s:_destination_address_is_invalid_n
push 0x32
call fcn.005a6bee
add esp, 0xc
xor al, al
mov ecx, dword [ebp + 0x1fc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00644f58
add ebp, 0x200
leave
ret
push 0x10
lea eax, [ebp + 0xec]
push ebx
push eax
call fcn.006455e0
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 0x61240e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005a6cc1
push eax
push 0x6bb378
push str...RMLCUtil.cpp:159
push str._s:__s_failed:__s_n
push 0x32
call fcn.005a6bee
add esp, 0x18
jmp 0x612384
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0x208]
mov dword [ebp - 0x48], ebx
call fcn.006180b5
cmp eax, edi
pop ecx
pop ecx
jne 0x61243f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005a6cc1
push eax
push str.ioctlsocket
push str...RMLCUtil.cpp:168
jmp 0x6123fa
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 0x61247f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005a6cc1
push eax
push str.gh_sendto
push str...RMLCUtil.cpp:182
jmp 0x6123fa
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.005a6bee
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 0x6125d4
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 0x6125f0
cmp eax, ebx
jne 0x6125c2
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 0x61260c
test byte [ebp - 0x80], 1
je 0x6124c1
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 0x61255f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x612628
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x6124c1
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 0x61258c
mov eax, 0x717104
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.005a6bee
add esp, 0x18
cmp edi, esi
jne 0x6124c1
push dword [ebp - 0x44]
push dword [ebp - 0x30]
call fcn.0064e2a0
test eax, eax
pop ecx
pop ecx
je 0x61263e
cmp dword [ebp - 0x54], 0x102
jne 0x6124c1
jmp 0x612384
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005a6cc1
push eax
push 0x6bb378
push str...RMLCUtil.cpp:195
jmp 0x6123fa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005a6cc1
push eax
push 0x6bb4c4
push str...RMLCUtil.cpp:203
jmp 0x6123fa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.005a6cc1
push eax
push 0x6bb498
push str...RMLCUtil.cpp:211
jmp 0x6123fa
push eax
call fcn.005a6cc1
push eax
push str.gh_recvfrom
push str...RMLCUtil.cpp:227
jmp 0x6123fa
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.00646470
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 0x612386