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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
movaps xmmword [rsp + 0xe0], xmm6
mov r15, r9
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rsp + 0x168]
mov r12, qword [rsp + 0x160]
movzx ecx, byte [rdx + 0x15]
xor eax, eax
cmp cl, 3
cmovne eax, ecx
cmp al, 1
je 0x1400f2a5d
movzx eax, al
cmp eax, 2
je 0x1400f2a61
test r15, r15
je 0x1400f2a8a
test r12, r12
js 0x1400f2f8c
movabs rax, 0x8000000000000007
lea rcx, [r12 + rax]
add rcx, 0x10
cmp rcx, rax
jb 0x1400f2f8c
lea r13, [r12 + 0x17]
and r13, 0xfffffffffffffff8
je 0x1400f2a8f
movzx eax, byte [0x1402d9160]
mov rcx, qword [0x1402d9150]
test rcx, rcx
jne 0x1400f2a46
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x1400f2f8c
mov rcx, rax
mov qword [0x1402d9150], rax
xor edx, edx
mov r8, r13
call sub.kernel32.dll_HeapAlloc
mov r13, rax
test rax, rax
jne 0x1400f2a95
jmp 0x1400f2f8c
test ebx, ebx
je 0x1400f29e3
mov rcx, rsi
mov rdx, rdi
mov r8, r14
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400f2f90
xor r13d, r13d
jmp 0x1400f2ab4
mov r13d, 8
mov qword [r13], 1
mov qword [r13 + 8], 1
lea rcx, [r13 + 0x10]
mov rdx, r15
mov r8, r12
call sub.msvcrt.dll_memcpy
cmp qword [rdi + 0x28], 0
jne 0x1400f2f8c
mov qword [rdi + 0x28], 0xffffffffffffffff
cmp dword [rdi + 0x40], 0
je 0x1400f2f8c
lea r15, [rdi + 0x30]
cmp ebx, 0x7ffffffe
ja 0x1400f2bf9
mov qword [rsp + 0xc8], r12
mov qword [rsp + 0xd0], r15
mov qword [rsp + 0xd8], r14
mov dword [rsp + 0x24], ebx
mov r14d, dword [rdi + 0x44]
lea rbp, [rdi + 0x78]
mov rdx, qword [rdi + 0x88]
mov rbx, r14
sub rbx, rdx
jb 0x1400f2b6b
xor r12d, r12d
xorps xmm6, xmm6
xor r15d, r15d
nop dword [rax]
cmp r12, rbx
adc r15, 0
cmp rdx, qword [rdi + 0x80]
jne 0x1400f2b3f
mov rcx, rbp
call fcn.14008a000
mov rdx, qword [rdi + 0x88]
mov rax, qword [rdi + 0x78]
lea rcx, [rdx + rdx*2]
mov qword [rax + rcx*8], 8
movups xmmword [rax + rcx*8 + 8], xmm6
inc rdx
mov qword [rdi + 0x88], rdx
cmp r12, rbx
jae 0x1400f2b6b
mov r12, r15
cmp r15, rbx
jbe 0x1400f2b20
cmp rdx, r14
jbe 0x1400f2f8c
mov r15d, dword [rsp + 0x24]
mov r12d, r15d
mov rax, qword [rbp]
lea rbx, [r14 + r14*2]
sub r12, qword [rax + rbx*8 + 0x10]
jae 0x1400f2c36
mov dword [rsp + 0xac], r14d
mov dword [rsp + 0xb0], r15d
mov dword [rsp + 0xb4], 0
mov dword [rsp + 0xa8], 4
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0xa8]
mov r14, qword [rsp + 0xd0]
mov rdx, r14
call fcn.1400c5ca0
test r13, r13
mov ebx, r15d
mov r15, r14
mov r14, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xc8]
je 0x1400f2c20
lock dec qword [r13]
jne 0x1400f2c20
mov rcx, r13
jmp 0x1400f2c1b
mov dword [rsp + 0x28], 0x28
mov dword [rsp + 0x2c], ebx
test r13, r13
je 0x1400f2e5f
lock dec qword [r13]
jne 0x1400f2c20
mov rcx, r13
mov rdx, r12
call fcn.1400e6cc0
mov eax, dword [rsp + 0x28]
inc qword [rdi + 0x28]
cmp eax, 0x2a
jne 0x1400f2e59
jmp 0x1400f2d2b
je 0x1400f2c87
cmp r12, 1
adc r12, 0
mov rax, qword [rbp]
lea r15, [rax + rbx*8]
jmp 0x1400f2c68
mov rax, qword [r15]
shl rdx, 4
mov qword [rax + rdx], 0
inc qword [r15 + 0x10]
dec r12
je 0x1400f2c80
mov rdx, qword [r15 + 0x10]
cmp rdx, qword [r15 + 8]
jne 0x1400f2c50
mov rcx, r15
call fcn.14008a0c0
mov rdx, qword [r15 + 0x10]
jmp 0x1400f2c50
mov rdx, qword [rdi + 0x88]
cmp rdx, r14
jbe 0x1400f2f8c
mov rax, qword [rbp]
lea r15, [rax + rbx*8]
mov rdx, qword [rax + rbx*8 + 0x10]
cmp rdx, qword [rax + rbx*8 + 8]
mov r12, qword [rsp + 0xc8]
jne 0x1400f2cb8
mov rcx, r15
call fcn.14008a0c0
mov rdx, qword [r15 + 0x10]
mov ebx, dword [rsp + 0x24]
mov rax, qword [r15]
shl rdx, 4
mov qword [rax + rdx], r13
mov qword [rax + rdx + 8], r12
inc qword [r15 + 0x10]
mov dword [rsp + 0xac], r14d
mov dword [rsp + 0xb0], ebx
mov dword [rsp + 0xb4], 0
mov dword [rsp + 0xa8], 4
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0xa8]
mov r15, qword [rsp + 0xd0]
mov rdx, r15
call fcn.1400c5ca0
mov r14, qword [rsp + 0xd8]
mov eax, dword [rsp + 0x28]
inc qword [rdi + 0x28]
cmp eax, 0x2a
jne 0x1400f2e59
mov ebp, dword [rsp + 0x2c]
lea rcx, [rsp + 0x28]
mov rdx, rdi
mov r8, r14
call fcn.1400f2f90
mov eax, dword [rsp + 0x28]
cmp eax, 0x2a
jne 0x1400f2ec4
cmp qword [rdi + 0x28], 0
jne 0x1400f2f8c
mov r12d, dword [rsp + 0x2c]
mov r14d, dword [rsp + 0x30]
mov qword [rdi + 0x28], 0xffffffffffffffff
cmp dword [rdi + 0x40], 0
je 0x1400f2f8c
cmp ebx, 0x7fffffff
jae 0x1400f2e5f
mov eax, dword [rdi + 0x44]
mov dword [rsp + 0xac], eax
mov dword [rsp + 0xb0], ebx
mov dword [rsp + 0xb4], 0
mov dword [rsp + 0xa8], 5
lea rcx, [rsp + 0x28]
lea r8, [rsp + 0xa8]
mov rdx, r15
call fcn.1400c5ca0
mov eax, dword [rsp + 0x28]
mov rcx, qword [rdi + 0x28]
inc rcx
mov qword [rdi + 0x28], rcx
cmp eax, 0x2a
jne 0x1400f2e59
test rcx, rcx
jne 0x1400f2f8c
mov ebx, dword [rsp + 0x2c]
mov qword [rdi + 0x28], 0xffffffffffffffff
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8d, ebp
mov r9d, r12d
call fcn.1400c5dc0
mov rcx, qword [rdi + 0x28]
inc rcx
mov qword [rdi + 0x28], rcx
mov eax, dword [rsp + 0x28]
cmp eax, 0x2a
jne 0x1400f2f3a
test rcx, rcx
jne 0x1400f2f8c
mov qword [rdi + 0x28], 0xffffffffffffffff
lea rcx, [rsp + 0x28]
mov rdx, r15
mov r8d, r14d
mov r9d, ebx
call fcn.1400c5dc0
inc qword [rdi + 0x28]
mov eax, dword [rsp + 0x28]
cmp eax, 0x2a
jne 0x1400f2f3a
mov dword [rsi + 4], ebp
mov dword [rsi + 8], ebx
mov dword [rsi], 0x2a
jmp 0x1400f2f1e
mov ebx, dword [rsp + 0x2c]
jmp 0x1400f2e6c
mov qword [rdi + 0x28], 0
mov eax, 0x28
mov rcx, qword [rsp + 0xa0]
mov qword [rsi + 0x78], rcx
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rsi + 0x68], xmm0
movups xmm0, xmmword [rsp + 0x80]
movups xmmword [rsi + 0x58], xmm0
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x48], xmm0
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmm2, xmmword [rsp + 0x50]
movups xmm3, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x38], xmm3
movups xmmword [rsi + 0x28], xmm2
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 8], xmm0
mov dword [rsi], eax
mov dword [rsi + 4], ebx
jmp 0x1400f2f1e
mov ecx, dword [rsp + 0xa4]
mov dword [rsi + 0x7c], ecx
movups xmm0, xmmword [rsp + 0x94]
movups xmmword [rsi + 0x6c], xmm0
movups xmm0, xmmword [rsp + 0x84]
movups xmmword [rsi + 0x5c], xmm0
movups xmm0, xmmword [rsp + 0x74]
movups xmmword [rsi + 0x4c], xmm0
movups xmm0, xmmword [rsp + 0x34]
movups xmm1, xmmword [rsp + 0x44]
movups xmm2, xmmword [rsp + 0x54]
movups xmm3, xmmword [rsp + 0x64]
movups xmmword [rsi + 0x3c], xmm3
movups xmmword [rsi + 0x2c], xmm2
movups xmmword [rsi + 0x1c], xmm1
movups xmmword [rsi + 0xc], xmm0
mov rcx, qword [rsp + 0x2c]
mov dword [rsi], eax
mov qword [rsi + 4], rcx
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movups xmm0, xmmword [rsp + 0x98]
movups xmmword [rsi + 0x70], xmm0
movups xmm0, xmmword [rsp + 0x8c]
movups xmmword [rsi + 0x64], xmm0
movups xmm0, xmmword [rsp + 0x7c]
movups xmmword [rsi + 0x54], xmm0
movups xmm0, xmmword [rsp + 0x6c]
movups xmmword [rsi + 0x44], xmm0
movups xmm0, xmmword [rsp + 0x2c]
movups xmm1, xmmword [rsp + 0x3c]
movups xmm2, xmmword [rsp + 0x4c]
movups xmm3, xmmword [rsp + 0x5c]
movups xmmword [rsi + 0x34], xmm3
movups xmmword [rsi + 0x24], xmm2
movups xmmword [rsi + 0x14], xmm1
movups xmmword [rsi + 4], xmm0
mov dword [rsi], eax
jmp 0x1400f2f1e
ud2