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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x50
mov eax, dword [rcx + 0x50]
mov rdi, rcx
add dword [rcx + 8], eax
movsxd rcx, dword [rcx + 0x34]
lea eax, [rcx + 1]
mov dword [rdi + 0x34], eax
mov rax, qword [rdi + 0x60]
mov edx, dword [rax + rcx*4 + 4]
add edx, dword [rdi + 0x28]
mov rcx, qword [rdi]
mov dword [rdi + 0x38], edx
call fcn.140530e90
movsxd rbp, dword [rdi + 0x38]
xor ebx, ebx
mov dword [rdi + 0x3c], eax
mov rax, qword [rdi]
mov rsi, qword [rax + 0x98]
mov rax, qword [rsi]
mov ecx, dword [rax]
cmp ecx, 1
jbe 0x1405312e1
mov rax, qword [rsi]
mov edx, dword [rax + 8]
and edx, 0x7fffffff
jne 0x1405312d6
lea r9d, [rbx + 2]
xor r8d, r8d
lea edx, [rbx + 8]
lea ecx, [rbx + 0x24]
call fcn.1406e4920
mov qword [rsi], rax
jmp 0x1405312e1
mov r8d, ebx
mov rcx, rsi
call fcn.1404b39f0
mov rdx, qword [rsi]
lea rcx, [rbp*8]
add rcx, rbp
mov rax, qword [rdx + 0x10]
lea r8, [rax + rcx*4]
add r8, rdx
mov qword [rdi + 0x18], r8
cmp word [r8 + 0xc], bx
jne 0x140531314
mov edx, dword [rdi + 0x38]
mov rcx, qword [rdi]
call fcn.140534480
mov r8, qword [rdi + 0x18]
mov eax, dword [r8]
mov rcx, qword [rdi + 0x10]
mov r15d, dword [rdi + 0x3c]
add rcx, 0x20
cmp dword [rcx], eax
mov eax, 0xf00
cmovl rcx, r8
mov r9d, dword [rcx]
mov dword [rdi + 0x48], r9d
movsxd rbp, dword [rdi + 0x24]
mov r10d, dword [r8]
add r10d, r15d
cmp ebp, r10d
cmovl r10d, ebp
mov dword [rdi + 0x4c], r10d
movzx ecx, word [r8 + 4]
and cx, ax
mov eax, 0x700
cmp cx, ax
jb 0x14053137b
mov dword [rdi + 0x40], ebx
mov rax, r8
mov dword [rdi + 0x44], 1
mov ecx, dword [r8 + 0x1c]
mov dword [rdi + 0x50], ecx
add rsp, 0x50
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
movsxd rcx, dword [r8 + 0x20]
movsxd rdx, dword [r8]
mov rax, qword [rdi]
sub r9d, edx
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x90], r14
mov rax, qword [rax + 0x98]
movups xmm1, xmmword [rax + 0x30]
mov rsi, qword [rax + 0x18]
movups xmm0, xmmword [rax + 0x40]
lea rax, [rcx*4]
movq r14, xmm1
add r14, rax
movq r12, xmm0
add r12, rcx
movups xmmword [rsp + 0x30], xmm1
mov r11, qword [rsp + 0x38]
add r11, rax
movsxd rax, r9d
add rax, rdx
movzx r9d, word [rsi + rax*2]
mov dword [rdi + 0x40], r9d
mov ecx, dword [r8]
lea eax, [r15 + rcx]
cmp r10d, eax
jne 0x1405313fa
movzx esi, word [r8 + 0xc]
jmp 0x140531407
sub r10d, ecx
movsxd rax, r10d
add rax, rdx
movzx esi, word [rsi + rax*2]
mov r13, qword [rsp + 0x88]
movzx r10d, si
mov dword [rdi + 0x44], r10d
mov ecx, dword [r8]
add ecx, r15d
cmp ecx, ebp
jl 0x140531455
mov rax, qword [rdi]
mov rax, qword [rax + 0x98]
mov r8, qword [rax + 0x58]
mov rax, qword [r8 + 0x10]
lea rdx, [rax + rbp*2]
mov eax, 0xad
cmp word [rdx + r8 - 2], ax
jne 0x140531455
movzx eax, si
and byte [rax + r12 - 1], 0xfd
mov r9d, dword [rdi + 0x40]
mov r10d, dword [rdi + 0x44]
mov dword [rdi + 0x50], ebx
cmp r9d, r10d
jge 0x14053149b
movsxd rax, r9d
sub r11, r14
lea r8, [rax + r12]
lea rdx, [r14 + rax*4]
nop dword [rax + rax]
movzx eax, byte [r8]
lea r8, [r8 + 1]
mov ecx, dword [r11 + rdx]
lea rdx, [rdx + 4]
shr eax, 1
inc r9d
shr ecx, 8
not eax
add ecx, dword [rdx - 4]
and eax, 1
imul ecx, eax
add dword [rdi + 0x50], ecx
cmp r9d, r10d
jl 0x140531470
mov rax, qword [rdi + 0x18]
mov r14, qword [rsp + 0x90]
mov r12, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret