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

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
push rbp
push r14
sub rsp, 0x68
mov r10d, r8d
mov r14, rdx
mov rbp, rcx
test rdx, rdx
je 0x1401592dd
cmp r8d, 0x400
jb 0x1401592dd
cmp dword [rdx], 0x46464952
jne 0x1401592dd
mov ecx, dword [rdx + 4]
lea eax, [rcx + 8]
cmp eax, r8d
ja 0x1401592dd
cmp ecx, 0x400
jb 0x1401592dd
cmp dword [rdx + 8], 0x464d5344
jne 0x1401592dd
cmp dword [rdx + 0xc], 0x474e4f53
jne 0x1401592dd
mov eax, dword [rdx + 0x10]
cmp eax, r8d
ja 0x1401592dd
mov qword [r11 + 8], rbx
mov dword [rbp + 0x104a0], 0x2000
movzx ecx, word [rdx + 0x3e]
mov qword [r11 - 0x28], r12
mov qword [r11 - 0x30], r13
lea r13d, [rax + 0x14]
mov dword [rbp + 0x10490], ecx
cmp ecx, 4
jae 0x140158c8f
mov dword [rbp + 0x10490], 4
jmp 0x140158ca4
mov r8d, SafeArrayGetElemsize
mov eax, ecx
cmp ecx, r8d
cmova eax, r8d
mov dword [rbp + 0x10490], eax
movzx ecx, word [rdx + 0x3a]
lea r9, [rdx + 0x14]
cmp ecx, 0xf0
mov eax, ecx
mov r8d, 0xef
mov r11d, 0x100
cmovae eax, r8d
lea r8, [rbp + 0xeb60]
mov dword [rbp + 0x104a4], eax
movzx eax, byte [rdx + 0x42]
mov dword [rbp + 0x10480], eax
movzx eax, byte [rdx + 0x43]
mov dword [rbp + 0x10484], eax
movzx eax, byte [rdx + 0x40]
lea eax, [rax*4]
mov dword [rbp + 0x10488], eax
dec eax
mov ecx, dword [rbp + 0x10488]
cmp eax, 0xff
cmova ecx, r11d
mov dword [rbp + 0x10488], ecx
xor ecx, ecx
movzx eax, byte [rdx + 0x41]
and eax, 0x7f
mov dword [rbp + 0x104e4], eax
sub r9, rbp
nop
movzx eax, word [rdx + 0x38]
cmp ecx, eax
jae 0x140158d33
movzx eax, byte [r9 + r8 - 0xeb20]
jmp 0x140158d35
mov al, 0xff
mov byte [r8], al
inc ecx
inc r8
cmp ecx, r11d
jb 0x140158d20
mov dword [rbp + 0xd900], 0x80
movzx eax, byte [rdx + 0x44]
cmp al, 0x80
ja 0x140158d5c
add eax, eax
mov dword [rbp + 0xd900], eax
mov dword [rbp + 0xd924], 0x80
movzx eax, byte [rdx + 0x45]
cmp al, 0x80
ja 0x140158d76
add eax, eax
mov dword [rbp + 0xd924], eax
mov dword [rbp + 0xd948], 0x80
movzx eax, byte [rdx + 0x46]
cmp al, 0x80
ja 0x140158d90
add eax, eax
mov dword [rbp + 0xd948], eax
mov dword [rbp + 0xd96c], 0x80
movzx eax, byte [rdx + 0x47]
cmp al, 0x80
ja 0x140158daa
add eax, eax
mov dword [rbp + 0xd96c], eax
mov dword [rbp + 0xd990], 0x80
movzx eax, byte [rdx + 0x48]
cmp al, 0x80
ja 0x140158dc4
add eax, eax
mov dword [rbp + 0xd990], eax
mov dword [rbp + 0xd9b4], 0x80
movzx eax, byte [rdx + 0x49]
cmp al, 0x80
ja 0x140158dde
add eax, eax
mov dword [rbp + 0xd9b4], eax
mov dword [rbp + 0xd9d8], 0x80
movzx eax, byte [rdx + 0x4a]
cmp al, 0x80
ja 0x140158df8
add eax, eax
mov dword [rbp + 0xd9d8], eax
mov dword [rbp + 0xd9fc], 0x80
movzx eax, byte [rdx + 0x4b]
cmp al, 0x80
ja 0x140158e12
add eax, eax
mov dword [rbp + 0xd9fc], eax
mov dword [rbp + 0xda20], 0x80
movzx eax, byte [rdx + 0x4c]
cmp al, 0x80
ja 0x140158e2c
add eax, eax
mov dword [rbp + 0xda20], eax
mov dword [rbp + 0xda44], 0x80
movzx eax, byte [rdx + 0x4d]
cmp al, 0x80
ja 0x140158e46
add eax, eax
mov dword [rbp + 0xda44], eax
mov dword [rbp + 0xda68], 0x80
movzx eax, byte [rdx + 0x4e]
cmp al, 0x80
ja 0x140158e60
add eax, eax
mov dword [rbp + 0xda68], eax
mov dword [rbp + 0xda8c], 0x80
movzx eax, byte [rdx + 0x4f]
cmp al, 0x80
ja 0x140158e7a
add eax, eax
mov dword [rbp + 0xda8c], eax
mov dword [rbp + 0xdab0], 0x80
movzx eax, byte [rdx + 0x50]
cmp al, 0x80
ja 0x140158e94
add eax, eax
mov dword [rbp + 0xdab0], eax
mov dword [rbp + 0xdad4], 0x80
movzx eax, byte [rdx + 0x51]
cmp al, 0x80
ja 0x140158eae
add eax, eax
mov dword [rbp + 0xdad4], eax
mov dword [rbp + 0xdaf8], 0x80
movzx eax, byte [rdx + 0x52]
cmp al, 0x80
ja 0x140158ec8
add eax, eax
mov dword [rbp + 0xdaf8], eax
mov dword [rbp + 0xdb1c], 0x80
movzx eax, byte [rdx + 0x53]
cmp al, 0x80
ja 0x140158ee2
add eax, eax
mov dword [rbp + 0xdb1c], eax
movups xmm0, xmmword [rdx + 0x14]
xor r12d, r12d
mov ebx, 1
mov dword [rsp + 0x88], r12d
movups xmmword [rbp + 0x10528], xmm0
mov dword [rsp + 0x98], ebx
movsd xmm1, qword [rdx + 0x24]
movsd qword [rbp + 0x10538], xmm1
mov eax, dword [rdx + 0x2c]
lea edx, [r10 - 8]
mov dword [rbp + 0x10540], eax
mov dword [rsp + 0x30], edx
cmp r13d, edx
jae 0x1401592be
mov qword [rsp + 0x60], rsi
lea esi, [rbx + 0x3f]
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x40], r15
nop dword [rax]
mov r8d, r13d
add r8, r14
mov eax, dword [r8]
cmp eax, 0x54544150
jne 0x140159198
mov ecx, dword [r8 + 4]
add r13d, 8
add ecx, r13d
cmp ecx, r10d
jae 0x1401592af
mov edx, dword [rbp + 0x10490]
mov ebx, r13d
mov r13d, ecx
mov ecx, esi
call fcn.14012a740
mov rdi, rax
test rax, rax
je 0x1401592af
mov word [rbp + r12*2 + 0xe980], si
xor r15d, r15d
mov qword [rbp + r12*8 + 0xe200], rax
lea esi, [rbx + 2]
lea r12d, [r15 + 9]
cmp esi, r13d
ja 0x140159174
mov ecx, dword [rbp + 0x10490]
inc esi
mov eax, ebx
inc ebx
movzx r8d, byte [rax + r14]
test r8d, r8d
je 0x14015915f
xor edx, edx
mov eax, r8d
and eax, 0xf
div ecx
test r8b, r8b
jns 0x140158ff8
movzx r9d, byte [rbx + r14]
inc esi
inc ebx
test r9b, r9b
je 0x140158ff8
lea eax, [r9 + 0xc]
cmp r9b, 0x6c
movzx ecx, al
lea rax, [rdx + rdx*2]
cmova ecx, r9d
mov byte [rdi + rax*2], cl
test r8b, 0x40
je 0x14015900f
movzx eax, byte [rbx + r14]
lea rcx, [rdx + rdx*2]
inc ebx
mov byte [rdi + rcx*2 + 1], al
inc esi
lea rdx, [rdx + rdx*2]
add rdx, rdx
test r8b, 0x20
je 0x14015902e
mov byte [rdx + rdi + 2], 1
movzx ecx, byte [rbx + r14]
inc ebx
inc esi
mov byte [rdx + rdi + 4], cl
test r8b, 0x10
je 0x14015916a
movzx r8d, byte [rbx + r14]
add esi, 2
inc ebx
mov ecx, r8d
movzx eax, byte [rbx + r14]
inc ebx
sub ecx, 8
je 0x1401590ae
sub ecx, r12d
je 0x14015908a
sub ecx, 1
je 0x14015908a
cmp ecx, 1
je 0x140159072
mov ecx, r8d
xor r8d, r8d
and cl, 0xf0
cmp cl, 0x20
cmove r8d, r12d
jmp 0x14015908e
add rdx, rdi
mov rcx, rbp
mov byte [rdx + 3], 0x21
mov byte [rdx + 5], 0x91
call fcn.1401526f0
jmp 0x14015916a
and r8d, 0xf
add rdx, rdi
mov byte [rdx + 3], r8b
mov byte [rdx + 5], al
test r8d, r8d
je 0x14015916a
mov rcx, rbp
call fcn.1401526f0
jmp 0x14015916a
mov ecx, eax
and ecx, 0xf0
je 0x140159148
cmp ecx, 0x10
je 0x14015912e
cmp ecx, 0x20
je 0x140159112
cmp ecx, 0x30
je 0x1401590f8
cmp ecx, 0x40
je 0x1401590de
mov byte [rdx + rdi + 3], 0
mov byte [rdx + rdi + 5], al
jmp 0x14015916a
add rdx, rdi
and eax, 0xf
or eax, 0x20
mov rcx, rbp
mov byte [rdx + 3], SafeArrayGetElemsize
mov byte [rdx + 5], al
call fcn.1401526f0
jmp 0x14015916a
add rdx, rdi
and eax, 0xf
or eax, 0x10
mov rcx, rbp
mov byte [rdx + 3], SafeArrayGetElemsize
mov byte [rdx + 5], al
call fcn.1401526f0
jmp 0x14015916a
add rdx, rdi
and eax, 0xf
or eax, 0xa0
mov rcx, rbp
mov byte [rdx + 3], SafeArrayGetElemsize
mov byte [rdx + 5], al
call fcn.1401526f0
jmp 0x14015916a
add rdx, rdi
and eax, 0xf
shl eax, 4
mov rcx, rbp
mov byte [rdx + 3], 0xa
mov byte [rdx + 5], al
call fcn.1401526f0
jmp 0x14015916a
add rdx, rdi
shl eax, 4
mov rcx, rbp
mov byte [rdx + 3], r8b
mov byte [rdx + 5], al
call fcn.1401526f0
jmp 0x14015916a
lea rcx, [rcx + rcx*2]
inc r15d
lea rdi, [rdi + rcx*2]
cmp r15d, 0x40
jb 0x140158fa2
mov r12d, dword [rsp + 0x88]
mov esi, 0x40
mov ebx, dword [rsp + 0x98]
inc r12d
mov dword [rsp + 0x88], r12d
jmp 0x140159294
cmp ebx, dword [rbp + 0x104a4]
ja 0x1401592af
cmp eax, 0x54534e49
jne 0x1401592af
mov ecx, dword [r8 + 4]
add ecx, r13d
cmp ecx, edx
jae 0x1401592af
movups xmm0, xmmword [r8 + 0x2c]
mov edx, ebx
lea r9d, [r13 + 0x48]
lea r13d, [rcx + 8]
mov ecx, ebx
shl rcx, 5
movups xmmword [rcx + rbp + 0x10528], xmm0
movsd xmm1, qword [r8 + 0x3c]
movsd qword [rcx + rbp + 0x10538], xmm1
mov eax, dword [r8 + 0x44]
mov dword [rcx + rbp + 0x10540], eax
lea rax, [rdx + rdx*8]
movsd xmm0, qword [r8 + 8]
lea rdx, [rbp + 0x8e00]
lea rdx, [rdx + rax*8]
movsd qword [rdx + 0x32], xmm0
mov eax, dword [r8 + 0x10]
mov dword [rdx + 0x3a], eax
movzx eax, byte [r8 + 0x14]
mov byte [rdx + 0x3e], al
mov word [rdx + 0x28], si
movzx eax, word [r8 + 0x28]
mov dword [rdx + 0x20], eax
movzx eax, byte [r8 + 0x15]
and al, 1
movzx ecx, al
add cx, cx
mov word [rdx + 0x2a], cx
mov eax, dword [r8 + 0x18]
mov dword [rdx], eax
mov eax, dword [r8 + 0x1c]
mov dword [rdx + 4], eax
mov eax, dword [r8 + 0x20]
mov dword [rdx + 8], eax
movzx eax, byte [r8 + 0x17]
shl ax, 2
mov word [rdx + 0x26], ax
cmp ax, r11w
jbe 0x140159267
mov word [rdx + 0x26], r11w
movzx r8d, byte [r8 + 0x15]
mov eax, r10d
shr r8d, 1
sub eax, r9d
not r8d
mov dword [rsp + 0x20], eax
and r8d, 1
add r9, r14
mov rcx, rbp
call fcn.140129340
inc ebx
mov dword [rsp + 0x98], ebx
mov edx, dword [rsp + 0x30]
mov r11d, 0x100
mov r10d, dword [rsp + 0x90]
cmp r13d, edx
jb 0x140158f40
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov r15, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov eax, 1
mov r12, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
add rsp, 0x68
pop r14
pop rbp
ret
xor eax, eax
add rsp, 0x68
pop r14
pop rbp
ret