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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe8
mov ebx, dword [rsp + 0x158]
mov edi, ebx
imul eax, ebx, 0x348
mov dword [rsp + 0x3c], ebx
cmp ebx, eax
mov dword [rsp + 0x64], eax
mov ebx, dword [rsp + 0x158]
ja 0x18005ea74
mov rsi, qword [rsp + 0x78]
mov r15, qword [rsp + 0x90]
mov r12d, dword [rsp + 0x4c]
mov r14, qword [rsp + 0x80]
mov ebp, dword [rsp + 0x158]
mov r13, qword [rsp + 0x80]
mov dword [rsp + 0x48], ebx
nop word [rax + rax]
cmp edi, 0x3d48
ja 0x18005e82e
je 0x18005e813
mov eax, edi
sub eax, 0x46
je 0x18005e7ff
sub eax, 0x4e
je 0x18005e7d9
sub eax, 0x54
je 0x18005e78e
cmp eax, 0x1c14
jne 0x18005edae
mov rdx, qword [rsp + 0x88]
test rdx, rdx
je 0x18005e706
mov rax, qword [rdx + 0x18]
test rax, rax
je 0x18005e6f5
test byte [rax], 1
je 0x18005e724
mov rdx, qword [rdx + 0x38]
mov qword [rsp + 0x88], rdx
test rdx, rdx
jne 0x18005e6e7
mov ecx, 0xd8
nop dword [rax + rax]
mov eax, ecx
sub eax, 0xd8
je 0x18005e778
cmp eax, 0x6a
je 0x18005ea74
jmp 0x18005e77e
mov ecx, 0x121
nop dword [rax]
mov eax, ecx
sub eax, 0x120
je 0x18005edef
cmp eax, 1
jne 0x18005e769
cmp qword [0x1801d5cd0], 0
je 0x18005e769
mov rax, qword [rdx]
cmp byte [rax + 0x28], 0x95
jne 0x18005e769
cmp dword [rax + 0x24], 0
jne 0x18005e769
cmp qword [0x1801d5ce0], 0
jne 0x18005ede0
dec ecx
cmp ecx, 0x11f
ja 0x18005e730
jmp 0x18005eda6
xor ebx, ebx
mov dword [rsp + 0x48], ebx
add ecx, 0x6a
cmp ecx, 0x1ac
jb 0x18005e710
jmp 0x18005eda6
mov ecx, 0xe
cmp ecx, 0xe
je 0x18005e7b1
cmp ecx, 0x746
jne 0x18005e7c6
mov rax, qword [rsp + 0x98]
mov dword [rax + 8], 0xc08
jmp 0x18005e7c6
lea rax, [rsp + 0x50]
mov qword [rsp + 0x98], rax
mov rax, qword [rdx]
mov qword [rsp + 0x50], rax
add ecx, 0x738
cmp ecx, 0xe70
jbe 0x18005e793
jmp 0x18005edae
cmp byte [0x180183d71], 0
mov qword [rsp + 0xa0], rdx
jne 0x18005edae
xor edx, edx
mov ecx, 0x10001
call fcn.180025af0
jmp 0x18005ea74
mov rax, qword [0x1801d5a60]
mov qword [rsp + 0x88], rax
jmp 0x18005edae
mov rax, qword [rsp + 0x150]
mov rcx, qword [rsp + 0xa0]
movzx eax, byte [rax]
mov byte [rcx + 0xc], al
jmp 0x18005edae
cmp edi, 0x6010
je 0x18005ed80
cmp edi, 0xbf38
je 0x18005e868
cmp edi, 0x11e60
jne 0x18005edae
mov rcx, qword [rsp + 0x50]
mov r9d, 0x56
xor r8d, r8d
xor edx, edx
call fcn.18000e290
jmp 0x18005eda6
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x18]
cmp qword [rcx + 0x20], 0
je 0x18005ed3e
mov edi, 0x7f
mov dword [rsp + 0x38], edi
nop word [rax + rax]
cmp edi, 0x393
ja 0x18005eb7a
je 0x18005eabe
cmp edi, 0x7f
je 0x18005ea8a
cmp edi, 0x144
je 0x18005ea51
cmp edi, 0x209
je 0x18005e8fe
cmp edi, 0x2ce
jne 0x18005ed1a
mov rcx, qword [rsp + 0x30]
mov r9d, 0x2f
xor r8d, r8d
xor edx, edx
call fcn.1800aa6a0
cmp al, 0xa
jne 0x18005ed12
mov r9, qword [rsp + 0x30]
mov r9, qword [r9]
add r9, 8
mov qword [rsp + 0x30], r9
jmp 0x18005ed12
mov rcx, qword [rsp + 0x30]
mov r9d, 0x2f
xor r8d, r8d
xor edx, edx
call fcn.1800aa6a0
mov r9, qword [rsp + 0x30]
cmp al, 8
jne 0x18005ea44
mov rax, qword [r9]
mov rcx, qword [rax + 0x18]
cmp qword [rcx + 0x48], 0
je 0x18005ea44
mov edi, 0xf3
nop word [rax + rax]
mov eax, edi
sub eax, 0xf3
je 0x18005ea0e
cmp eax, 0x4a
jne 0x18005ea2c
lea rax, [rsp + 0xb8]
cmp r9, rax
jne 0x18005e98a
xor eax, eax
lea rdx, [rsp + 0xb8]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea ecx, [rax + 0x22]
call fcn.180149c00
mov r9, qword [rsp + 0x30]
mov edx, 0x28
nop
mov eax, edx
sub eax, 0x28
je 0x18005e9f1
sub eax, 0x69
je 0x18005e9e1
sub eax, 0x69
je 0x18005e9db
cmp eax, 0x69
jne 0x18005e9f4
mov ecx, 0xf0
nop dword [rax + rax]
mov eax, ecx
sub eax, 0xf0
je 0x18005e9c8
cmp eax, 1
jne 0x18005e9cf
mov dword [r14 + 4], ebp
mov dword [r14 + 8], r12d
jmp 0x18005e9cf
mov ebp, dword [r15 + 4]
mov qword [r14], r13
inc ecx
cmp ecx, 0xf2
jb 0x18005e9b0
jmp 0x18005e9f4
mov r12d, dword [r15 + 8]
jmp 0x18005e9f4
mov rax, qword [rsp + 0xa8]
mov r15, rax
mov r13, qword [rax]
jmp 0x18005e9f4
mov r14, r9
add edx, 0x69
cmp edx, 0x1cc
jb 0x18005e990
mov dword [rsp + 0x4c], r12d
mov qword [rsp + 0x90], r15
jmp 0x18005ea2c
mov rax, qword [r9]
lea rdx, [rsp + 0xc8]
mov rcx, r9
mov r8, qword [rax + 0x18]
call qword [r8 + 0x48]
mov qword [rsp + 0xa8], rax
mov r9, qword [rsp + 0x30]
add edi, 0x4a
cmp edi, 0x187
jb 0x18005e940
mov edi, dword [rsp + 0x38]
mov rsi, r9
mov qword [rsp + 0x78], r9
jmp 0x18005ed12
cmp qword [0x1801d5cd0], 0
je 0x18005ed1a
mov rcx, qword [rsp + 0x50]
mov r9d, 0x56
xor r8d, r8d
xor edx, edx
call fcn.18000e290
mov eax, ebx
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
mov rdx, qword [rsp + 0x150]
xor r8d, r8d
mov r10, qword [rax + 0x18]
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
call qword [r10 + 0x20]
mov qword [rsp + 0x30], rax
jmp 0x18005ed12
mov rsi, qword [rsp + 0x30]
mov edi, 0x67
cmp edi, 0x67
je 0x18005eb3d
cmp edi, 0x4a6f
jne 0x18005eb42
mov rax, qword [rsp + 0x68]
test byte [rax + 9], 0x12
je 0x18005eb42
xor r9d, r9d
xor edx, edx
mov r8d, 0xc6
mov rcx, rax
call fcn.1800330d0
cmp eax, 1
jbe 0x18005eb42
mov rax, qword [rsp + 0x68]
test byte [rax + 9], 2
jne 0x18005eb23
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov r8, rax
mov edx, 0xc8
xor ecx, ecx
call fcn.18008bbb0
mov rax, qword [rsp + 0x68]
xor r9d, r9d
mov dword [rsp + 0x20], 0x53
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call fcn.18010f700
jmp 0x18005eb42
mov qword [rsp + 0x68], rsi
add edi, 0x4a08
cmp edi, 0x9410
jbe 0x18005eac8
mov rax, qword [rsp + 0x160]
mov rdx, rsi
mov r8, qword [rsp + 0x130]
mov rcx, rsi
call qword [rax]
mov rsi, qword [rsp + 0x78]
mov edi, dword [rsp + 0x38]
jmp 0x18005ed12
cmp edi, 0x458
je 0x18005ecf3
cmp edi, 0x51d
je 0x18005ebc3
cmp edi, 0x5e2
jne 0x18005ed1a
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], 0
mov rdx, rsi
lea ecx, [r9 + 0x22]
call fcn.180149c00
jmp 0x18005ed12
test r8, r8
je 0x18005ed1a
mov rsi, qword [rsp + 0x80]
mov edx, 0xe1
mov ebx, dword [rsp + 0x60]
mov r15, qword [rsp + 0x70]
mov r12d, dword [rsp + 0x40]
mov dword [rsp + 0x44], edx
nop dword [rax + rax]
cmp edx, 0xe1
je 0x18005ecb6
cmp edx, 0x190
je 0x18005ec9f
cmp edx, 0x23f
je 0x18005ec2f
cmp edx, 0x2ee
jne 0x18005ecb9
bt r12d, 0xa
jae 0x18005ecb9
inc dword [r15]
jmp 0x18005ecb9
mov r8, qword [rsp + 0xb0]
mov ecx, 0xa
mov rdx, qword [rsp + 0x70]
mov r9d, dword [r8 + 8]
mov dword [rsp + 0x40], r9d
nop word [rax + rax]
mov eax, ecx
sub eax, 0xa
je 0x18005ec76
sub eax, 0x47
je 0x18005ec71
sub eax, 0x47
je 0x18005ec6c
cmp eax, 0x47
jne 0x18005ec7a
mov dword [rsi + 8], r9d
jmp 0x18005ec7a
mov dword [rsi + 4], ebx
jmp 0x18005ec7a
mov qword [rsi], rdx
jmp 0x18005ec7a
mov ebx, dword [r8 + 4]
add ecx, 0x47
cmp ecx, 0x126
jb 0x18005ec50
mov edx, dword [rsp + 0x44]
mov r12d, r9d
mov r15, qword [rsp + 0x70]
mov r8, qword [rsp + 0x140]
mov dword [rsp + 0x60], ebx
jmp 0x18005ecb9
mov rdi, qword [rsp + 0x30]
mov qword [rsp + 0xb0], rdi
mov r15, qword [rdi]
mov qword [rsp + 0x70], r15
jmp 0x18005ecb9
mov rsi, r8
add edx, 0xaf
mov dword [rsp + 0x44], edx
cmp edx, 0x39d
jb 0x18005ebf0
mov ebx, dword [rsp + 0x48]
mov r15, qword [rsp + 0x90]
mov r12d, dword [rsp + 0x4c]
mov edi, dword [rsp + 0x38]
mov qword [rsp + 0x80], rsi
mov rsi, qword [rsp + 0x78]
jmp 0x18005ed12
mov rax, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x150]
mov r10, qword [rax + 0x18]
call qword [r10 + 0x28]
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
add edi, 0xc5
mov dword [rsp + 0x38], edi
cmp edi, 0x6a7
jb 0x18005e890
mov edi, dword [rsp + 0x3c]
jmp 0x18005eda6
mov edi, 0x17
cmp edi, 0x17
jne 0x18005ed6c
lea rdx, str.MTX1_Matrox_JPEG_4CC_V_JPEG__Matrox_JPEG
lea ecx, [rdi - 0x15]
call fcn.1800eba40
mov r8, qword [rsp + 0x140]
test r8, r8
je 0x18005ed6c
mov dword [r8 + 8], 1
add edi, 0x4ac
cmp edi, 0x4ac
jbe 0x18005ed43
mov edi, dword [rsp + 0x3c]
jmp 0x18005eda6
mov qword [rsp + 0x28], 0
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], 0
mov edx, 0xb5
xor ecx, ecx
call fcn.180050770
mov rdx, qword [rsp + 0x138]
imul eax, dword [rsp + 0x158], 0x69
add edi, eax
mov dword [rsp + 0x3c], edi
cmp edi, dword [rsp + 0x64]
ja 0x18005ea74
mov r8, qword [rsp + 0x140]
mov r9, qword [rsp + 0x148]
jmp 0x18005e6a0
mov rax, qword [0x1801d5ce0]
mov eax, dword [rax + 0x24]
jmp 0x18005ea76
mov rax, qword [rdx]
mov eax, dword [rax + 0x24]
jmp 0x18005ea76