Function at 0x415930
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x4f8008]
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.00420420
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 0x4159b4
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 0x415a08
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 0x4159fc
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.00403ad0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb33c
push ecx
call fcn.00499f60
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.004038a0
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.004054c0
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, 0x4f9558
call dword [edx + 4]
mov esi, dword [0x4fce84]
mov byte [ebp - 4], 6
mov ecx, 0x4f9558
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.0046b910
cmp eax, 1
jne 0x415b27
push str.Connection_rejected_due_to_access_control_rules
push dword [ebx + 0x94]
call fcn.004054c0
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.004039a0
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 0x415b7b
mov ecx, dword [ebx + 0x5c]
lea eax, [ebx + 0x60]
push 0
push 0
push eax
push edi
call fcn.00417c90
jmp 0x415afe
lea ecx, [ebp - 0x5c]
call fcn.00455330
push 0x4f629c
lea eax, [ebp - 0x5c]
push eax
call fcn.00498498
int3