Function at 0x43f300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556ad9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x18
push esi
push edi
mov eax, dword [0x5c3040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
cmp byte [edi + 0x98], 0x20
mov eax, dword [ebx + 8]
je 0x43f357
cmp eax, 0xa
mov ecx, 5
cmove eax, ecx
mov ecx, dword [edi + 0xac]
lea esi, [edi + 0x20]
mov dword [ebp - 0x14], eax
cmp eax, ecx
jne 0x43f376
cmp dword [esi], 0
je 0x43f376
mov eax, 1
jmp 0x43febc
cmp dword [ebx + 0xc], 0
je 0x43f394
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x90]
call fcn.0043d0a0
test eax, eax
je 0x43feba
jmp 0x43f39a
mov dword [edi + 0xac], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x43f3fa
cmp byte [edi + 0x30], 0
je 0x43f3ab
mov dword [edi + 0x34], ecx
jmp 0x43f3f0
cmp byte [edi + 0x38], 0
je 0x43f3b6
mov dword [edi + 0x3c], ecx
jmp 0x43f3f0
cmp byte [edi + 0xb0], 0
je 0x43f3c4
mov dword [edi + 0x40], ecx
jmp 0x43f3f0
cmp byte [edi + 0x44], 0
je 0x43f3cf
mov dword [edi + 0x48], ecx
jmp 0x43f3f0
cmp byte [edi + 0x4c], 0
je 0x43f3da
mov dword [edi + 0x50], ecx
jmp 0x43f3f0
cmp byte [edi + 0x28], 0
je 0x43f3e5
mov dword [edi + 0x2c], ecx
jmp 0x43f3f0
cmp ecx, dword [edi + 0x24]
je 0x43f3f0
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x20], 0
lea esi, [edi + 0x20]
mov ecx, dword [ebp - 0x14]
mov byte [edi + 0x30], 0
mov byte [edi + 0x38], 0
mov byte [edi + 0xb0], 0
mov byte [edi + 0x44], 0
mov byte [edi + 0x4c], 0
mov byte [edi + 0x28], 0
cmp ecx, 0x1d
ja case.0x43f428.1
movzx eax, byte [ecx + 0x43ff20]
jmp dword [eax*4 + 0x43fed4]
push str.vncEncodeMgr::SetEncoding_:_raw_encoder_requested_n
push 9
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
push 0x84
call fcn.00524776
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
call fcn.0045f240
mov dword [esi], eax
jmp 0x43fca0
push str.vncEncodeMgr::SetEncoding_:_RRE_encoder_requested_n
push 9
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
push 0x8c
call fcn.00524776
add esp, 4
mov ecx, eax
mov dword [ebp - 0x1c], ecx
call fcn.0045f240
mov dword [ecx], vtable.vncEncodeRRE.0
mov dword [ecx + 0x84], 0
mov dword [ecx + 0x88], 0
mov dword [esi], ecx
jmp 0x43fca0
push str.vncEncodeMgr::SetEncoding_:_CoRRE_encoder_requested_n
push 9
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
push 0xb0
call fcn.00524776
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [ebp - 0x1c], esi
call fcn.0045f240
push 0
mov dword [esi], vtable.vncEncodeCoRRE.0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0x18
mov dword [esi + 0x90], 0x18
mov dword [esi + 0xa4], 1
mov dword [esi + 0xa8], 0x32
call fcn.0052c293
add esp, 4
mov dword [ebp - 0x1c], edx
push eax
call fcn.0052c281
mov dword [esi + 0xac], 0
add esp, 4
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [edi + 0x20], esi
jmp 0x43fca0
push str.vncEncodeMgr::SetEncoding_:_Hextile_encoder_requested_n
push 9
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
push 0x84
call fcn.00524776
add esp, 4
mov ecx, eax
mov dword [ebp - 0x1c], ecx
call fcn.0045f240
mov dword [ecx], vtable.vncEncodeHexT.0
mov dword [esi], ecx
jmp 0x43fca0
push str.vncEncodeMgr::SetEncoding_:_Ultra_encoder_requested_n
push 9
push 0x5c3db0
call fcn.0041dde0
mov ecx, dword [edi + 0x3c]
add esp, 0xc
test ecx, ecx
jne 0x43f6a3
push 0xb8
call fcn.00524776
mov ecx, eax
add esp, 4
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
call fcn.0045f240
mov byte [ebp - 4], 1
push 0x20001
mov dword [ecx], vtable.vncEncodeUltra.0
mov dword [ecx + 0xa8], 0
mov dword [ecx + 0x84], 0
mov dword [ecx + 0x88], 0
mov dword [ecx + 0x8c], 0
mov dword [ecx + 0x90], 0
mov dword [ecx + 0xa0], 0
mov dword [ecx + 0x9c], 0x20000
call fcn.005247b4
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [ecx + 0x88], eax
mov eax, 0x51eb851f
mov ecx, dword [ecx + 0x9c]
imul ecx
add ecx, 8
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
push eax
call fcn.005247b4
mov ecx, dword [ebp - 0x14]
add esp, 4
mov edx, esi
cmp dword [ecx + 0x88], 0
mov dword [ecx + 0x8c], eax
jne 0x43f686
push str.vncEncodeUltra::vncEncodeUltra_:_Memory_error
push 9
push 0x5c3db0
call fcn.0041dde0
mov ecx, dword [ebp - 0x14]
lea edx, [edi + 0x20]
add esp, 0xc
mov byte [ecx + 0xb0], 0
lea eax, [edi + 0x38]
mov dword [ebp - 4], 0xffffffff
mov dword [esi], ecx
test ecx, ecx
je 0x43feba
jmp 0x43f6aa
mov dword [esi], ecx
lea eax, [edi + 0x38]
mov edx, esi
mov byte [eax], 1
mov eax, dword [edi + 0x80]
mov dword [ecx + 0xac], eax
mov eax, dword [edx]
mov dword [edi + 0x68], 0
test eax, eax
je 0x43f6cd
mov dword [eax + 0x78], 0
mov eax, dword [edi + 0x90]
mov dword [eax + 0x6c], 1
mov eax, dword [edx]
mov dword [edi + 0x6c], 0
test eax, eax
je 0x43f6ee
mov dword [eax + 0x7c], 0
mov eax, dword [edi + 0x90]
mov dword [eax + 0x6c], 1
mov esi, dword [edi + 0x90]
mov dword [edi + 0x84], 0
lea edi, [esi + 0x48]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [esi + 8], 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0x1c]
jmp 0x43fca0
push str.vncEncodeMgr::SetEncoding_:_Ultra_encoder_requested_n
push 9
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
cmp byte [edi + 0x98], 0x20
jne 0x43f81a
cmp byte [edi + 8], 0x20
jne 0x43f81a
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x43f80c
push 0x298
call fcn.00524776
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov ecx, esi
mov dword [ebp - 4], 3
call fcn.0045f240
mov byte [ebp - 4], 4
lea ecx, [esi + 0x210]
mov dword [esi], vtable.vncEncodeUltra2.0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
call fcn.00493e70
push ecx
lea ecx, [esi + 0xa8]
mov dword [esi + 0xa8], eax
call fcn.00493980
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x20], esi
test esi, esi
je 0x43feba
mov byte [edi + 0xb0], 1
jmp 0x43fca0
mov dword [esi], eax
mov byte [edi + 0xb0], 1
jmp 0x43fca0
push str.vncEncodeMgr::SetEncoding_:_jpeg_encoder_is_only_supported_on_32bit_color_display_n
push 9
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
jmp 0x43feba
push str.vncEncodeMgr::SetEncoding_:_ZSTDRLE_encoder_requested_n
push 9
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [edi + 0x24]
add esp, 0xc
test eax, eax
jne 0x43f876
push 0x98
call fcn.00524776
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov dword [ebp - 4], 5
call fcn.00476f00
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x24], eax
mov dword [esi], eax
mov dword [eax + 0x84], 0
mov eax, dword [edi + 0x24]
mov byte [eax + 0x80], 1
jmp 0x43fca0
push str.vncEncodeMgr::SetEncoding_:_ZRLE_encoder_requested_n
push 9
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [edi + 0x24]
add esp, 0xc
test eax, eax
jne 0x43f8d4
push 0x98
call fcn.00524776
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 6
mov ecx, eax
call fcn.00476f00
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x24], eax
mov dword [esi], eax
mov dword [eax + 0x84], 1
mov eax, dword [edi + 0x24]
mov byte [eax + 0x80], 0
jmp 0x43fca0
push str.vncEncodeMgr::SetEncoding_:_ZSTDYWRLE_encoder_requested_n
push 9
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [edi + 0x24]
add esp, 0xc
test eax, eax
jne 0x43f932
push 0x98
call fcn.00524776
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov dword [ebp - 4], 7
call fcn.00476f00
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x24], eax
mov dword [esi], eax
mov dword [eax + 0x84], 1
mov eax, dword [edi + 0x24]
mov byte [eax + 0x80], 1
jmp 0x43fca0
push str.vncEncodeMgr::SetEncoding_:_ZYWRLE_encoder_requested_n
push 9
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [edi + 0x24]
add esp, 0xc
test eax, eax
jne 0x43f8d4
push 0x98
call fcn.00524776
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 8
jmp 0x43f8c3
push str.vncEncodeMgr::SetEncoding_:_XZ_encoder_requested_n
push 9
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [edi + 0x2c]
add esp, 0xc
test eax, eax
jne 0x43f9c8
push 0x94
call fcn.00524776
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov dword [ebp - 4], 9
call fcn.0046c790
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
mov dword [eax + 0x84], 0
mov byte [edi + 0x28], 1
jmp 0x43fca0
push str.vncEncodeMgr::SetEncoding_:_XZYW_encoder_requested_n
push 9
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [edi + 0x2c]
add esp, 0xc
test eax, eax
jne 0x43fa1d
push 0x94
call fcn.00524776
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov dword [ebp - 4], 0xa
call fcn.0046c790
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
mov dword [eax + 0x84], 1
mov byte [edi + 0x28], 1
jmp 0x43fca0
push str.vncEncodeMgr::SetEncoding_:_Zlib_encoder_requested_n
push 9
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [edi + 0x34]
add esp, 0xc
test eax, eax
jne 0x43fa8e
push 0xbc
call fcn.00524776
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov dword [ebp - 4], 0xb
call fcn.0046d860
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
test eax, eax
je 0x43feba
mov ecx, dword [esi]
mov byte [edi + 0x30], 1
push 0
mov eax, dword [ecx]
call dword [eax + 0x40]
jmp 0x43fca0
mov dword [esi], eax
mov ecx, dword [esi]
mov byte [edi + 0x30], 1
push 0
mov eax, dword [ecx]
call dword [eax + 0x40]
jmp 0x43fca0
push str.vncEncodeMgr::SetEncoding_:_Zstd_encoder_requested_n
push 9
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [edi + 0x34]
add esp, 0xc
test eax, eax
jne 0x43fafe
push 0xbc
call fcn.00524776
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov dword [ebp - 4], 0xc
call fcn.0046d860
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
test eax, eax
je 0x43feba
mov ecx, dword [esi]
mov byte [edi + 0x30], 1
push 1
mov eax, dword [ecx]
call dword [eax + 0x40]
jmp 0x43fca0
mov dword [esi], eax
mov ecx, dword [esi]
mov byte [edi + 0x30], 1
push 1
mov eax, dword [ecx]
call dword [eax + 0x40]
jmp 0x43fca0
push str.vncEncodeMgr::SetEncoding_:_ZlibHex_encoder_requested_n
push 9
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [edi + 0x48]
add esp, 0xc
test eax, eax
jne 0x43fb6e
push 0xa0
call fcn.00524776
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov dword [ebp - 4], 0xd
call fcn.0046e2f0
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
test eax, eax
je 0x43feba
mov ecx, dword [esi]
mov byte [edi + 0x44], 1
push 0
mov eax, dword [ecx]
call dword [eax + 0x3c]
jmp 0x43fca0
mov dword [esi], eax
mov ecx, dword [esi]
mov byte [edi + 0x44], 1
push 0
mov eax, dword [ecx]
call dword [eax + 0x3c]
jmp 0x43fca0
push str.vncEncodeMgr::SetEncoding_:_ZstdbHex_encoder_requested_n
push 9
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [edi + 0x48]
add esp, 0xc
test eax, eax
jne 0x43fbde
push 0xa0
call fcn.00524776
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov dword [ebp - 4], 0xe
call fcn.0046e2f0
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
test eax, eax
je 0x43feba
mov ecx, dword [esi]
mov byte [edi + 0x44], 1
push 1
mov eax, dword [ecx]
call dword [eax + 0x3c]
jmp 0x43fca0
mov dword [esi], eax
mov ecx, dword [esi]
mov byte [edi + 0x44], 1
push 1
mov eax, dword [ecx]
call dword [eax + 0x3c]
jmp 0x43fca0
push str.vncEncodeMgr::SetEncoding_:_Tight_encoder_requested_n
push 9
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [edi + 0x50]
add esp, 0xc
test eax, eax
jne 0x43fc40
push 0x1b1c
call fcn.00524776
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov dword [ebp - 4], 0xf
call fcn.00460d40
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
test eax, eax
je 0x43feba
push 0
jmp 0x43fc95
mov dword [esi], eax
push 0
jmp 0x43fc95
push str.vncEncodeMgr::SetEncoding_:_TightZstd_encoder_requested_n
push 9
push 0x5c3db0
call fcn.0041dde0
mov eax, dword [edi + 0x50]
add esp, 0xc
test eax, eax
jne 0x43fc91
push 0x1b1c
call fcn.00524776
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov dword [ebp - 4], 0x10
call fcn.00460d40
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
test eax, eax
jne 0x43fc93
jmp 0x43feba
mov dword [esi], eax
push 1
mov ecx, dword [esi]
mov byte [edi + 0x4c], 1
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x43fd15
mov eax, dword [ecx]
call dword [eax + 4]
movzx edx, word [edi + 0x94]
movzx eax, byte [edi + 0x98]
mov ecx, dword [edi + 0x20]
movzx esi, word [edi + 0x96]
imul eax, edx
mov dword [ecx + 0x44], edx
mov dword [ecx + 0x48], esi
shr eax, 3
mov dword [ecx + 0x40], eax
movups xmm0, xmmword [edi + 0x98]
movups xmmword [ecx + 0x10], xmm0
call fcn.0045f770
cmp dword [edi + 0x18], 0
je 0x43fd15
mov ecx, dword [edi + 0x20]
movups xmm0, xmmword [edi + 8]
movups xmmword [ecx + 0x20], xmm0
call fcn.0045f770
test eax, eax
jne 0x43fd15
push str.vncEncodeMgr::SetEncoding_:_client_pixel_format_is_not_supported_n
push eax
push 0x5c3db0
call fcn.0041dde0
add esp, 0xc
jmp 0x43feba
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x43fd71
mov eax, dword [edi + 0x68]
mov dword [ecx + 0x78], eax
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x6c]
mov dword [ecx + 0x7c], eax
mov eax, 6
cmp dword [edi + 0x54], 9
mov edx, dword [edi + 0x20]
cmovbe eax, dword [edi + 0x54]
or esi, 0xffffffff
mov dword [edx + 0x64], eax
mov eax, esi
cmp dword [edi + 0x58], 9
mov edx, dword [edi + 0x20]
cmovbe eax, dword [edi + 0x58]
mov dword [edx + 0x68], eax
mov ecx, dword [edi + 0x20]
cmp dword [edi + 0x5c], 0x64
cmovbe esi, dword [edi + 0x5c]
mov dword [ecx + 0x6c], esi
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x60]
mov dword [eax + 0x70], ecx
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x64]
mov dword [ecx + 0x74], eax
mov ecx, dword [edi + 0x90]
call fcn.0043ed60
mov esi, dword [edi + 0x90]
mov dword [ebp - 0x1c], esi
cmp dword [esi], 0
je 0x43fda7
mov eax, dword [esi + 0x64]
test eax, eax
je 0x43fda7
push eax
call fcn.00524771
add esp, 4
mov dword [esi + 0x64], 0
mov dword [esi], 0
mov edx, dword [esi + 0x68]
mov eax, dword [edx + 0xe89c]
mov dword [esi + 0x64], eax
test eax, eax
je 0x43fdbf
mov dword [esi], 0
jmp 0x43fe22
mov dword [esi], 1
movzx ecx, byte [edx + 0xe3d0]
movzx eax, word [edx + 0xe3ce]
shr ecx, 3
imul ecx, eax
movzx eax, word [edx + 0xe3cc]
imul ecx, eax
push ecx
call fcn.005247b4
mov edx, dword [esi + 0x68]
add esp, 4
mov dword [esi + 0x64], eax
movzx esi, byte [edx + 0xe3d0]
movzx ecx, word [edx + 0xe3ce]
shr esi, 3
imul esi, ecx
movzx ecx, word [edx + 0xe3cc]
imul esi, ecx
push esi
push 0
push eax
call fcn.00526a30
mov esi, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [esi + 0x68]
cmp byte [esi + 0x74], 0
je 0x43fe5d
cmp dword [esi + 0x64], 0
je 0x43fe64
movzx ecx, byte [edx + 0xe3d0]
movzx eax, word [edx + 0xe3ce]
shr ecx, 3
imul ecx, eax
movzx eax, word [edx + 0xe3cc]
imul ecx, eax
push ecx
push dword [esi + 0x64]
push dword [esi + 0x40]
call fcn.005264b0
add esp, 0xc
jmp 0x43fe64
mov ecx, esi
call fcn.0043eea0
push 1
push 0
push 0
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x68]
push dword [eax + 0xe380]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x8c]
mov eax, dword [edi + 0x88]
mov dword [ecx + 0x4c], eax
mov dword [ecx + 0x50], edx
mov ecx, edi
call fcn.0043f200
jmp 0x43febc
push ecx
push str.vncEncodeMgr::SetEncoding_:_unknown_encoder_requested:__i_n
push 0
push 0x5c3db0
call fcn.0041dde0
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8