Function at 0x438ca0
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 0x5491a9
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 0x438cf7
cmp edi, 0xa
mov eax, 5
cmove edi, eax
mov eax, dword [esi + 0xac]
cmp edi, eax
jne 0x438d11
cmp dword [esi + 0x20], 0
je 0x438d11
mov eax, 1
jmp 0x4398a5
cmp dword [ebx + 0xc], 0
je 0x438d2d
mov ecx, dword [esi + 0x90]
mov edi, eax
call fcn.00436a90
test eax, eax
jne 0x438d33
jmp 0x4398a3
mov dword [esi + 0xac], edi
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x438d91
cmp byte [esi + 0x30], 0
je 0x438d45
mov dword [esi + 0x34], ecx
jmp 0x438d8a
cmp byte [esi + 0x38], 0
je 0x438d50
mov dword [esi + 0x3c], ecx
jmp 0x438d8a
cmp byte [esi + 0xb0], 0
je 0x438d5e
mov dword [esi + 0x40], ecx
jmp 0x438d8a
cmp byte [esi + 0x44], 0
je 0x438d69
mov dword [esi + 0x48], ecx
jmp 0x438d8a
cmp byte [esi + 0x4c], 0
je 0x438d74
mov dword [esi + 0x50], ecx
jmp 0x438d8a
cmp byte [esi + 0x28], 0
je 0x438d7f
mov dword [esi + 0x2c], ecx
jmp 0x438d8a
cmp ecx, dword [esi + 0x24]
je 0x438d8a
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.0x438dce.18
mov ecx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [edi + 0x439908]
mov dword [ebp - 0x14], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x24], ecx
jmp dword [eax*4 + 0x4398bc]
push str.vncEncodeMgr::SetEncoding_:_raw_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
push 0x84
call fcn.0051946c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
call fcn.00458800
mov dword [esi + 0x20], eax
jmp 0x43961c
push str.vncEncodeMgr::SetEncoding_:_RRE_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
push 0x8c
call fcn.0051946c
mov edi, eax
add esp, 4
mov ecx, edi
mov dword [ebp - 0x2c], edi
call fcn.00458800
mov dword [edi], vtable.vncEncodeRRE.0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov dword [esi + 0x20], edi
jmp 0x43961c
push str.vncEncodeMgr::SetEncoding_:_CoRRE_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
push 0xb0
call fcn.0051946c
mov edi, eax
add esp, 4
mov ecx, edi
mov dword [ebp - 0x2c], edi
call fcn.00458800
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.0051f4c6
add esp, 4
push eax
call fcn.0051f4b4
mov dword [edi + 0xac], 0
add esp, 4
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0
mov dword [esi + 0x20], edi
jmp 0x43961c
push str.vncEncodeMgr::SetEncoding_:_Hextile_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
push 0x84
call fcn.0051946c
mov edi, eax
add esp, 4
mov ecx, edi
mov dword [ebp - 0x2c], edi
call fcn.00458800
mov dword [edi], vtable.vncEncodeHexT.0
mov dword [esi + 0x20], edi
jmp 0x43961c
push str.vncEncodeMgr::SetEncoding_:_Ultra_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041cc90
mov ecx, dword [esi + 0x3c]
add esp, 0xc
test ecx, ecx
jne 0x439040
push 0xb8
call fcn.0051946c
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00458800
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.005194aa
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.005194aa
add esp, 4
mov dword [edi + 0x8c], eax
cmp dword [edi + 0x88], 0
jne 0x439024
push str.vncEncodeUltra::vncEncodeUltra_:_Memory_error
push 9
push 0x5b0d48
call fcn.0041cc90
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 0x439043
jmp 0x4398a3
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 0x439068
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 0x43908a
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 0x43961c
push str.vncEncodeMgr::SetEncoding_:_Ultra_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
cmp byte [esi + 0x98], 0x20
jne 0x4391a6
cmp byte [esi + 8], 0x20
jne 0x4391a6
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x439197
push 0x298
call fcn.0051946c
mov edi, eax
add esp, 4
mov dword [ebp - 0x2c], edi
mov ecx, edi
mov dword [ebp - 4], 3
call fcn.00458800
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.00488fe0
push ecx
lea ecx, [edi + 0xa8]
mov dword [edi + 0xa8], eax
call fcn.00488ae0
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], edi
test edi, edi
jne 0x43919a
jmp 0x4398a3
mov dword [esi + 0x20], eax
mov byte [esi + 0xb0], 1
jmp 0x43961c
push str.vncEncodeMgr::SetEncoding_:_jpeg_encoder_is_only_supported_on_32bit_color_display_n
push 9
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
jmp 0x4398a3
push str.vncEncodeMgr::SetEncoding_:_ZSTDRLE_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041cc90
mov eax, dword [esi + 0x24]
add esp, 0xc
test eax, eax
jne 0x439202
push 0x98
call fcn.0051946c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 5
call fcn.00470580
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 0x43961c
push str.vncEncodeMgr::SetEncoding_:_ZRLE_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041cc90
mov eax, dword [esi + 0x24]
add esp, 0xc
test eax, eax
jne 0x439261
push 0x98
call fcn.0051946c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 6
call fcn.00470580
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 0x43961c
push str.vncEncodeMgr::SetEncoding_:_ZSTDYWRLE_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041cc90
mov eax, dword [esi + 0x24]
add esp, 0xc
test eax, eax
jne 0x4392c0
push 0x98
call fcn.0051946c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 7
call fcn.00470580
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 0x43961c
push str.vncEncodeMgr::SetEncoding_:_ZYWRLE_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041cc90
mov eax, dword [esi + 0x24]
add esp, 0xc
test eax, eax
jne 0x43931f
push 0x98
call fcn.0051946c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 8
call fcn.00470580
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 0x43961c
push str.vncEncodeMgr::SetEncoding_:_XZ_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041cc90
mov eax, dword [esi + 0x2c]
add esp, 0xc
test eax, eax
jne 0x43937b
push 0x94
call fcn.0051946c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 9
call fcn.00465c60
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], eax
mov dword [eax + 0x84], 0
mov byte [esi + 0x28], 1
jmp 0x43961c
push str.vncEncodeMgr::SetEncoding_:_XZYW_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041cc90
mov eax, dword [esi + 0x2c]
add esp, 0xc
test eax, eax
jne 0x4393d1
push 0x94
call fcn.0051946c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0xa
call fcn.00465c60
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], eax
mov dword [eax + 0x84], 1
mov byte [esi + 0x28], 1
jmp 0x43961c
push str.vncEncodeMgr::SetEncoding_:_Zlib_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041cc90
mov ecx, dword [esi + 0x34]
add esp, 0xc
test ecx, ecx
jne 0x439435
push 0xbc
call fcn.0051946c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0xb
call fcn.00466e20
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], ecx
test ecx, ecx
jne 0x439438
jmp 0x4398a3
mov dword [esi + 0x20], ecx
mov byte [esi + 0x30], 1
mov eax, dword [ecx]
push 0
call dword [eax + 0x40]
jmp 0x43961c
push str.vncEncodeMgr::SetEncoding_:_Zstd_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041cc90
mov ecx, dword [esi + 0x34]
add esp, 0xc
test ecx, ecx
jne 0x439496
push 0xbc
call fcn.0051946c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0xc
call fcn.00466e20
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], ecx
test ecx, ecx
jne 0x439499
jmp 0x4398a3
mov dword [esi + 0x20], ecx
mov byte [esi + 0x30], 1
mov eax, dword [ecx]
push 1
call dword [eax + 0x40]
jmp 0x43961c
push str.vncEncodeMgr::SetEncoding_:_ZlibHex_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041cc90
mov ecx, dword [esi + 0x48]
add esp, 0xc
test ecx, ecx
jne 0x4394f7
push 0xa0
call fcn.0051946c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0xd
call fcn.00467860
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], ecx
test ecx, ecx
jne 0x4394fa
jmp 0x4398a3
mov dword [esi + 0x20], ecx
mov byte [esi + 0x44], 1
mov eax, dword [ecx]
push 0
call dword [eax + 0x3c]
jmp 0x43961c
push str.vncEncodeMgr::SetEncoding_:_ZstdbHex_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041cc90
mov ecx, dword [esi + 0x48]
add esp, 0xc
test ecx, ecx
jne 0x439558
push 0xa0
call fcn.0051946c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0xe
call fcn.00467860
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], ecx
test ecx, ecx
jne 0x43955b
jmp 0x4398a3
mov dword [esi + 0x20], ecx
mov byte [esi + 0x44], 1
mov eax, dword [ecx]
push 1
call dword [eax + 0x3c]
jmp 0x43961c
push str.vncEncodeMgr::SetEncoding_:_Tight_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041cc90
mov ecx, dword [esi + 0x50]
add esp, 0xc
test ecx, ecx
jne 0x4395b9
push 0x1b1c
call fcn.0051946c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0xf
call fcn.0045a320
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], ecx
test ecx, ecx
jne 0x4395bc
jmp 0x4398a3
mov dword [esi + 0x20], ecx
push 0
jmp 0x439613
push str.vncEncodeMgr::SetEncoding_:_TightZstd_encoder_requested_n
push 9
push 0x5b0d48
call fcn.0041cc90
mov ecx, dword [esi + 0x50]
add esp, 0xc
test ecx, ecx
jne 0x43960e
push 0x1b1c
call fcn.0051946c
add esp, 4
mov dword [ebp - 0x2c], eax
mov ecx, eax
mov dword [ebp - 4], 0x10
call fcn.0045a320
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x20], ecx
test ecx, ecx
jne 0x439611
jmp 0x4398a3
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 0x439679
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.00458f90
cmp dword [esi + 0x18], 0
je 0x439679
mov ecx, dword [esi + 0x20]
movups xmm0, xmmword [esi + 8]
movups xmmword [ecx + 0x20], xmm0
call fcn.00458d20
test eax, eax
jne 0x439679
push str.vncEncodeMgr::SetEncoding_:_client_pixel_format_is_not_supported_n
push eax
push 0x5b0d48
call fcn.0041cc90
add esp, 0xc
jmp 0x4398a3
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4396d5
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 0x439765
cmp dword [edi + 0x60], 0
je 0x439765
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 0x43975f
mov esi, dword [ebp - 0x18]
push dword [ebp - 0x28]
push edi
push edx
call fcn.0051b450
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 0x439728
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 0x439790
mov eax, dword [edi + 0x64]
test eax, eax
je 0x439790
push eax
call fcn.00519467
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 0x4397a8
mov dword [edi], 0
jmp 0x43980b
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.005194aa
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.0051b450
mov edi, dword [ebp - 0x2c]
add esp, 0xc
mov edx, dword [edi + 0x68]
cmp byte [edi + 0x74], 0
je 0x439846
cmp dword [edi + 0x64], 0
je 0x43984d
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.0051aed0
add esp, 0xc
jmp 0x43984d
mov ecx, edi
call fcn.004387d0
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.00438bc0
jmp 0x4398a5
push edi
push str.vncEncodeMgr::SetEncoding_:_unknown_encoder_requested:__i_n
push 0
push 0x5b0d48
call fcn.0041cc90
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