Function at 0x41fde0
Capabilities:
Resume thread

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x70
push 0xffffffffffffffff
push 0x4c105b
mov eax, dword fs:[0]
push eax
sub esp, 0x130
push ebx
push esi
push edi
mov eax, dword [0x57e030]
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 + 0x68], ebx
lea ecx, [ebp - 0x60]
call fcn.00404990
lea eax, [ebp - 0x60]
push eax
xor edi, edi
push ebx
mov dword [ebp - 4], edi
call fcn.0041fc90
lea ecx, [ebp - 0x98]
call fcn.00404990
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x50]
cmp esi, dword [ebp - 0x4c]
jbe 0x41fe4b
call fcn.00480e22
mov eax, dword [ebp - 0x5c]
cmp eax, edi
jne 0x41ffe6
call fcn.00480e22
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x41fe67
call fcn.00480e22
push esi
lea ecx, [ebp - 0x98]
push str.The_client__s_has_disconnected
push ecx
call fcn.004056a0
mov edx, dword [vtable.LocalMutex.0]
mov eax, dword [edx + 4]
add esp, 0xc
mov ecx, 0x580d40
call eax
mov ecx, dword [0x594960]
mov edx, dword [vtable.LocalMutex.0]
mov eax, dword [edx + 8]
mov dword [ebp + 0x20], ecx
mov ecx, 0x580d40
call eax
lea ecx, [ebp + 0x2c]
call fcn.0041ada0
mov eax, dword [ebx + 0x40]
mov dword [ebp + 0x34], vtable.SocketStream.0
mov dword [ebp + 0x38], vtable.SocketStream.1.0
mov dword [ebp + 0x3c], eax
lea ecx, [ebp + 0x38]
push ecx
lea edx, [ebp - 0x100]
push edx
mov byte [ebp - 4], 3
call fcn.0045fa20
lea eax, [ebp + 0x34]
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x24], 0x562e54
mov byte [ebp - 4], 5
cmp byte [ebx + 0x1a5], 0
mov ecx, dword [ebx + 0x44]
mov dword [ebp + 0x64], edi
sete al
push ebx
lea edi, [ebp + 0x34]
lea esi, [ebp - 0x44]
call fcn.00420d60
mov byte [ebp - 4], 8
mov esi, dword [ebx + 0x1a8]
push str.Entering_RFB_initialization_phase_1
call fcn.004239b0
add esp, 4
lea ecx, [ebp - 0x44]
call fcn.00420e50
lea ecx, [ebp - 0x44]
push ecx
call fcn.004216b0
mov ebx, dword [ebp - 0x3c]
call fcn.00423570
mov ebx, dword [ebp + 0x68]
mov edx, dword [ebx + 0x20]
lea esi, [ebx + 0x20]
test al, al
mov eax, dword [edx + 4]
mov ecx, esi
setne byte [ebp - 0x38]
call eax
mov edi, 1
cmp dword [ebx + 0x18], edi
jge 0x41ff55
mov dword [ebx + 0x18], edi
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov esi, dword [ebx + 0x1a8]
push str.RFB_initialization_phase_1_completed
call fcn.00423a10
mov al, byte [ebp - 0x38]
mov esi, dword [ebx + 0x1a8]
movzx ecx, al
add esp, 4
push ecx
push str.Shared_flag___d
mov byte [ebx + 0x1a7], al
call fcn.00423a10
movzx eax, byte [ebx + 0x1a4]
mov dl, byte [ebp - 0x30]
mov esi, dword [ebx + 0x1a8]
add esp, 8
push eax
push str.Initial_view_only_state___d
mov byte [ebx + 0x1a6], dl
call fcn.00423a10
movzx ecx, byte [ebx + 0x1a6]
mov esi, dword [ebx + 0x1a8]
add esp, 8
push ecx
push str.Authenticated_with_view_only_password___d
call fcn.00423a10
add esp, 8
cmp byte [ebx + 0x1a4], 0
jne 0x41ffed
cmp byte [ebx + 0x1a6], 0
jne 0x41ffed
xor eax, eax
jmp 0x41ffef
mov eax, dword [eax]
jmp 0x41fe5d
mov eax, edi
mov ecx, dword [ebx + 0x44]
mov byte [ebx + 0x1a4], al
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
movzx ecx, byte [ebx + 0x1a4]
mov esi, dword [ebx + 0x1a8]
push ecx
push str.View_only___d
mov dword [ebx + 0x1a0], eax
call fcn.004239b0
mov dword [ebp - 4], 7
mov eax, dword [ebx + 0x1a0]
add esp, 8
lea edx, [ebp + 0x2c]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0xe0], eax
push edx
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x13c]
push ecx
call fcn.004223c0
mov byte [ebp - 4], 0xa
mov esi, dword [ebx + 0x1a8]
push str.Dispatcher_has_been_created
call fcn.00423a10
add esp, 4
lea edx, [ebp - 0xcc]
mov esi, vtable.CapContainer.0
push edx
mov dword [ebp - 0xd0], esi
call fcn.00477d50
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 0xb
push eax
mov dword [ebp - 0x7c], esi
call fcn.00477d50
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0xc
push ecx
mov dword [ebp - 0xb4], esi
call fcn.00477d50
lea edx, [ebp - 0x13c]
mov dword [ebp + 4], edx
lea eax, [ebp - 0xd0]
lea ecx, [ebp - 0x7c]
lea edx, [ebp - 0xb4]
mov dword [ebp], vtable.RfbCodeRegistrator.0
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x10], edx
push 0x328
mov byte [ebp - 4], 0xe
call fcn.00480ed5
mov ecx, eax
add esp, 4
mov dword [ebp + 0x60], ecx
xor edi, edi
mov byte [ebp - 4], 0xf
cmp ecx, edi
je 0x420113
mov eax, dword [ebx + 0x1a0]
mov esi, dword [ebx + 0x1ac]
push eax
push esi
lea esi, [ebp - 0x100]
push esi
lea edx, [ebx + 0x14]
push edx
push eax
lea eax, [ebp]
push eax
push ecx
mov ecx, dword [ebx + 0x1a8]
call fcn.00439590
jmp 0x420115
xor eax, eax
mov byte [ebp - 4], 0xe
mov esi, dword [ebx + 0x1a8]
push str.UpdateSender_has_been_created
mov dword [ebx + 0x194], eax
call fcn.00423a10
xor eax, eax
mov esi, vtable.Dimension.0
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
mov dword [ebp + 0x14], esi
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x1c], edi
mov byte [ebp - 4], 0x10
mov ecx, dword [ebx + 0x1a0]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x14]
push eax
call edx
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp + 0x14]
mov edx, ebx
call fcn.004208e0
mov ecx, dword [ebp + 0x58]
mov edx, dword [ebp + 0x5c]
sub ecx, dword [ebp + 0x50]
sub edx, dword [ebp + 0x54]
mov dword [ebp + 0x40], esi
mov dword [ebp + 0x44], ecx
mov dword [ebp + 0x48], edx
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 0x12
mov edx, dword [ebx + 0x194]
push eax
lea ecx, [ebp + 0x40]
call fcn.00439ea0
mov byte [ebp - 4], 0x11
mov esi, dword [ebx + 0x1a8]
push str.UpdateSender_has_been_initialized
call fcn.00423a10
add esp, 4
push 0xc
call fcn.00480ed5
add esp, 4
mov dword [ebp + 0x60], eax
mov byte [ebp - 4], 0x13
cmp eax, edi
je 0x4201e5
lea ecx, [ebx + 0x10]
push ecx
mov cl, byte [ebx + 0x1a4]
push eax
lea edx, [ebp]
call fcn.00420b70
jmp 0x4201e7
xor eax, eax
mov byte [ebp - 4], 0x11
mov esi, dword [ebx + 0x1a8]
push str.ClientInputHandler_has_been_created
mov dword [ebx + 0x19c], eax
call fcn.00423a10
add esp, 4
push 0x68
call fcn.00480ed5
add esp, 4
mov dword [ebp + 0x60], eax
mov byte [ebp - 4], 0x14
cmp eax, edi
je 0x420242
mov ecx, dword [ebx + 0x1a8]
movzx edx, byte [ebx + 0x1a4]
push ecx
push edx
mov edx, dword [ebx + 0x1a0]
lea ecx, [ebp - 0x100]
push ecx
push edx
lea ecx, [ebp]
push ecx
push eax
call fcn.004229f0
jmp 0x420244
xor eax, eax
mov byte [ebp - 4], 0x11
mov esi, dword [ebx + 0x1a8]
push str.ClipboardExchange_has_been_created
mov dword [ebx + 0x198], eax
call fcn.00423a10
mov edi, dword [ebp + 0x20]
mov edx, dword [edi + 0x104]
mov eax, dword [edx + 4]
lea esi, [edi + 0x104]
add esp, 4
mov ecx, esi
call eax
mov cl, byte [edi + 0x44]
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov byte [ebp + 0x6f], cl
mov ecx, esi
call eax
cmp byte [ebp + 0x6f], 0
je 0x4202f3
cmp byte [ebp - 0x2f], 0
je 0x4202f3
push 0xe4
call fcn.00480ed5
add esp, 4
mov dword [ebp + 0x60], eax
mov byte [ebp - 4], 0x15
test eax, eax
je 0x4202d8
cmp byte [ebx + 0x1a4], 0
sete cl
movzx edx, cl
mov ecx, dword [ebx + 0x1a8]
push edx
mov edx, dword [ebx + 0x1a0]
push ecx
push edx
lea ecx, [ebp - 0x100]
push ecx
push eax
lea ecx, [ebp]
call fcn.00464980
jmp 0x4202da
xor eax, eax
mov byte [ebp - 4], 0x11
mov esi, dword [ebx + 0x1a8]
push str.File_transfer_has_been_created
mov dword [ebp + 0x64], eax
call fcn.00423a10
jmp 0x420303
mov esi, dword [ebx + 0x1a8]
push str.File_transfer_is_not_allowed
call fcn.004239b0
mov eax, dword [ebp + 0x54]
mov edx, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x50]
mov esi, dword [ebx + 0x1a8]
add esp, 4
sub edx, eax
push edx
mov edx, dword [ebp + 0x58]
sub edx, ecx
push edx
push eax
push ecx
push str.View_port:___d__d____dx_d_
call fcn.00423a10
mov esi, dword [ebx + 0x1a8]
add esp, 0x14
push str.Entering_RFB_initialization_phase_2
call fcn.004239b0
mov eax, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x5c]
sub eax, dword [ebp + 0x50]
sub ecx, dword [ebp + 0x54]
add esp, 4
mov dword [ebp + 0x40], vtable.Dimension.0
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x48], ecx
lea edx, [ebp + 0x40]
push edx
lea edi, [ebp - 0x24]
lea esi, [ebp - 0x44]
mov byte [ebp - 4], 0x16
call fcn.004218a0
mov eax, esi
push eax
call fcn.00421960
cmp byte [ebp - 0x2f], 0
je 0x420390
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0xd0]
push edx
lea edi, [ebp - 0xb4]
call fcn.00421aa0
mov byte [ebp - 4], 0x11
mov esi, dword [ebx + 0x1a8]
push str.RFB_initialization_phase_2_completed
call fcn.00423a10
mov eax, dword [ebx + 0x20]
mov edx, dword [eax + 4]
lea esi, [ebx + 0x20]
add esp, 4
mov ecx, esi
call edx
mov eax, 2
cmp dword [ebx + 0x18], eax
jge 0x4203c1
mov dword [ebx + 0x18], eax
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov esi, dword [ebx + 0x1a8]
push str.Entering_normal_phase_of_the_RFB_protocol
call fcn.004239b0
mov eax, dword [ebp - 0x138]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
mov eax, dword [ebp + 0x30]
setne cl
xor esi, esi
mov byte [ebp - 0x130], cl
cmp eax, esi
je 0x420408
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0xa4]
mov edi, vtable.CapContainer.0
mov dword [ebp + 0x4c], vtable.Rect.0
mov dword [ebp + 0x14], vtable.Dimension.0
mov dword [ebp - 0xb4], edi
cmp eax, esi
je 0x420434
push eax
call fcn.00480e32
add esp, 4
mov edx, dword [ebp - 0xb0]
push edx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x9c], esi
call fcn.00480e32
mov eax, dword [ebp - 0x6c]
add esp, 4
mov dword [ebp - 0x7c], edi
cmp eax, esi
je 0x420468
push eax
call fcn.00480e32
add esp, 4
mov eax, dword [ebp - 0x78]
push eax
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x64], esi
call fcn.00480e32
mov eax, dword [ebp - 0xc0]
add esp, 4
mov dword [ebp - 0xd0], edi
cmp eax, esi
je 0x420496
push eax
call fcn.00480e32
add esp, 4
mov ecx, dword [ebp - 0xcc]
push ecx
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xbc], esi
mov dword [ebp - 0xb8], esi
call fcn.00480e32
add esp, 4
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 7
call fcn.00422450
mov dword [ebp - 4], 6
jmp 0x420556
mov edi, dword [ebp + 0x64]
push ebx
call fcn.0041fbf0
mov ecx, dword [ebx + 0x1b0]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [ebp - 0x98]
push eax
call edx
mov eax, dword [ebx + 0x20]
mov edx, dword [eax + 4]
lea esi, [ebx + 0x20]
mov ecx, esi
call edx
mov eax, 3
cmp dword [ebx + 0x18], eax
jge 0x42058d
mov dword [ebx + 0x18], eax
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
test edi, edi
je 0x4205ae
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov ecx, dword [ebx + 0x198]
xor edi, edi
cmp ecx, edi
je 0x4205c2
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [ebx + 0x19c]
cmp ecx, edi
je 0x4205d4
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [ebx + 0x194]
cmp ecx, edi
je 0x4205e6
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov eax, 4
cmp dword [ebx + 0x18], eax
jge 0x4205fc
mov dword [ebx + 0x18], eax
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov ebx, dword [ebx + 0x3c]
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
call edx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x40]
cmp ecx, edi
je 0x420624
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov ecx, dword [ebp - 0x3c]
cmp ecx, edi
je 0x420633
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov esi, vtable.InputStream.0
lea ecx, [ebp - 0x100]
mov dword [ebp + 0x24], esi
mov byte [ebp - 4], 3
call fcn.0045faf0
mov eax, dword [ebp + 0x30]
mov dword [ebp + 0x38], vtable.OutputStream.0
mov dword [ebp + 0x34], esi
mov dword [ebp + 0x2c], vtable.WindowsEvent.0
cmp eax, edi
je 0x420669
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x88]
mov esi, vtable.StringStorage.0
mov dword [ebp - 0x98], esi
cmp eax, edi
je 0x420687
push eax
call fcn.00480e32
add esp, 4
mov eax, dword [ebp - 0x94]
push eax
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x80], edi
call fcn.00480e32
mov eax, dword [ebp - 0x50]
add esp, 4
mov dword [ebp - 0x60], esi
cmp eax, edi
je 0x4206b8
push eax
call fcn.00480e32
add esp, 4
mov ecx, dword [ebp - 0x5c]
push ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
call fcn.00480e32
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x70
mov esp, ebp
pop ebp
ret