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

Disassembly:
mov word [rsp + 0x20], r9w
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov rdi, qword [rcx + 0x130]
mov r13, r8
mov rbx, rcx
mov eax, dword [rdi + 0x15568]
mov dword [rsp + 0x24], eax
mov eax, dword [rdi + 0x1556c]
mov dword [rsp + 0x28], eax
mov eax, 0xa
sub eax, dword [rcx + 0xa4]
lea r15d, [rax + rax*4]
add r15d, r15d
sub r15d, dword [rcx + 0x2c]
call fcn.140016990
movd xmm0, dword [rdi + 0x38]
xor r10d, r10d
movsxd rdx, dword [rdi + 0x6c]
xor r11b, r11b
mov r8d, dword [rbx + 0x48]
xor bpl, bpl
mov r9d, dword [rbx + 0x4c]
mov r12d, r10d
movzx ebx, byte [rdi + 0xd4]
movzx esi, r10w
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x90], 0x2030501
mov word [rsp + 0x94], 4
mov byte [rsp + 0x96], 3
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x1400606c8]
addsd xmm0, qword [0x14005fb00]
minsd xmm0, qword [0x1400618a0]
cvttsd2si eax, xmm0
mov dword [rsp + 0x20], eax
test edx, edx
je 0x14001275c
cmp edx, 3
je 0x140012750
movsxd rax, dword [rdi + 0x74]
movsxd rcx, dword [rdi + 0x14]
shl rcx, 4
add rcx, rax
lea rax, [0x1400627c0]
mov ecx, dword [rax + rcx*4]
mov dword [rsp + 0xa0], ecx
jmp 0x140012766
mov ecx, dword [rdi + 0x70]
mov dword [rsp + 0xa0], ecx
jmp 0x140012766
mov eax, dword [rdi + 0x7c]
mov dword [rsp + 0xa0], eax
cmp rdx, 7
jae 0x14001277d
movzx eax, byte [rsp + rdx + 0x90]
mov byte [rsp + 0x90], al
jmp 0x140012785
mov byte [rsp + 0x90], sil
cmp dword [rdi + 0x84], r10d
je 0x1400127bc
mov eax, dword [rdi + 0x15910]
mov esi, 0x1fe
cmp eax, esi
jg 0x14001285c
cmp eax, 0xfffffe02
jge 0x140012851
mov esi, 0xfe02
neg si
mov eax, 0x2e00
or si, ax
cmp dword [rdi + 0x88], r10d
je 0x1400127f3
movss xmm0, dword [rdi + 0x1590c]
mulss xmm0, dword [0x1400606ac]
mulss xmm0, dword [0x1400618ac]
addss xmm0, dword [0x14005aa24]
cvttss2si eax, xmm0
mov r12d, eax
neg r12d
cmovs r12d, eax
cmp r8d, 0xffffffff
je 0x14001280c
test r9d, r9d
lea eax, [r8 - 1]
setg bpl
cmp r9d, eax
jge 0x14001280c
mov r11b, 1
add bpl, bpl
mov ecx, 0x30
add bpl, r11b
mov eax, 0x10
shl bpl, 6
cmp dword [rdi + 0x64], r10d
cmovne eax, ecx
mov ecx, dword [rdi + 0xb8]
add bpl, al
add bpl, bl
test r15d, r15d
cmovs r15d, r10d
test ecx, ecx
je 0x14001287a
sub ecx, 1
je 0x14001286e
sub ecx, 1
je 0x14001286a
cmp ecx, 1
je 0x140012866
mov dl, 7
jmp 0x14001287c
movzx esi, ax
test eax, eax
js 0x1400127b1
mov eax, 0x2c00
jmp 0x1400127b9
xor dl, dl
jmp 0x14001287c
mov dl, 2
jmp 0x14001287c
cmp dword [rdi + 0x54], r10d
setne dl
add dl, 3
jmp 0x14001287c
mov dl, 1
mov ecx, dword [rdi + 0x40]
cmp ecx, 0x7d00
jg 0x14001288c
xor r14b, r14b
jmp 0x1400128a8
cmp ecx, 0xbb80
jne 0x140012899
mov r14b, 4
jmp 0x1400128a8
mov eax, 6
mov r14d, 2
cmovg r14d, eax
mov eax, dword [rdi + 0xbc]
sub eax, 2
cmp eax, 1
jbe 0x1400128f2
cmp dword [rdi + 0x38], 0xffffffff
jne 0x1400128c2
cmp dword [rdi + 0x3c], 0xffffffff
je 0x1400128f2
cmp dword [rdi + 0x94], r10d
je 0x1400128d4
cmp dword [rdi + 0x7c], 0x140
jl 0x1400128f2
cmp dword [rdi + 0xe0], r10d
jne 0x1400128f2
cmp dword [rdi + 0xd8], r10d
jne 0x1400128f2
test bl, bl
je 0x1400128f2
cmp ecx, 0x7d00
jg 0x1400128f8
mov r10d, 1
movzx ebx, word [rdi + 0x15970]
lea rcx, [r13 + 4]
add r14b, r10b
mov eax, r15d
shr eax, 0x18
mov r8d, 9
shl r14b, 3
add r14b, dl
mov rdx, qword [rsp + 0x30]
shl r14b, 2
add r14b, byte [rdi + 0x20]
mov byte [r13], al
mov eax, r15d
shr eax, 0x10
mov byte [r13 + 1], al
mov eax, r15d
shr eax, 8
mov byte [r13 + 2], al
mov byte [r13 + 3], r15b
call fcn.14003d400
movzx eax, byte [rsp + 0x90]
mov edx, 0xff
mov byte [r13 + 0xd], al
mov r8d, 0x26
mov eax, dword [rsp + 0x20]
mov byte [r13 + 0xe], al
mov eax, r12d
shr eax, 0x18
mov byte [r13 + 0xf], al
mov eax, r12d
shr eax, 0x10
mov byte [r13 + 0x10], al
mov eax, r12d
shr eax, 8
mov byte [r13 + 0x11], al
mov byte [r13 + 0x12], r12b
movzx ecx, si
mov byte [r13 + 0x14], cl
mov eax, ecx
mov ecx, dword [rsp + 0xa0]
shr eax, 8
mov byte [r13 + 0x13], al
cmp ecx, edx
mov word [r13 + 0x15], 0
mov byte [r13 + 0x17], bpl
movzx eax, cl
mov ecx, dword [rsp + 0x24]
cmovge eax, edx
mov edx, dword [rsp + 0x28]
mov byte [r13 + 0x18], al
mov eax, ecx
sar eax, 4
mov byte [r13 + 0x19], al
mov eax, edx
sar eax, 8
mov byte [r13 + 0x1b], dl
shl cl, 4
add al, cl
mov byte [r13 + 0x1a], al
mov byte [r13 + 0x1c], r14b
mov byte [r13 + 0x1d], 0
mov ecx, dword [rdi + 0x68]
mov eax, ecx
sar eax, 8
mov byte [r13 + 0x1e], al
mov byte [r13 + 0x1f], cl
mov rcx, qword [rsp + 0x98]
mov byte [r13 + 0x23], cl
mov eax, ecx
shr eax, 0x18
mov byte [r13 + 0x20], al
mov eax, ecx
shr eax, 0x10
mov byte [r13 + 0x21], al
mov eax, ecx
shr eax, 8
mov byte [r13 + 0x22], al
mov eax, ebx
shr eax, 8
mov byte [r13 + 0x24], al
mov byte [r13 + 0x25], bl
movzx ecx, word [rsp + 0xa8]
mov rdx, r13
call fcn.140012400
movzx ecx, ax
mov eax, ecx
mov byte [r13 + 0x27], cl
shr eax, 8
mov byte [r13 + 0x26], al
mov eax, 0x28
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret