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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x499d82
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ba700]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, dword [ebx + 0x39]
pop ebp
or al, 0x74
pop ss
mov eax, dword [edi + 0x7c]
mov esi, dword [edi + 0x98]
call fcn.00411b00
test eax, eax
jne 0x413ab5
jmp 0x413f6a
mov ecx, dword [edi + 0x20]
cmp ecx, ebx
je 0x413af4
cmp byte [edi + 0x28], bl
je 0x413ac6
mov dword [edi + 0x2c], ecx
jmp 0x413af1
cmp byte [edi + 0x30], bl
je 0x413ad0
mov dword [edi + 0x34], ecx
jmp 0x413af1
cmp byte [edi + 0x38], bl
je 0x413ada
mov dword [edi + 0x3c], ecx
jmp 0x413af1
cmp byte [edi + 0x40], bl
je 0x413ae4
mov dword [edi + 0x44], ecx
jmp 0x413af1
cmp ecx, dword [edi + 0x24]
je 0x413af1
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.0x413b10.1
movzx eax, byte [esi + 0x413fb0]
jmp dword [eax*4 + 0x413f84]
push str.c:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_raw_encoder_requested_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
push 0x70
call fcn.0047c463
add esp, 4
cmp eax, ebx
je 0x413b43
call fcn.0042a430
jmp 0x413b45
xor eax, eax
mov dword [edi + 0x20], eax
cmp eax, ebx
jne 0x413e4b
jmp 0x413f6a
push str.c:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_RRE_encoder_requested_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
push 0x78
call fcn.0047c463
add esp, 4
cmp eax, ebx
je 0x413b43
call fcn.0042b210
jmp 0x413b45
push str.c:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_CoRRE_encoder_requested_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
push 0x9c
call fcn.0047c463
add esp, 4
cmp eax, ebx
je 0x413b43
mov esi, eax
call fcn.004286e0
jmp 0x413b45
push str.c:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_Hextile_encoder_requested_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
push 0x70
call fcn.0047c463
add esp, 4
cmp eax, ebx
je 0x413b43
call fcn.00429490
jmp 0x413b45
push str.c:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_Ultra_encoder_requested_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
mov eax, dword [edi + 0x34]
add esp, 4
cmp eax, ebx
jne 0x413c2e
push 0xa8
call fcn.0047c463
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ebx
cmp eax, ebx
je 0x413c24
push eax
call fcn.0042f860
jmp 0x413c26
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [edi + 0x20], eax
cmp eax, ebx
je 0x413f6a
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 0x413c53
mov dword [eax + 0x68], ebx
mov eax, dword [edi + 0x20]
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x58], ebx
cmp eax, ebx
je 0x413c63
mov dword [eax + 0x6c], ebx
mov eax, dword [edi + 0x7c]
mov dword [edi + 0x5c], ebx
mov dword [edi + 0x70], ebx
mov dword [eax + 8], ebx
jmp 0x413e4b
push str.c:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_ZRLE_encoder_requested_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
cmp dword [edi + 0x24], ebx
jne 0x413cc2
push 0x80
call fcn.0047c463
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 1
cmp eax, ebx
je 0x413cb5
push eax
call fcn.00439f30
jmp 0x413cb7
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 0x413e4b
push str.c:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_ZYWRLE_encoder_requested_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
add esp, 4
cmp dword [edi + 0x24], ebx
jne 0x413d1e
push 0x80
call fcn.0047c463
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 2
cmp eax, ebx
je 0x413d11
push eax
call fcn.00439f30
jmp 0x413d13
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 0x413e4b
push str.c:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_Zlib_encoder_requested_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
mov eax, dword [edi + 0x2c]
add esp, 4
cmp eax, ebx
jne 0x413d7d
push 0xec
call fcn.0047c463
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 3
cmp eax, ebx
je 0x413d73
push eax
call fcn.004301c0
jmp 0x413d75
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [edi + 0x20], eax
cmp eax, ebx
je 0x413f6a
mov byte [edi + 0x28], 1
jmp 0x413e4b
push str.c:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_ZlibHex_encoder_requested_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
mov eax, dword [edi + 0x3c]
add esp, 4
cmp eax, ebx
jne 0x413dde
push 0xf4
call fcn.0047c463
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 4
cmp eax, ebx
je 0x413dd4
push eax
call fcn.004315c0
jmp 0x413dd6
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [edi + 0x20], eax
cmp eax, ebx
je 0x413f6a
mov byte [edi + 0x38], 1
jmp 0x413e4b
push str.c:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_Tight_encoder_requested_n
mov ecx, 9
mov eax, 0x4bc990
call fcn.00401110
mov eax, dword [edi + 0x44]
add esp, 4
cmp eax, ebx
jne 0x413e3c
push 0x198c
call fcn.0047c463
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 5
cmp eax, ebx
je 0x413e32
push eax
call fcn.0042bce0
jmp 0x413e34
xor eax, eax
mov dword [esp + 0x20], 0xffffffff
mov dword [edi + 0x20], eax
cmp eax, ebx
je 0x413f6a
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.0042a890
cmp dword [edi + 0x18], ebx
je 0x413ed3
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.0042a890
test eax, eax
jne 0x413ed3
push str.c:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_client_pixel_format_is_not_supported_n
jmp 0x413f5b
cmp dword [ebp + 0xc], ebx
je 0x413f1b
mov eax, dword [edi + 0x20]
cmp eax, ebx
je 0x413f1b
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 0x413efe
mov eax, 6
mov dword [ecx + 0x5c], eax
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x20]
cmp eax, 9
jbe 0x413f0f
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.00413560
mov ecx, dword [edi + 0x7c]
call fcn.00413660
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.00413930
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.c:dataultravncultravnc_project_rootultravncwinvncwinvnc_vncEncodeMgr.h_:_unknown_encoder_requested_n
xor ecx, ecx
mov eax, 0x4bc990
call fcn.00401110
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