Function at 0x416114
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c4
call fcn.004357e0
or dword [ebp - 8], 0xffffffff
push ebx
push esi
push edi
xor ebx, ebx
push 0x8088
lea eax, [ebp - 0x100c4]
push ebx
mov esi, ecx
push eax
mov dword [ebp - 0xc], 0x10
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x15
push ebx
push ebx
push ebx
push 2
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 0x6c], eax
jne 0x4161a3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CIMDBSyncServer_socket_failed_with:__d
push 0x7d1
push ebx
call fcn.00426a9a
add esp, 0x10
or ebx, 0xffffffff
mov eax, dword [esi + 0x6c]
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
je 0x416191
push eax
call edi
or dword [esi + 0x6c], 0xffffffff
cmp dword [ebp - 8], 0xffffffff
je 0x41619c
push dword [ebp - 8]
call edi
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea ecx, [ebp - 4]
push 4
push ecx
push 4
push 0xffff
push eax
mov dword [ebp - 4], 1
call edi
cmp eax, 0xffffffff
jne 0x4161d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CIMDBSyncServer_setsockopt_SO_REUSEADDR_failed_with:__d
jmp 0x41616b
mov ax, word [0x4488c0]
mov word [ebp - 0x1c], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x1c]
push 0x10
push eax
push dword [esi + 0x6c]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x416212
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CIMDBSyncServer_bind_failed_with:__d
jmp 0x41616b
mov ax, word [0x4488c0]
mov word [ebp - 0x2c], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
push str.224.0.0.100
mov word [ebp - 0x2a], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4488c4]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 4
push eax
push 0xa
push ebx
push dword [esi + 0x6c]
call edi
cmp eax, 0xffffffff
jne 0x416263
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CIMDBSyncServer_setsockopt_IP_MULTICAST_TTL__failed:__d
jmp 0x41616b
lea eax, [ebp - 4]
push 4
push eax
push 0xb
push ebx
mov dword [ebp - 4], 1
push dword [esi + 0x6c]
call edi
or edi, 0xffffffff
cmp eax, edi
jne 0x4162a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CIMDBSyncServer_setsockopt_IP_MULTICAST_LOOP__failed:__d
push 0x7d1
push ebx
call fcn.00426a9a
add esp, 0x10
mov ebx, edi
jmp 0x41617c
push 4
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2c]
push 0x10
push eax
push dword [esi + 0x6c]
call dword [sym.imp.WS2_32.dll_WSAJoinLeaf]
cmp eax, edi
mov dword [ebp - 8], eax
jne 0x4162ca
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.CIMDBSyncServer_WSAJoinLeaf___failed:__d
jmp 0x41628b
mov ecx, esi
call fcn.00415e04
test al, al
jne 0x41617c
mov eax, dword [esi + 0x6c]
cmp eax, 0xffffffff
je 0x41617c
lea ecx, [ebp - 0xc]
mov edi, 0x8000
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push ebx
lea ecx, [ebp - 0x803c]
push edi
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x4162ca
cmp eax, edi
jae 0x416312
mov byte [ebp + eax - 0x803c], bl
push dword [ebp - 0x38]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x803c]
push eax
push str.CIMDBSyncServer_RECV:__s_from__s
push 0x62
push ebx
call fcn.00426a9a
push 4
lea eax, [ebp - 0x803c]
push 0x442254
push eax
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0x20
test eax, eax
je 0x416368
push str.CIMDBSyncServer_recvfrom_return_a_invalid_packet
push 0x441f44
push 0x7d1
push ebx
call fcn.00426a9a
add esp, 0x10
jmp 0x4162ca
movzx eax, byte [ebp - 0x8036]
sub eax, 0x30
cmp eax, 3
je 0x4162ca
lea eax, [ebp - 0x8038]
push 0x7fff
push eax
lea eax, [ebp - 0x1003c]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea eax, [ebp - 0x1003c]
mov edi, 0x8088
push eax
mov dword [ebp - 0x100c0], edi
mov dword [ebp - 0x100bc], 5
call sub.MSVCRT.dll_strlen
push ebx
mov dword [ebp - 0x100b4], eax
call dword [sym.imp.MSVCRT.dll_time]
mov ecx, dword [0x4546f0]
add esp, 0x14
mov dword [ebp - 0x10040], eax
lea eax, [ebp - 0x100c4]
push 0xffffffffffffffff
push ebx
push edi
push eax
call fcn.0042c243
cmp eax, 0xffffffff
jne 0x4162ca
mov eax, dword fs:[0x2c]
mov ecx, dword [0x45479c]
mov eax, dword [eax + ecx*4]
mov edi, dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.CIMDBSyncServer_send_request_fail__errno_d__GetLastError_d
push 0x7d1
push ebx
call fcn.00426a9a
add esp, 0x14
jmp 0x4162ca