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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x470ba2
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x489348]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
je 0x410335
mov eax, dword [edi + 0x7c]
mov esi, dword [edi + 0x98]
call fcn.0040e180
jmp 0x41033e
mov esi, dword [ebp + 8]
mov dword [edi + 0x98], esi
mov ecx, dword [edi + 0x20]
cmp ecx, ebx
je 0x41037d
cmp byte [edi + 0x28], bl
je 0x41034f
mov dword [edi + 0x2c], ecx
jmp 0x41037a
cmp byte [edi + 0x30], bl
je 0x410359
mov dword [edi + 0x34], ecx
jmp 0x41037a
cmp byte [edi + 0x38], bl
je 0x410363
mov dword [edi + 0x3c], ecx
jmp 0x41037a
cmp byte [edi + 0x40], bl
je 0x41036d
mov dword [edi + 0x44], ecx
jmp 0x41037a
cmp ecx, dword [edi + 0x24]
je 0x41037a
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 0x20], ebx
mov byte [edi + 0x28], bl
mov byte [edi + 0x30], bl
mov byte [edi + 0x38], bl
mov byte [edi + 0x40], bl
cmp esi, 0x11
ja case.0x410399.1
movzx eax, byte [esi + 0x410838]
jmp dword [eax*4 + 0x41080c]
push str.g:_vnc104rc_relultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_raw_encoder_requested_n
mov ecx, 9
mov eax, 0x48b3f0
call fcn.00401000
add esp, 4
push 0x70
call fcn.0045c88a
add esp, 4
cmp eax, ebx
je 0x4103cc
call fcn.00423830
jmp 0x4103ce
xor eax, eax
mov dword [edi + 0x20], eax
cmp eax, ebx
jne 0x4106d4
jmp 0x4107f3
push str.g:_vnc104rc_relultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_RRE_encoder_requested_n
mov ecx, 9
mov eax, 0x48b3f0
call fcn.00401000
add esp, 4
push 0x78
call fcn.0045c88a
add esp, 4
cmp eax, ebx
je 0x4103cc
call fcn.004245f0
jmp 0x4103ce
push str.g:_vnc104rc_relultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_CoRRE_encoder_requested_n
mov ecx, 9
mov eax, 0x48b3f0
call fcn.00401000
add esp, 4
push 0x9c
call fcn.0045c88a
add esp, 4
cmp eax, ebx
je 0x4103cc
mov esi, eax
call fcn.00421b80
jmp 0x4103ce
push str.g:_vnc104rc_relultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_Hextile_encoder_requested_n
mov ecx, 9
mov eax, 0x48b3f0
call fcn.00401000
add esp, 4
push 0x70
call fcn.0045c88a
add esp, 4
cmp eax, ebx
je 0x4103cc
call fcn.00422930
jmp 0x4103ce
push str.g:_vnc104rc_relultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_Ultra_encoder_requested_n
mov ecx, 9
mov eax, 0x48b3f0
call fcn.00401000
mov eax, dword [edi + 0x34]
add esp, 4
cmp eax, ebx
jne 0x4104b7
push 0xa8
call fcn.0045c88a
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ebx
cmp eax, ebx
je 0x4104ad
push eax
call fcn.00428d40
jmp 0x4104af
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [edi + 0x20], eax
cmp eax, ebx
je 0x4107f3
mov ecx, dword [edi + 0x6c]
mov byte [edi + 0x30], 1
mov dword [eax + 0x9c], ecx
mov eax, dword [edi + 0x20]
mov dword [edi + 0x54], ebx
cmp eax, ebx
je 0x4104dc
mov dword [eax + 0x68], ebx
mov eax, dword [edi + 0x20]
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x58], ebx
cmp eax, ebx
je 0x4104ec
mov dword [eax + 0x6c], ebx
mov eax, dword [edi + 0x7c]
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x70], ebx
mov dword [eax + 0x20], ebx
jmp 0x4106d4
push str.g:_vnc104rc_relultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_ZRLE_encoder_requested_n
mov ecx, 9
mov eax, 0x48b3f0
call fcn.00401000
add esp, 4
cmp dword [edi + 0x24], ebx
jne 0x41054b
push 0x80
call fcn.0045c88a
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 1
cmp eax, ebx
je 0x41053e
push eax
call fcn.00433530
jmp 0x410540
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x24]
mov dword [edi + 0x20], eax
mov dword [eax + 0x70], ebx
jmp 0x4106d4
push str.g:_vnc104rc_relultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_ZYWRLE_encoder_requested_n
mov ecx, 9
mov eax, 0x48b3f0
call fcn.00401000
add esp, 4
cmp dword [edi + 0x24], ebx
jne 0x4105a7
push 0x80
call fcn.0045c88a
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 2
cmp eax, ebx
je 0x41059a
push eax
call fcn.00433530
jmp 0x41059c
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x24]
mov dword [edi + 0x20], eax
mov dword [eax + 0x70], 1
jmp 0x4106d4
push str.g:_vnc104rc_relultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_Zlib_encoder_requested_n
mov ecx, 9
mov eax, 0x48b3f0
call fcn.00401000
mov eax, dword [edi + 0x2c]
add esp, 4
cmp eax, ebx
jne 0x410606
push 0xec
call fcn.0045c88a
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 3
cmp eax, ebx
je 0x4105fc
push eax
call fcn.004296c0
jmp 0x4105fe
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [edi + 0x20], eax
cmp eax, ebx
je 0x4107f3
mov byte [edi + 0x28], 1
jmp 0x4106d4
push str.g:_vnc104rc_relultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_ZlibHex_encoder_requested_n
mov ecx, 9
mov eax, 0x48b3f0
call fcn.00401000
mov eax, dword [edi + 0x3c]
add esp, 4
cmp eax, ebx
jne 0x410667
push 0xf4
call fcn.0045c88a
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 4
cmp eax, ebx
je 0x41065d
push eax
call fcn.0042ab40
jmp 0x41065f
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [edi + 0x20], eax
cmp eax, ebx
je 0x4107f3
mov byte [edi + 0x38], 1
jmp 0x4106d4
push str.g:_vnc104rc_relultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_Tight_encoder_requested_n
mov ecx, 9
mov eax, 0x48b3f0
call fcn.00401000
mov eax, dword [edi + 0x44]
add esp, 4
cmp eax, ebx
jne 0x4106c5
push 0x198c
call fcn.0045c88a
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 5
cmp eax, ebx
je 0x4106bb
push eax
call fcn.004250d0
jmp 0x4106bd
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [edi + 0x20], eax
cmp eax, ebx
je 0x4107f3
mov byte [edi + 0x40], 1
mov ecx, dword [edi + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
movzx edx, byte [edi + 0x84]
movzx eax, word [edi + 0x80]
mov ecx, dword [edi + 0x20]
imul eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [ecx + 0x40], eax
mov eax, dword [edi + 0x84]
mov dword [ecx + 0x10], eax
mov edx, dword [edi + 0x88]
mov dword [ecx + 0x14], edx
mov eax, dword [edi + 0x8c]
mov dword [ecx + 0x18], eax
mov edx, dword [edi + 0x90]
mov eax, ecx
mov dword [ecx + 0x1c], edx
call fcn.00423c80
cmp dword [edi + 0x18], ebx
je 0x41075c
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x20]
mov dword [eax + 0x20], ecx
mov edx, dword [edi + 0xc]
mov dword [eax + 0x24], edx
mov ecx, dword [edi + 0x10]
mov dword [eax + 0x28], ecx
mov edx, dword [edi + 0x14]
mov dword [eax + 0x2c], edx
call fcn.00423c80
test eax, eax
jne 0x41075c
push str.g:_vnc104rc_relultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_client_pixel_format_is_not_supported_n
jmp 0x4107e4
cmp dword [ebp + 0xc], ebx
je 0x4107a4
mov eax, dword [edi + 0x20]
cmp eax, ebx
je 0x4107a4
mov ecx, dword [edi + 0x54]
mov dword [eax + 0x68], ecx
mov eax, dword [edi + 0x58]
mov edx, dword [edi + 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [edi + 0x48]
mov ecx, dword [edi + 0x20]
cmp eax, 9
jbe 0x410787
mov eax, 6
mov dword [ecx + 0x5c], eax
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x20]
cmp eax, 9
jbe 0x410798
or eax, 0xffffffff
mov dword [ecx + 0x60], eax
mov ecx, dword [edi + 0x20]
mov edx, dword [edi + 0x50]
mov dword [ecx + 0x64], edx
mov ebx, dword [edi + 0x7c]
call fcn.0040fd60
mov ecx, dword [edi + 0x7c]
call fcn.0040fe60
mov ecx, dword [edi + 0x78]
mov eax, dword [edi + 0x20]
mov edx, dword [edi + 0x74]
mov esi, edi
mov dword [eax + 0x44], edx
mov dword [eax + 0x48], ecx
call fcn.004101c0
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.g:_vnc104rc_relultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_unknown_encoder_requested_n
xor ecx, ecx
mov eax, 0x48b3f0
call fcn.00401000
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8