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

Disassembly:
push 0xffffffffffffffff
push 0x47116e
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48ea40]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x28]
xor ebx, ebx
cmp ebp, ebx
je 0x413a50
mov ecx, dword [esi + 0x7c]
mov edi, dword [esi + 0x98]
call fcn.0040f3b0
jmp 0x413a5a
mov edi, dword [esp + 0x24]
mov dword [esi + 0x98], edi
mov ecx, dword [esi + 0x20]
cmp ecx, ebx
je 0x413a99
cmp byte [esi + 0x28], bl
je 0x413a6b
mov dword [esi + 0x2c], ecx
jmp 0x413a96
cmp byte [esi + 0x30], bl
je 0x413a75
mov dword [esi + 0x34], ecx
jmp 0x413a96
cmp byte [esi + 0x38], bl
je 0x413a7f
mov dword [esi + 0x3c], ecx
jmp 0x413a96
cmp byte [esi + 0x40], bl
je 0x413a89
mov dword [esi + 0x44], ecx
jmp 0x413a96
cmp ecx, dword [esi + 0x24]
je 0x413a96
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x20], ebx
cmp edi, 0x11
mov byte [esi + 0x28], bl
mov byte [esi + 0x30], bl
mov byte [esi + 0x38], bl
mov byte [esi + 0x40], bl
ja case.0x413ab5.1
movzx eax, byte [edi + 0x413f00]
jmp dword [eax*4 + 0x413ed4]
push str.d:wm_projectsultravnc_105_srcultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_raw_encoder_requested_n
push 9
push 0x490660
call fcn.00401810
push 0x70
call fcn.0045c2ef
add esp, 0x10
mov dword [esp + 0x28], eax
cmp eax, ebx
mov dword [esp + 0x1c], ebx
je 0x413aec
mov ecx, eax
call fcn.00424ac0
jmp 0x413aee
xor eax, eax
cmp eax, ebx
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi + 0x20], eax
jne 0x413e00
jmp 0x413ebc
push str.d:wm_projectsultravnc_105_srcultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_RRE_encoder_requested_n
push 9
push 0x490660
call fcn.00401810
push 0x78
call fcn.0045c2ef
add esp, 0x10
mov dword [esp + 0x28], eax
cmp eax, ebx
mov dword [esp + 0x1c], 1
je 0x413aec
mov ecx, eax
call fcn.00425990
jmp 0x413aee
push str.d:wm_projectsultravnc_105_srcultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_CoRRE_encoder_requested_n
push 9
push 0x490660
call fcn.00401810
push 0x9c
call fcn.0045c2ef
add esp, 0x10
mov dword [esp + 0x28], eax
cmp eax, ebx
mov dword [esp + 0x1c], 2
je 0x413aec
mov ecx, eax
call fcn.00422c10
jmp 0x413aee
push str.d:wm_projectsultravnc_105_srcultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_Hextile_encoder_requested_n
push 9
push 0x490660
call fcn.00401810
push 0x70
call fcn.0045c2ef
add esp, 0x10
mov dword [esp + 0x28], eax
cmp eax, ebx
mov dword [esp + 0x1c], 3
je 0x413aec
mov ecx, eax
call fcn.004239b0
jmp 0x413aee
push str.d:wm_projectsultravnc_105_srcultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_Ultra_encoder_requested_n
push 9
push 0x490660
call fcn.00401810
mov eax, dword [esi + 0x34]
add esp, 0xc
cmp eax, ebx
jne 0x413bfa
push 0xa8
call fcn.0045c2ef
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov dword [esp + 0x1c], 4
je 0x413bf0
mov ecx, eax
call fcn.004298b0
jmp 0x413bf2
xor eax, eax
mov dword [esp + 0x1c], 0xffffffff
cmp eax, ebx
mov dword [esi + 0x20], eax
je 0x413ebc
mov ecx, dword [esi + 0x6c]
mov byte [esi + 0x30], 1
mov dword [eax + 0x9c], ecx
push ebx
mov ecx, esi
call fcn.00410d80
push ebx
mov ecx, esi
call fcn.00410da0
mov ecx, dword [esi + 0x7c]
push ebx
mov dword [esi + 0x70], ebx
call fcn.0040f220
jmp 0x413e00
push str.d:wm_projectsultravnc_105_srcultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_ZRLE_encoder_requested_n
push 9
push 0x490660
call fcn.00401810
add esp, 0xc
cmp dword [esi + 0x24], ebx
jne 0x413c7f
push 0x80
call fcn.0045c2ef
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov dword [esp + 0x1c], 5
je 0x413c72
mov ecx, eax
call fcn.00433280
jmp 0x413c74
xor eax, eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x20], eax
mov dword [eax + 0x70], ebx
jmp 0x413e00
push str.d:wm_projectsultravnc_105_srcultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_ZYWRLE_encoder_requested_n
push 9
push 0x490660
call fcn.00401810
add esp, 0xc
cmp dword [esi + 0x24], ebx
jne 0x413cd9
push 0x80
call fcn.0045c2ef
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov dword [esp + 0x1c], 6
je 0x413ccc
mov ecx, eax
call fcn.00433280
jmp 0x413cce
xor eax, eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x20], eax
mov dword [eax + 0x70], 1
jmp 0x413e00
push str.d:wm_projectsultravnc_105_srcultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_Zlib_encoder_requested_n
push 9
push 0x490660
call fcn.00401810
mov eax, dword [esi + 0x2c]
add esp, 0xc
cmp eax, ebx
jne 0x413d36
push 0xec
call fcn.0045c2ef
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov dword [esp + 0x1c], 7
je 0x413d2c
mov ecx, eax
call fcn.0042a1e0
jmp 0x413d2e
xor eax, eax
mov dword [esp + 0x1c], 0xffffffff
cmp eax, ebx
mov dword [esi + 0x20], eax
je 0x413ebc
mov byte [esi + 0x28], 1
jmp 0x413e00
push str.d:wm_projectsultravnc_105_srcultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_ZlibHex_encoder_requested_n
push 9
push 0x490660
call fcn.00401810
mov eax, dword [esi + 0x3c]
add esp, 0xc
cmp eax, ebx
jne 0x413d95
push 0xf4
call fcn.0045c2ef
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov dword [esp + 0x1c], 8
je 0x413d8b
mov ecx, eax
call fcn.0042b550
jmp 0x413d8d
xor eax, eax
mov dword [esp + 0x1c], 0xffffffff
cmp eax, ebx
mov dword [esi + 0x20], eax
je 0x413ebc
mov byte [esi + 0x38], 1
jmp 0x413e00
push str.d:wm_projectsultravnc_105_srcultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_Tight_encoder_requested_n
push 9
push 0x490660
call fcn.00401810
mov eax, dword [esi + 0x44]
add esp, 0xc
cmp eax, ebx
jne 0x413df1
push 0x198c
call fcn.0045c2ef
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, ebx
mov dword [esp + 0x1c], 9
je 0x413de7
mov ecx, eax
call fcn.004263e0
jmp 0x413de9
xor eax, eax
mov dword [esp + 0x1c], 0xffffffff
cmp eax, ebx
mov dword [esi + 0x20], eax
je 0x413ebc
mov byte [esi + 0x40], 1
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
movzx ecx, word [esi + 0x82]
movzx edx, word [esi + 0x80]
push ecx
mov ecx, dword [esi + 0x20]
push edx
lea eax, [esi + 0x84]
push eax
call fcn.00424ff0
cmp dword [esi + 0x18], ebx
je 0x413e45
lea ecx, [esi + 8]
push ecx
mov ecx, dword [esi + 0x20]
call fcn.00425030
test eax, eax
jne 0x413e45
push str.d:wm_projectsultravnc_105_srcultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_client_pixel_format_is_not_supported_n
jmp 0x413eae
cmp ebp, ebx
je 0x413e80
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x413e80
mov edx, dword [esi + 0x54]
mov dword [eax + 0x68], edx
mov ecx, dword [esi + 0x58]
mov eax, dword [esi + 0x20]
mov dword [eax + 0x6c], ecx
mov edx, dword [esi + 0x48]
mov ecx, dword [esi + 0x20]
push edx
call fcn.00425080
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x20]
push eax
call fcn.004250a0
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x50]
mov dword [ecx + 0x64], edx
mov ecx, dword [esi + 0x7c]
call fcn.0040f040
mov ecx, dword [esi + 0x7c]
call fcn.0040f150
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x74]
push eax
push ecx
mov ecx, dword [esi + 0x20]
call fcn.00425060
mov ecx, esi
call fcn.00410b00
jmp 0x413ebe
push str.d:wm_projectsultravnc_105_srcultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_unknown_encoder_requested_n
push ebx
push 0x490660
call fcn.00401810
add esp, 0xc
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8