Function at 0x54c2b3
Capabilities:
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x1ec
mov eax, dword [0x6e1760]
xor eax, ebp
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x60]
mov dword [ebp - 0x18c], eax
mov eax, dword [ebp + 0x64]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp + 0x68]
mov dword [ebp - 0x184], eax
mov eax, dword [ebp + 0x6c]
push ebx
push esi
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp + 0x70]
push edi
mov dword [ebp - 0x188], eax
mov eax, dword [ebp + 0x78]
push 0x10
mov dword [ebp - 0x180], eax
xor ebx, ebx
lea eax, [ebp - 0x4c]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x170], edi
mov esi, edx
call fcn.00408660
add esp, 0xc
cmp esi, ebx
mov word [ebp - 0x4c], 2
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x4a], bx
je 0x54c337
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x48], eax
push 0x10
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 0x74]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x54c376
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004f1822
push eax
push str.bind
push str...RMLCUtil.cpp:256
push str._s:__s_failed:__s_n
push 0x32
call fcn.004f1757
add esp, 0x18
jmp 0x54c619
cmp dword [ebp - 0x48], ebx
je 0x54c3b3
cmp dword [0x773c84], ebx
jne 0x54c3b3
push 4
lea eax, [ebp - 0x48]
push eax
push 9
push ebx
push dword [ebp + 0x74]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x54c3b3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004f1822
push eax
push str.setsockopt
push str...RMLCUtil.cpp:269
jmp 0x54c362
lea eax, [ebp - 0x164]
push edi
push eax
call fcn.0040b3e0
cmp dword [0x773c84], ebx
pop ecx
pop ecx
jne 0x54c3f8
push dword [ebp + 0x7c]
push dword [ebp + 0x74]
call fcn.005520df
cmp eax, 0xffffffff
pop ecx
pop ecx
jne 0x54c3f8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.004f1822
push eax
push str.ws2SetMulticastTTL
push str...RMLCUtil.cpp:282
jmp 0x54c362
push dword [ebp + 0x7c]
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x168], ebx
push dword [ebp - 0x17c]
lea esi, [ebp - 0x164]
push dword [ebp - 0x184]
push dword [ebp - 0x178]
push dword [ebp - 0x18c]
push dword [ebp - 0x180]
push dword [ebp - 0x170]
push dword [ebp - 0x188]
sub esp, 0x118
push 0x45
pop ecx
mov edi, esp
push dword [ebp + 0x74]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0054bedd
add esp, 0x138
test al, al
jne 0x54c4a6
inc dword [ebp - 0x168]
cmp dword [ebp - 0x168], 0xa
jb 0x54c40a
mov esi, dword [ebp - 0x170]
push esi
mov dword [ebp - 0x190], 0x80
call fcn.00408570
inc eax
push eax
call fcn.0040b899
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
jne 0x54c4ad
push str...RMLCUtil.cpp:318
push str._s:_Memory_allocation_failure___trying_anyway_with_non_lowercased_session_name_n
push 0x1e
call fcn.004f1757
add esp, 0xc
mov edi, esi
jmp 0x54c511
mov al, 1
jmp 0x54c61b
push esi
mov dword [ebp - 0x168], ebx
call fcn.00408570
test eax, eax
pop ecx
jbe 0x54c508
mov eax, edi
sub eax, esi
mov dword [ebp - 0x174], eax
movzx eax, byte [esi]
push eax
call fcn.0040c3d1
test eax, eax
pop ecx
je 0x54c4e2
movzx eax, byte [esi]
push eax
call fcn.0041ca32
pop ecx
jmp 0x54c4e4
mov al, byte [esi]
mov ecx, dword [ebp - 0x174]
push dword [ebp - 0x170]
inc dword [ebp - 0x168]
mov byte [ecx + esi], al
inc esi
call fcn.00408570
cmp dword [ebp - 0x168], eax
pop ecx
jb 0x54c4c8
mov eax, dword [ebp - 0x168]
mov byte [edi + eax], bl
lea eax, [ebp + 0x44]
push edi
push eax
call fcn.005529c6
lea eax, [ebp - 0x190]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x2c
lea eax, [ebp + 0x44]
push eax
push 0xffffffffffffffff
call fcn.0055288a
add esp, 0x1c
cmp edi, dword [ebp - 0x170]
mov byte [ebp - 0x169], al
je 0x54c54b
push edi
call fcn.00408c48
pop ecx
cmp byte [ebp - 0x169], bl
je 0x54c619
mov eax, dword [ebp - 0x190]
shr eax, 2
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x168], ebx
je 0x54c619
lea ebx, [ebp - 0x3c]
push 4
lea eax, [ebp - 0x174]
push ebx
push eax
mov dword [0x773c84], 1
call fcn.0040b070
add esp, 0xc
push dword [ebp - 0x174]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x773c88
call fcn.0040b3e0
pop ecx
pop ecx
push dword [ebp - 0x17c]
lea esi, [ebp - 0x164]
push dword [ebp - 0x184]
push dword [ebp - 0x178]
push dword [ebp - 0x18c]
push dword [ebp - 0x180]
push dword [ebp - 0x170]
push dword [ebp - 0x188]
sub esp, 0x118
push 0x45
pop ecx
mov edi, esp
push dword [ebp + 0x74]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
call fcn.0054bedd
add esp, 0x138
test al, al
jne 0x54c4a6
inc dword [ebp - 0x168]
mov eax, dword [ebp - 0x168]
add ebx, 4
cmp eax, dword [ebp - 0x194]
jb 0x54c575
xor al, al
mov ecx, dword [ebp + 0x54]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040916a
add ebp, 0x58
leave
ret