Function at 0x438bc0
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 0x5484e9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x5b0008]
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 0x438c17
cmp edi, 0xa
mov eax, 5
cmove edi, eax
mov eax, dword [esi + 0xac]
cmp edi, eax
jne 0x438c31
cmp dword [esi + 0x20], 0
je 0x438c31
mov eax, 1
jmp 0x4397c5
cmp dword [ebx + 0xc], 0
je 0x438c4d
mov ecx, dword [esi + 0x90]
mov edi, eax
call fcn.004369a0
test eax, eax
jne 0x438c53
jmp 0x4397c3
mov dword [esi + 0xac], edi
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x438cb1
cmp byte [esi + 0x30], 0
je 0x438c65
mov dword [esi + 0x34], ecx
jmp 0x438caa
cmp byte [esi + 0x38], 0
je 0x438c70
mov dword [esi + 0x3c], ecx
jmp 0x438caa
cmp byte [esi + 0xb0], 0
je 0x438c7e
mov dword [esi + 0x40], ecx
jmp 0x438caa
cmp byte [esi + 0x44], 0
je 0x438c89
mov dword [esi + 0x48], ecx
jmp 0x438caa
cmp byte [esi + 0x4c], 0
je 0x438c94
mov dword [esi + 0x50], ecx
jmp 0x438caa
cmp byte [esi + 0x28], 0
je 0x438c9f
mov dword [esi + 0x2c], ecx
jmp 0x438caa
cmp ecx, dword [esi + 0x24]
je 0x438caa
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.0x438cee.18
mov ecx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [edi + 0x439828]
mov dword [ebp - 0x14], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x24], ecx
jmp dword [eax*4 + 0x4397dc]
push str.vncEncodeMgr::SetEncoding_:_raw_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
push 0x84
call fcn.005187ac
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
call fcn.00458f00
mov dword [esi + 0x20], eax
jmp 0x43953c
push str.vncEncodeMgr::SetEncoding_:_RRE_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
push 0x8c
call fcn.005187ac
mov edi, eax
add esp, 4
mov ecx, edi
mov dword [ebp - 0x2c], edi
call fcn.00458f00
mov dword [edi], vtable.vncEncodeRRE.0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov dword [esi + 0x20], edi
jmp 0x43953c
push str.vncEncodeMgr::SetEncoding_:_CoRRE_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
push 0xb0
call fcn.005187ac
mov edi, eax
add esp, 4
mov ecx, edi
mov dword [ebp - 0x2c], edi
call fcn.00458f00
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.0051e806
add esp, 4
push eax
call fcn.0051e7f4
mov dword [edi + 0xac], 0
add esp, 4
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0
mov dword [esi + 0x20], edi
jmp 0x43953c
push str.vncEncodeMgr::SetEncoding_:_Hextile_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
push 0x84
call fcn.005187ac
mov edi, eax
add esp, 4
mov ecx, edi
mov dword [ebp - 0x2c], edi
call fcn.00458f00
mov dword [edi], vtable.vncEncodeHexT.0
mov dword [esi + 0x20], edi
jmp 0x43953c
push str.vncEncodeMgr::SetEncoding_:_Ultra_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov ecx, dword [esi + 0x3c]
add esp, 0xc
test ecx, ecx
jne 0x438f60
push 0xb8
call fcn.005187ac
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00458f00
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.005187ea
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.005187ea
add esp, 4
mov dword [edi + 0x8c], eax
cmp dword [edi + 0x88], 0
jne 0x438f44
push str.vncEncodeUltra::vncEncodeUltra_:_Memory_error
push 9
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
mov ecx, edi
mov byte [edi + 0xb0], 0
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], edi
test ecx, ecx
jne 0x438f63
jmp 0x4397c3
mov dword [esi + 0x20], ecx
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 0x438f88
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 0x438faa
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 dword [ebp - 0x14]
lea eax, [edi + 0x48]
mov dword [edi + 8], 0
push eax
mov dword [ebp - 4], 0xffffffff
call dword [ebp - 0x24]
jmp 0x43953c
push str.vncEncodeMgr::SetEncoding_:_Ultra_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
cmp byte [esi + 0x98], 0x20
jne 0x4390c6
cmp byte [esi + 8], 0x20
jne 0x4390c6
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x4390b7
push 0x298
call fcn.005187ac
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov ecx, edi
mov dword [ebp - 4], 3
call fcn.00458f00
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.00488310
push ecx
lea ecx, [edi + 0xa8]
mov dword [edi + 0xa8], eax
call fcn.00487e10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], edi
test edi, edi
jne 0x4390ba
jmp 0x4397c3
mov dword [esi + 0x20], eax
mov byte [esi + 0xb0], 1
jmp 0x43953c
push str.vncEncodeMgr::SetEncoding_:_jpeg_encoder_is_only_supported_on_32bit_color_display_n
push 9
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
jmp 0x4397c3
push str.vncEncodeMgr::SetEncoding_:_ZSTDRLE_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov eax, dword [esi + 0x24]
add esp, 0xc
test eax, eax
jne 0x439122
push 0x98
call fcn.005187ac
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 5
call fcn.00470b50
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 0x43953c
push str.vncEncodeMgr::SetEncoding_:_ZRLE_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov eax, dword [esi + 0x24]
add esp, 0xc
test eax, eax
jne 0x439181
push 0x98
call fcn.005187ac
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 6
call fcn.00470b50
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 0x43953c
push str.vncEncodeMgr::SetEncoding_:_ZSTDYWRLE_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov eax, dword [esi + 0x24]
add esp, 0xc
test eax, eax
jne 0x4391e0
push 0x98
call fcn.005187ac
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 7
call fcn.00470b50
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 0x43953c
push str.vncEncodeMgr::SetEncoding_:_ZYWRLE_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov eax, dword [esi + 0x24]
add esp, 0xc
test eax, eax
jne 0x43923f
push 0x98
call fcn.005187ac
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 8
call fcn.00470b50
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 0x43953c
push str.vncEncodeMgr::SetEncoding_:_XZ_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov eax, dword [esi + 0x2c]
add esp, 0xc
test eax, eax
jne 0x43929b
push 0x94
call fcn.005187ac
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 9
call fcn.004662b0
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], eax
mov dword [eax + 0x84], 0
mov byte [esi + 0x28], 1
jmp 0x43953c
push str.vncEncodeMgr::SetEncoding_:_XZYW_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov eax, dword [esi + 0x2c]
add esp, 0xc
test eax, eax
jne 0x4392f1
push 0x94
call fcn.005187ac
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0xa
call fcn.004662b0
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], eax
mov dword [eax + 0x84], 1
mov byte [esi + 0x28], 1
jmp 0x43953c
push str.vncEncodeMgr::SetEncoding_:_Zlib_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov ecx, dword [esi + 0x34]
add esp, 0xc
test ecx, ecx
jne 0x439355
push 0xbc
call fcn.005187ac
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0xb
call fcn.004673b0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], ecx
test ecx, ecx
jne 0x439358
jmp 0x4397c3
mov dword [esi + 0x20], ecx
mov byte [esi + 0x30], 1
mov eax, dword [ecx]
push 0
call dword [eax + 0x40]
jmp 0x43953c
push str.vncEncodeMgr::SetEncoding_:_Zstd_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov ecx, dword [esi + 0x34]
add esp, 0xc
test ecx, ecx
jne 0x4393b6
push 0xbc
call fcn.005187ac
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0xc
call fcn.004673b0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], ecx
test ecx, ecx
jne 0x4393b9
jmp 0x4397c3
mov dword [esi + 0x20], ecx
mov byte [esi + 0x30], 1
mov eax, dword [ecx]
push 1
call dword [eax + 0x40]
jmp 0x43953c
push str.vncEncodeMgr::SetEncoding_:_ZlibHex_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov ecx, dword [esi + 0x48]
add esp, 0xc
test ecx, ecx
jne 0x439417
push 0xa0
call fcn.005187ac
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0xd
call fcn.00467e20
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], ecx
test ecx, ecx
jne 0x43941a
jmp 0x4397c3
mov dword [esi + 0x20], ecx
mov byte [esi + 0x44], 1
mov eax, dword [ecx]
push 0
call dword [eax + 0x3c]
jmp 0x43953c
push str.vncEncodeMgr::SetEncoding_:_ZstdbHex_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov ecx, dword [esi + 0x48]
add esp, 0xc
test ecx, ecx
jne 0x439478
push 0xa0
call fcn.005187ac
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0xe
call fcn.00467e20
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], ecx
test ecx, ecx
jne 0x43947b
jmp 0x4397c3
mov dword [esi + 0x20], ecx
mov byte [esi + 0x44], 1
mov eax, dword [ecx]
push 1
call dword [eax + 0x3c]
jmp 0x43953c
push str.vncEncodeMgr::SetEncoding_:_Tight_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov ecx, dword [esi + 0x50]
add esp, 0xc
test ecx, ecx
jne 0x4394d9
push 0x1b1c
call fcn.005187ac
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0xf
call fcn.0045aac0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], ecx
test ecx, ecx
jne 0x4394dc
jmp 0x4397c3
mov dword [esi + 0x20], ecx
push 0
jmp 0x439533
push str.vncEncodeMgr::SetEncoding_:_TightZstd_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041ccb0
mov ecx, dword [esi + 0x50]
add esp, 0xc
test ecx, ecx
jne 0x43952e
push 0x1b1c
call fcn.005187ac
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0x10
call fcn.0045aac0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], ecx
test ecx, ecx
jne 0x439531
jmp 0x4397c3
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 0x439599
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.00459690
cmp dword [esi + 0x18], 0
je 0x439599
mov ecx, dword [esi + 0x20]
movups xmm0, xmmword [esi + 8]
movups xmmword [ecx + 0x20], xmm0
call fcn.00459420
test eax, eax
jne 0x439599
push str.vncEncodeMgr::SetEncoding_:_client_pixel_format_is_not_supported_n
push eax
push 0x5b0d48
call fcn.0041ccb0
add esp, 0xc
jmp 0x4397c3
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4395f5
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 0x439685
cmp dword [edi + 0x60], 0
je 0x439685
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 0x43967f
mov esi, dword [ebp - 0x18]
push dword [ebp - 0x28]
push edi
push edx
call fcn.0051a780
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 0x439648
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 0x4396b0
mov eax, dword [edi + 0x64]
test eax, eax
je 0x4396b0
push eax
call fcn.005187a7
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 0x4396c8
mov dword [edi], 0
jmp 0x43972b
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.005187ea
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.0051a780
mov edi, dword [ebp - 0x2c]
add esp, 0xc
mov edx, dword [edi + 0x68]
cmp byte [edi + 0x74], 0
je 0x439766
cmp dword [edi + 0x64], 0
je 0x43976d
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.0051a200
add esp, 0xc
jmp 0x43976d
mov ecx, edi
call fcn.004386e0
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.00438ae0
jmp 0x4397c5
push edi
push str.vncEncodeMgr::SetEncoding_:_unknown_encoder_requested:__i_n
push 0
push 0x5b0d48
call fcn.0041ccb0
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