Function at 0x416c70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba278
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x24], ebx
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00421810
xor eax, eax
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], eax
mov word [ebp - 0x30], ax
mov byte [ebp - 4], 1
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
call dword [eax + 4]
mov eax, dword [edi + 0x30]
test eax, eax
jne 0x416cf4
lea ecx, [edi + 8]
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax + 8]
mov byte [ebp + 8], 0
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x1c], esi
jmp 0x416d48
lea ecx, [ebp - 0x34]
mov byte [ebp + 8], 0
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
cmp ecx, eax
je 0x416d3c
mov esi, dword [eax + 8]
mov ecx, esi
movzx eax, word [eax + 4]
mov dword [ebp - 0x20], eax
mov word [ebp - 0x30], ax
mov eax, ecx
shr eax, 8
mov dword [ebp - 0x14], eax
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, ecx
shr eax, 0x18
mov dword [ebp + 8], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x1c], eax
lea ecx, [edi + 8]
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 0x44], vtable.StringStorage.0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
push 1
mov ecx, eax
call fcn.00403af0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x524da8
push ecx
call fcn.0049dfe0
mov byte [ebp - 4], 5
mov eax, dword [ebp + 8]
movzx eax, al
push eax
mov eax, dword [ebp - 0x14]
movzx eax, al
push eax
mov eax, dword [ebp - 0x18]
movzx eax, al
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push str._d._d._d._d
push eax
call fcn.004038c0
mov eax, dword [ebp - 0x20]
add esp, 0x24
movzx eax, ax
push eax
push dword [ebp - 0x40]
push str.Incoming_rfb_connection_from__s_to_port__u
push dword [ebx + 0x94]
call fcn.00405e90
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_htonl]
push dword [ebp - 0x30]
mov dword [ebp + 8], eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [vtable.LocalMutex.0]
mov ecx, 0x555558
call dword [edx + 4]
mov esi, dword [0x558f94]
mov byte [ebp - 4], 6
mov ecx, 0x555558
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
mov byte [ebp - 4], 5
lea ecx, [esi + 0x2c]
push dword [ebp + 8]
call fcn.0046f9e0
cmp eax, 1
jne 0x416e67
push str.Connection_rejected_due_to_access_control_rules
push dword [ebx + 0x94]
call fcn.00405e90
mov eax, dword [edi]
add esp, 8
mov ecx, edi
push 1
call dword [eax]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], vtable.StringStorage.0
call fcn.004039c0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 4
lea eax, [ebp + 8]
mov dword [ebp + 8], 1
push eax
push 1
push 6
push dword [edi + 0x24]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x416ebb
mov ecx, dword [ebx + 0x5c]
lea eax, [ebx + 0x60]
push 0
push 0
push eax
push edi
call fcn.00419060
jmp 0x416e3e
lea ecx, [ebp - 0x5c]
call fcn.00459400
push 0x5523dc
lea eax, [ebp - 0x5c]
push eax
call fcn.0049c518
int3