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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x472182
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x48a348]
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 0x4106a5
mov eax, dword [edi + 0x7c]
mov esi, dword [edi + 0x98]
call fcn.0040e4e0
jmp 0x4106ae
mov esi, dword [ebp + 8]
mov dword [edi + 0x98], esi
mov ecx, dword [edi + 0x20]
cmp ecx, ebx
je 0x4106ed
cmp byte [edi + 0x28], bl
je 0x4106bf
mov dword [edi + 0x2c], ecx
jmp 0x4106ea
cmp byte [edi + 0x30], bl
je 0x4106c9
mov dword [edi + 0x34], ecx
jmp 0x4106ea
cmp byte [edi + 0x38], bl
je 0x4106d3
mov dword [edi + 0x3c], ecx
jmp 0x4106ea
cmp byte [edi + 0x40], bl
je 0x4106dd
mov dword [edi + 0x44], ecx
jmp 0x4106ea
cmp ecx, dword [edi + 0x24]
je 0x4106ea
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.0x410709.1
movzx eax, byte [esi + 0x410ba8]
jmp dword [eax*4 + 0x410b7c]
push str.d:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_raw_encoder_requested_n
mov ecx, 9
mov eax, 0x48c4e8
call fcn.00401000
add esp, 4
push 0x70
call fcn.0045dd59
add esp, 4
cmp eax, ebx
je 0x41073c
call fcn.00424720
jmp 0x41073e
xor eax, eax
mov dword [edi + 0x20], eax
cmp eax, ebx
jne 0x410a44
jmp 0x410b63
push str.d:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_RRE_encoder_requested_n
mov ecx, 9
mov eax, 0x48c4e8
call fcn.00401000
add esp, 4
push 0x78
call fcn.0045dd59
add esp, 4
cmp eax, ebx
je 0x41073c
call fcn.004254e0
jmp 0x41073e
push str.d:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_CoRRE_encoder_requested_n
mov ecx, 9
mov eax, 0x48c4e8
call fcn.00401000
add esp, 4
push 0x9c
call fcn.0045dd59
add esp, 4
cmp eax, ebx
je 0x41073c
mov esi, eax
call fcn.00422a70
jmp 0x41073e
push str.d:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_Hextile_encoder_requested_n
mov ecx, 9
mov eax, 0x48c4e8
call fcn.00401000
add esp, 4
push 0x70
call fcn.0045dd59
add esp, 4
cmp eax, ebx
je 0x41073c
call fcn.00423820
jmp 0x41073e
push str.d:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_Ultra_encoder_requested_n
mov ecx, 9
mov eax, 0x48c4e8
call fcn.00401000
mov eax, dword [edi + 0x34]
add esp, 4
cmp eax, ebx
jne 0x410827
push 0xa8
call fcn.0045dd59
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ebx
cmp eax, ebx
je 0x41081d
push eax
call fcn.00429c40
jmp 0x41081f
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [edi + 0x20], eax
cmp eax, ebx
je 0x410b63
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 0x41084c
mov dword [eax + 0x68], ebx
mov eax, dword [edi + 0x20]
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x58], ebx
cmp eax, ebx
je 0x41085c
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 0x410a44
push str.d:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_ZRLE_encoder_requested_n
mov ecx, 9
mov eax, 0x48c4e8
call fcn.00401000
add esp, 4
cmp dword [edi + 0x24], ebx
jne 0x4108bb
push 0x80
call fcn.0045dd59
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 1
cmp eax, ebx
je 0x4108ae
push eax
call fcn.00434410
jmp 0x4108b0
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 0x410a44
push str.d:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_ZYWRLE_encoder_requested_n
mov ecx, 9
mov eax, 0x48c4e8
call fcn.00401000
add esp, 4
cmp dword [edi + 0x24], ebx
jne 0x410917
push 0x80
call fcn.0045dd59
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 2
cmp eax, ebx
je 0x41090a
push eax
call fcn.00434410
jmp 0x41090c
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 0x410a44
push str.d:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_Zlib_encoder_requested_n
mov ecx, 9
mov eax, 0x48c4e8
call fcn.00401000
mov eax, dword [edi + 0x2c]
add esp, 4
cmp eax, ebx
jne 0x410976
push 0xec
call fcn.0045dd59
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 3
cmp eax, ebx
je 0x41096c
push eax
call fcn.0042a5c0
jmp 0x41096e
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [edi + 0x20], eax
cmp eax, ebx
je 0x410b63
mov byte [edi + 0x28], 1
jmp 0x410a44
push str.d:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_ZlibHex_encoder_requested_n
mov ecx, 9
mov eax, 0x48c4e8
call fcn.00401000
mov eax, dword [edi + 0x3c]
add esp, 4
cmp eax, ebx
jne 0x4109d7
push 0xf4
call fcn.0045dd59
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 4
cmp eax, ebx
je 0x4109cd
push eax
call fcn.0042ba30
jmp 0x4109cf
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [edi + 0x20], eax
cmp eax, ebx
je 0x410b63
mov byte [edi + 0x38], 1
jmp 0x410a44
push str.d:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_Tight_encoder_requested_n
mov ecx, 9
mov eax, 0x48c4e8
call fcn.00401000
mov eax, dword [edi + 0x44]
add esp, 4
cmp eax, ebx
jne 0x410a35
push 0x198c
call fcn.0045dd59
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 5
cmp eax, ebx
je 0x410a2b
push eax
call fcn.00425fd0
jmp 0x410a2d
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [edi + 0x20], eax
cmp eax, ebx
je 0x410b63
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.00424b70
cmp dword [edi + 0x18], ebx
je 0x410acc
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.00424b70
test eax, eax
jne 0x410acc
push str.d:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_client_pixel_format_is_not_supported_n
jmp 0x410b54
cmp dword [ebp + 0xc], ebx
je 0x410b14
mov eax, dword [edi + 0x20]
cmp eax, ebx
je 0x410b14
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 0x410af7
mov eax, 6
mov dword [ecx + 0x5c], eax
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x20]
cmp eax, 9
jbe 0x410b08
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.004100c0
mov ecx, dword [edi + 0x7c]
call fcn.004101c0
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.00410530
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.d:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_unknown_encoder_requested_n
xor ecx, ecx
mov eax, 0x48c4e8
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