Function at 0x4350c0
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 0x53f739
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x5a6008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
cmp byte [esi + 0x98], 0x20
mov edi, dword [ebx + 8]
je 0x435117
cmp edi, 0xa
mov eax, 5
cmove edi, eax
mov eax, dword [esi + 0xac]
cmp edi, eax
jne 0x435131
cmp dword [esi + 0x20], 0
je 0x435131
mov eax, 1
jmp 0x435ccd
cmp dword [ebx + 0xc], 0
je 0x43514d
mov ecx, dword [esi + 0x90]
mov edi, eax
call fcn.00432e90
test eax, eax
jne 0x435153
jmp 0x435ccb
mov dword [esi + 0xac], edi
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4351b1
cmp byte [esi + 0x30], 0
je 0x435165
mov dword [esi + 0x34], ecx
jmp 0x4351aa
cmp byte [esi + 0x38], 0
je 0x435170
mov dword [esi + 0x3c], ecx
jmp 0x4351aa
cmp byte [esi + 0xb0], 0
je 0x43517e
mov dword [esi + 0x40], ecx
jmp 0x4351aa
cmp byte [esi + 0x44], 0
je 0x435189
mov dword [esi + 0x48], ecx
jmp 0x4351aa
cmp byte [esi + 0x4c], 0
je 0x435194
mov dword [esi + 0x50], ecx
jmp 0x4351aa
cmp byte [esi + 0x28], 0
je 0x43519f
mov dword [esi + 0x2c], ecx
jmp 0x4351aa
cmp ecx, dword [esi + 0x24]
je 0x4351aa
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x20], 0
mov byte [esi + 0x30], 0
mov byte [esi + 0x38], 0
mov byte [esi + 0xb0], 0
mov byte [esi + 0x44], 0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x28], 0
cmp edi, 0x1d
ja case.0x4351ee.18
mov edx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
movzx eax, byte [edi + 0x435d30]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], ecx
jmp dword [eax*4 + 0x435ce4]
push str.vncEncodeMgr::SetEncoding_:_raw_encoder_requested_n
push 9
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
push 0x84
call fcn.0051134c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
call fcn.00454b50
mov dword [esi + 0x20], eax
jmp 0x435a42
push str.vncEncodeMgr::SetEncoding_:_RRE_encoder_requested_n
push 9
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
push 0x8c
call fcn.0051134c
mov edi, eax
add esp, 4
mov ecx, edi
mov dword [ebp - 0x2c], edi
call fcn.00454b50
mov dword [edi], vtable.vncEncodeRRE.0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov dword [esi + 0x20], edi
jmp 0x435a42
push str.vncEncodeMgr::SetEncoding_:_CoRRE_encoder_requested_n
push 9
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
push 0xb0
call fcn.0051134c
mov edi, eax
add esp, 4
mov ecx, edi
mov dword [ebp - 0x2c], edi
call fcn.00454b50
push 0
mov dword [edi], vtable.vncEncodeCoRRE.0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0x18
mov dword [edi + 0x90], 0x18
mov dword [edi + 0xa4], 1
mov dword [edi + 0xa8], 0x32
call fcn.00517466
add esp, 4
push eax
call fcn.00517454
mov dword [edi + 0xac], 0
add esp, 4
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0
mov dword [esi + 0x20], edi
jmp 0x435a42
push str.vncEncodeMgr::SetEncoding_:_Hextile_encoder_requested_n
push 9
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
push 0x84
call fcn.0051134c
mov edi, eax
add esp, 4
mov ecx, edi
mov dword [ebp - 0x2c], edi
call fcn.00454b50
mov dword [edi], vtable.vncEncodeHexT.0
mov dword [esi + 0x20], edi
jmp 0x435a42
push str.vncEncodeMgr::SetEncoding_:_Ultra_encoder_requested_n
push 9
push 0x5a6c48
call fcn.0041d720
mov ecx, dword [esi + 0x3c]
add esp, 0xc
test ecx, ecx
jne 0x4354e6
push 0xb8
call fcn.0051134c
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00454b50
mov byte [ebp - 4], 1
push 0x20001
mov dword [edi], vtable.vncEncodeUltra.0
mov dword [edi + 0xa8], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0x9c], 0x20000
call fcn.0051138a
mov ecx, dword [edi + 0x9c]
add esp, 4
mov dword [edi + 0x88], eax
mov eax, 0x51eb851f
imul ecx
add ecx, 8
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
push eax
call fcn.0051138a
add esp, 4
mov dword [edi + 0x8c], eax
cmp dword [edi + 0x88], 0
jne 0x435444
push str.vncEncodeUltra::vncEncodeUltra_:_Memory_error
push 9
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
mov ecx, edi
mov byte [edi + 0xb0], 0
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], edi
test ecx, ecx
je 0x435ccb
mov edx, dword [ebp - 0x14]
mov eax, dword [esi + 0x80]
mov byte [esi + 0x38], 1
mov dword [ecx + 0xac], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x68], 0
test eax, eax
je 0x435487
mov dword [eax + 0x78], 0
mov eax, dword [esi + 0x90]
mov dword [eax + 0x6c], 1
mov eax, dword [esi + 0x20]
mov dword [esi + 0x6c], 0
test eax, eax
je 0x4354a9
mov dword [eax + 0x7c], 0
mov eax, dword [esi + 0x90]
mov dword [eax + 0x6c], 1
mov edi, dword [esi + 0x90]
mov dword [esi + 0x84], 0
lea eax, [edi + 0x48]
push eax
call edx
lea eax, [edi + 0x48]
mov dword [edi + 8], 0
push eax
mov dword [ebp - 4], 0xffffffff
call dword [ebp - 0x24]
jmp 0x435a42
mov dword [esi + 0x20], ecx
jmp 0x435462
push str.vncEncodeMgr::SetEncoding_:_Ultra_encoder_requested_n
push 9
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
cmp byte [esi + 0x98], 0x20
jne 0x4355cc
cmp byte [esi + 8], 0x20
jne 0x4355cc
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x4355bd
push 0x298
call fcn.0051134c
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov ecx, edi
mov dword [ebp - 4], 3
call fcn.00454b50
mov byte [ebp - 4], 4
lea ecx, [edi + 0x210]
mov dword [edi], vtable.vncEncodeUltra2.0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x94], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
call fcn.00480ee0
push ecx
lea ecx, [edi + 0xa8]
mov dword [edi + 0xa8], eax
call fcn.004809e0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], edi
test edi, edi
jne 0x4355c0
jmp 0x435ccb
mov dword [esi + 0x20], eax
mov byte [esi + 0xb0], 1
jmp 0x435a42
push str.vncEncodeMgr::SetEncoding_:_jpeg_encoder_is_only_supported_on_32bit_color_display_n
push 9
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
jmp 0x435ccb
push str.vncEncodeMgr::SetEncoding_:_ZSTDRLE_encoder_requested_n
push 9
push 0x5a6c48
call fcn.0041d720
mov eax, dword [esi + 0x24]
add esp, 0xc
test eax, eax
jne 0x435628
push 0x98
call fcn.0051134c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 5
call fcn.0046c770
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov dword [eax + 0x84], 0
mov eax, dword [esi + 0x24]
mov byte [eax + 0x80], 1
jmp 0x435a42
push str.vncEncodeMgr::SetEncoding_:_ZRLE_encoder_requested_n
push 9
push 0x5a6c48
call fcn.0041d720
mov eax, dword [esi + 0x24]
add esp, 0xc
test eax, eax
jne 0x435687
push 0x98
call fcn.0051134c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 6
call fcn.0046c770
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov dword [eax + 0x84], 0
mov eax, dword [esi + 0x24]
mov byte [eax + 0x80], 0
jmp 0x435a42
push str.vncEncodeMgr::SetEncoding_:_ZSTDYWRLE_encoder_requested_n
push 9
push 0x5a6c48
call fcn.0041d720
mov eax, dword [esi + 0x24]
add esp, 0xc
test eax, eax
jne 0x4356e6
push 0x98
call fcn.0051134c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 7
call fcn.0046c770
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov dword [eax + 0x84], 1
mov eax, dword [esi + 0x24]
mov byte [eax + 0x80], 1
jmp 0x435a42
push str.vncEncodeMgr::SetEncoding_:_ZYWRLE_encoder_requested_n
push 9
push 0x5a6c48
call fcn.0041d720
mov eax, dword [esi + 0x24]
add esp, 0xc
test eax, eax
jne 0x435745
push 0x98
call fcn.0051134c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 8
call fcn.0046c770
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
mov dword [eax + 0x84], 1
mov eax, dword [esi + 0x24]
mov byte [eax + 0x80], 0
jmp 0x435a42
push str.vncEncodeMgr::SetEncoding_:_XZ_encoder_requested_n
push 9
push 0x5a6c48
call fcn.0041d720
mov eax, dword [esi + 0x2c]
add esp, 0xc
test eax, eax
jne 0x4357a1
push 0x94
call fcn.0051134c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 9
call fcn.00461ee0
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], eax
mov dword [eax + 0x84], 0
mov byte [esi + 0x28], 1
jmp 0x435a42
push str.vncEncodeMgr::SetEncoding_:_XZYW_encoder_requested_n
push 9
push 0x5a6c48
call fcn.0041d720
mov eax, dword [esi + 0x2c]
add esp, 0xc
test eax, eax
jne 0x4357f7
push 0x94
call fcn.0051134c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0xa
call fcn.00461ee0
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], eax
mov dword [eax + 0x84], 1
mov byte [esi + 0x28], 1
jmp 0x435a42
push str.vncEncodeMgr::SetEncoding_:_Zlib_encoder_requested_n
push 9
push 0x5a6c48
call fcn.0041d720
mov ecx, dword [esi + 0x34]
add esp, 0xc
test ecx, ecx
jne 0x43585b
push 0xbc
call fcn.0051134c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0xb
call fcn.00462fe0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], ecx
test ecx, ecx
jne 0x43585e
jmp 0x435ccb
mov dword [esi + 0x20], ecx
mov byte [esi + 0x30], 1
mov eax, dword [ecx]
push 0
call dword [eax + 0x40]
jmp 0x435a42
push str.vncEncodeMgr::SetEncoding_:_Zstd_encoder_requested_n
push 9
push 0x5a6c48
call fcn.0041d720
mov ecx, dword [esi + 0x34]
add esp, 0xc
test ecx, ecx
jne 0x4358bc
push 0xbc
call fcn.0051134c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0xc
call fcn.00462fe0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], ecx
test ecx, ecx
jne 0x4358bf
jmp 0x435ccb
mov dword [esi + 0x20], ecx
mov byte [esi + 0x30], 1
mov eax, dword [ecx]
push 1
call dword [eax + 0x40]
jmp 0x435a42
push str.vncEncodeMgr::SetEncoding_:_ZlibHex_encoder_requested_n
push 9
push 0x5a6c48
call fcn.0041d720
mov ecx, dword [esi + 0x48]
add esp, 0xc
test ecx, ecx
jne 0x43591d
push 0xa0
call fcn.0051134c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0xd
call fcn.00463a50
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], ecx
test ecx, ecx
jne 0x435920
jmp 0x435ccb
mov dword [esi + 0x20], ecx
mov byte [esi + 0x44], 1
mov eax, dword [ecx]
push 0
call dword [eax + 0x3c]
jmp 0x435a42
push str.vncEncodeMgr::SetEncoding_:_ZstdbHex_encoder_requested_n
push 9
push 0x5a6c48
call fcn.0041d720
mov ecx, dword [esi + 0x48]
add esp, 0xc
test ecx, ecx
jne 0x43597e
push 0xa0
call fcn.0051134c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0xe
call fcn.00463a50
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], ecx
test ecx, ecx
jne 0x435981
jmp 0x435ccb
mov dword [esi + 0x20], ecx
mov byte [esi + 0x44], 1
mov eax, dword [ecx]
push 1
call dword [eax + 0x3c]
jmp 0x435a42
push str.vncEncodeMgr::SetEncoding_:_Tight_encoder_requested_n
push 9
push 0x5a6c48
call fcn.0041d720
mov ecx, dword [esi + 0x50]
add esp, 0xc
test ecx, ecx
jne 0x4359df
push 0x1b1c
call fcn.0051134c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0xf
call fcn.004566f0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], ecx
test ecx, ecx
jne 0x4359e2
jmp 0x435ccb
mov dword [esi + 0x20], ecx
push 0
jmp 0x435a39
push str.vncEncodeMgr::SetEncoding_:_TightZstd_encoder_requested_n
push 9
push 0x5a6c48
call fcn.0041d720
mov ecx, dword [esi + 0x50]
add esp, 0xc
test ecx, ecx
jne 0x435a34
push 0x1b1c
call fcn.0051134c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0x10
call fcn.004566f0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], ecx
test ecx, ecx
jne 0x435a37
jmp 0x435ccb
mov dword [esi + 0x20], ecx
push 1
mov byte [esi + 0x4c], 1
mov eax, dword [ecx]
call dword [eax + 0x34]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x435a9f
mov eax, dword [ecx]
call dword [eax + 4]
movzx eax, word [esi + 0x96]
mov ecx, dword [esi + 0x20]
push eax
movzx eax, word [esi + 0x94]
push eax
lea eax, [esi + 0x98]
push eax
call fcn.004552c0
cmp dword [esi + 0x18], 0
je 0x435a9f
mov ecx, dword [esi + 0x20]
movups xmm0, xmmword [esi + 8]
movups xmmword [ecx + 0x20], xmm0
call fcn.00455060
test eax, eax
jne 0x435a9f
push str.vncEncodeMgr::SetEncoding_:_client_pixel_format_is_not_supported_n
push eax
push 0x5a6c48
call fcn.0041d720
add esp, 0xc
jmp 0x435ccb
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x435afb
mov eax, dword [esi + 0x68]
mov dword [ecx + 0x78], eax
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x6c]
mov dword [ecx + 0x7c], eax
mov eax, 6
cmp dword [esi + 0x54], 9
mov edx, dword [esi + 0x20]
cmovbe eax, dword [esi + 0x54]
or edi, 0xffffffff
mov dword [edx + 0x64], eax
mov eax, edi
cmp dword [esi + 0x58], 9
mov edx, dword [esi + 0x20]
cmovbe eax, dword [esi + 0x58]
mov dword [edx + 0x68], eax
mov ecx, dword [esi + 0x20]
cmp dword [esi + 0x5c], 0x64
cmovbe edi, dword [esi + 0x5c]
mov dword [ecx + 0x6c], edi
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x60]
mov dword [ecx + 0x70], eax
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x64]
mov dword [ecx + 0x74], eax
mov edi, dword [esi + 0x90]
mov dword [ebp - 0x18], edi
cmp dword [edi + 8], 0
mov dword [edi + 0x6c], 1
je 0x435b8d
cmp dword [edi + 0x60], 0
je 0x435b8d
lea eax, [edi + 0x48]
push eax
mov dword [ebp - 0x2c], eax
call dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
movzx ecx, word [edi + 0x2a]
xor edi, edi
mov dword [ebp - 0x1c], ecx
movzx esi, byte [eax + 0x2c]
mov edx, dword [eax + 0x60]
movzx eax, word [eax + 0x28]
shr esi, 3
imul esi, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x28], esi
mov esi, dword [ebp - 0x20]
test ecx, ecx
je 0x435b87
mov esi, dword [ebp - 0x18]
nop
push dword [ebp - 0x28]
push edi
push edx
call fcn.00513330
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add eax, dword [esi + 4]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
dec edx
mov dword [ebp - 0x14], eax
cmp edi, 0xfe
mov dword [ebp - 0x1c], edx
lea eax, [edi + 1]
cmovne ecx, eax
test edx, edx
mov edx, dword [ebp - 0x14]
mov edi, ecx
jne 0x435b50
mov esi, dword [ebp - 0x20]
push dword [ebp - 0x2c]
call dword [ebp - 0x24]
mov edi, dword [esi + 0x90]
mov dword [ebp - 0x2c], edi
cmp dword [edi], 0
je 0x435bb8
mov eax, dword [edi + 0x64]
test eax, eax
je 0x435bb8
push eax
call fcn.00511347
add esp, 4
mov dword [edi + 0x64], 0
mov dword [edi], 0
mov edx, dword [edi + 0x68]
mov eax, dword [edx + 0xe89c]
mov dword [edi + 0x64], eax
test eax, eax
je 0x435bd0
mov dword [edi], 0
jmp 0x435c33
mov dword [edi], 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.0051138a
mov edx, dword [edi + 0x68]
add esp, 4
mov dword [edi + 0x64], eax
movzx edi, byte [edx + 0xe3d0]
movzx ecx, word [edx + 0xe3ce]
shr edi, 3
imul edi, ecx
movzx ecx, word [edx + 0xe3cc]
imul edi, ecx
push edi
push 0
push eax
call fcn.00513330
mov edi, dword [ebp - 0x2c]
add esp, 0xc
mov edx, dword [edi + 0x68]
cmp byte [edi + 0x74], 0
je 0x435c6e
cmp dword [edi + 0x64], 0
je 0x435c75
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 [edi + 0x64]
push dword [edi + 0x40]
call fcn.00512db0
add esp, 0xc
jmp 0x435c75
mov ecx, edi
call fcn.00434bd0
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 [edi + 0x68]
push dword [eax + 0xe380]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x8c]
mov eax, dword [esi + 0x88]
mov dword [ecx + 0x4c], eax
mov dword [ecx + 0x50], edx
mov ecx, esi
call fcn.00434fe0
jmp 0x435ccd
push edi
push str.vncEncodeMgr::SetEncoding_:_unknown_encoder_requested:__i_n
push 0
push 0x5a6c48
call fcn.0041d720
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