Function at 0x14000ce50
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, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov rax, qword [0x140063010]
xor rax, rsp
mov qword [rsp + 0x98], rax
xor edi, edi
test edx, edx
je 0x14000d06f
mov rbp, rcx
test rcx, rcx
je 0x14000d06f
mov rsi, qword [rsp + 0x120]
test rsi, rsi
je 0x14000d06f
mov ebx, r9d
mov r12d, r8d
mov r15d, edx
lea rcx, [rsi + 0x10]
xor edi, edi
mov r8d, 0x98
xor edx, edx
call sub.VCRUNTIME140.dll_memset
add r12d, ebx
mov dword [rsi], r12d
mov dword [rsi + 4], ebx
mov qword [rsi + 8], 0
sub r15d, ebx
jbe 0x14000cfde
mov eax, ebx
add rbp, rax
cmp r15d, 0x15
mov eax, 0x14
cmovl eax, r15d
movsxd rdi, eax
mov eax, 0x14
sub rax, rdi
cmp edi, 0x13
mov r8d, 0
cmovbe r8, rax
lea rcx, [rsp + rdi]
add rcx, 0x80
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rbx, [rsp + 0x80]
mov rcx, rbx
mov rdx, rbp
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x64], 0
cmp byte [rbx], 0
jne 0x14000cf75
cmp r15d, 4
jb 0x14000cf75
mov eax, dword [0x1400635d4]
and eax, 1
je 0x14000cf75
cmp byte [rsp + 0x81], 0
jne 0x14000cf75
cmp byte [rsp + 0x82], 0
jne 0x14000cf75
cmp byte [rsp + 0x83], 0
je 0x14000d4ae
movsxd rbx, r15d
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x80]
lea r9, [rsp + 0x68]
mov rdx, rbx
xor r8d, r8d
call fcn.14000b6d0
cmp rax, 0xffffffffffffffff
je 0x14000cffe
mov rbp, rax
cmp rax, rbx
ja 0x14000cffe
mov r13, qword [rsp + 0x68]
cmp dword [r13 + 4], 0
je 0x14000cffe
mov edi, dword [rsp + 0x64]
mov eax, dword [0x1400635d4]
test al, 2
jne 0x14000d09d
test dil, 0x10
sete cl
add cl, cl
add cl, 2
test dil, 0x20
sete dl
jmp 0x14000d0b2
mov rax, qword [0x140095e48]
test rax, rax
je 0x14000d06f
movsxd rdx, r12d
mov r8, qword [0x140095e50]
xor edi, edi
xor ecx, ecx
jmp 0x14000d069
movabs rax, 0x64696c61766e69
mov qword [rsi + 0x68], rax
lea rdi, [rsi + 0x78]
mov rcx, qword [rsi + 0x78]
test rcx, rcx
je 0x14000d02e
mov rbx, qword [sym.imp.mozglue.dll_free]
mov rbp, qword [rcx + 0x60]
call rbx
mov rcx, rbp
test rbp, rbp
jne 0x14000d020
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
xor eax, eax
mov qword [rdi + 0x10], rax
mov byte [rsi + 0x28], 1
mov qword [rsi + 8], rax
mov al, byte [rsp + 0x80]
mov byte [rsi + 0x14], al
mov rax, qword [0x140095e48]
xor edi, edi
test rax, rax
je 0x14000d06f
movsxd rdx, r12d
mov r8, qword [0x140095e50]
mov ecx, 2
call qword [case.0x14004ab96.0]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14004b7a0
mov eax, edi
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, edi
and ecx, 0x10
shr ecx, 4
add cl, cl
add cl, 2
mov edx, edi
and edx, 0x20
shr edx, 5
add dl, dl
add dl, 2
mov byte [rsi + 0x2a], cl
mov byte [rsi + 0x29], dl
test al, 4
je 0x14000d0ce
cmp byte [r13 + 0x2c], 0
je 0x14000d0ce
lea rdx, [r13 + 0x2c]
jmp 0x14000d0d2
lea rdx, [r13 + 0x1c]
lea rcx, [rsi + 0x68]
mov r8d, 0x10
mov qword [rsp + 0x48], rcx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
movzx ecx, di
mov dword [rsp + 0x3c], edi
mov eax, edi
and eax, 0xf
cmovne eax, ecx
mov dword [rsi + 0x44], eax
test al, 4
je 0x14000d125
lea rdi, [rsi + 0x48]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8d, 0x20
sub r8, rax
lea rdx, str.lock
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov eax, dword [rsi + 0x44]
mov r14, rbx
sub r14, rbp
test al, 2
jne 0x14000d151
test al, 1
je 0x14000d176
lea rdi, [rsi + 0x48]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8d, 0x20
sub r8, rax
lea rdx, str.repz
jmp 0x14000d16d
lea rdi, [rsi + 0x48]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8d, 0x20
sub r8, rax
lea rdx, str.repnz
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncat]
mov qword [rsp + 0x40], rbp
add rbp, rsp
add rbp, 0x80
mov rcx, rsi
mov rdx, r13
call fcn.14000d520
test r14, r14
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x38], r12d
je 0x14000d1a5
mov r12b, byte [rbp]
jmp 0x14000d1a8
xor r12d, r12d
mov eax, dword [r13 + 0xc]
mov r9d, dword [r13 + 0x3c]
mov byte [rsp + 0x30], r12b
mov ebx, dword [rsp + 0x3c]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
mov rcx, rbp
mov rdx, r14
mov r8, rsi
call fcn.14000c320
mov rdi, rax
add rbp, rax
sub r14, rax
mov eax, dword [r13 + 0x10]
mov r9d, dword [r13 + 0x40]
mov byte [rsp + 0x30], r12b
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
mov rcx, rbp
mov rdx, r14
mov r8, rsi
call fcn.14000c320
add rbp, rax
mov qword [rsp + 0x58], rax
sub r14, rax
mov eax, dword [r13 + 0x14]
mov r9d, dword [r13 + 0x44]
mov byte [rsp + 0x30], r12b
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], eax
mov rcx, rbp
mov rdx, r14
mov r8, rsi
call fcn.14000c320
mov r14, rax
mov edx, dword [r13 + 0x4c]
mov rcx, rsi
call fcn.14000b4c0
test bl, 3
je 0x14000d24a
mov rcx, rsi
mov edx, 0x29
call fcn.14000b4c0
cmp byte [rsi + 0x2a], 2
mov rcx, qword [rsp + 0x40]
mov r12d, dword [rsp + 0x38]
jne 0x14000d309
mov rbx, qword [rsi + 0x78]
test rbx, rbx
je 0x14000d309
xorps xmm6, xmm6
cmp dword [rbx], 1
jne 0x14000d2fc
cmp dword [rbx + 0x1c], 4
jne 0x14000d2fc
test byte [rbx + 0x18], 1
je 0x14000d2fc
mov r13d, dword [rbx + 0x20]
add r13d, 8
lea rax, [r13 - 1]
cmp rax, 0x5c
ja 0x14000d2fc
lea rcx, [rbx + 0x10]
movups xmmword [rcx + 0xc], xmm6
movups xmmword [rcx], xmm6
lea rax, [r13*4]
add rax, r13
lea rdx, [0x1400954a0]
lea rbp, [rdx + rax*4]
add rbp, 0xc
mov r8d, 8
mov rdx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, dword [rbp - 8]
mov dword [rbx + 0x18], eax
mov eax, dword [rbp - 0xc]
mov dword [rbx + 0x1c], eax
mov eax, dword [rbp - 4]
test rax, rax
je 0x14000d2f3
lea rdx, [0x14004c8d0]
movzx ecx, byte [rdx + rax*2]
mov dword [rbx + 0x24], ecx
movzx eax, byte [rdx + rax*2 + 1]
mov dword [rbx + 0x28], eax
mov dword [rbx + 0x20], r13d
mov rcx, qword [rsp + 0x40]
mov rbx, qword [rbx + 0x60]
test rbx, rbx
jne 0x14000d26e
add rdi, rcx
add rdi, qword [rsp + 0x58]
add rdi, r14
mov rax, qword [rsp + 0x68]
test byte [rax + 7], 0x20
je 0x14000d38e
mov rdx, qword [rsp + 0x50]
sub rdx, rdi
lea rcx, [rsp + rdi]
add rcx, 0x80
lea rbp, [rsp + 0x74]
mov dword [rbp], 0
mov r8d, dword [rax]
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x78]
call fcn.14000b6d0
cmp rax, 0xffffffffffffffff
je 0x14000d420
mov rdx, qword [rsp + 0x78]
cmp dword [rdx + 4], 0
je 0x14000d420
add rdx, 0x1c
mov r8d, 0x10
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov rdx, qword [rsp + 0x78]
mov rcx, rsi
call fcn.14000d520
inc rdi
test rdi, rdi
je 0x14000d459
mov byte [rsi + 0x28], dil
test edi, edi
je 0x14000d04c
cmp r15d, edi
jge 0x14000d492
mov rax, qword [0x140095e48]
test rax, rax
je 0x14000d3cd
movsxd rdx, r12d
mov r8, qword [0x140095e50]
mov ecx, 1
call qword [case.0x14004ab96.0]
movabs rax, 0x64696c61766e69
mov qword [rsi + 0x68], rax
lea rbx, [rsi + 0x78]
mov rcx, qword [rsi + 0x78]
test rcx, rcx
je 0x14000d3fd
mov rdi, qword [sym.imp.mozglue.dll_free]
mov rbp, qword [rcx + 0x60]
call rdi
mov rcx, rbp
test rbp, rbp
jne 0x14000d3ef
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
xor edi, edi
mov qword [rbx + 0x10], rdi
mov byte [rsi + 0x28], 1
mov qword [rsi + 8], rdi
mov al, byte [rsp + 0x80]
mov byte [rsi + 0x14], al
jmp 0x14000d06f
movabs rax, 0x64696c61766e69
mov qword [rsi + 0x68], rax
lea rdi, [rsi + 0x78]
mov rcx, qword [rsi + 0x78]
test rcx, rcx
je 0x14000d02e
mov rbx, qword [sym.imp.mozglue.dll_free]
mov rbp, qword [rcx + 0x60]
call rbx
mov rcx, rbp
test rbp, rbp
jne 0x14000d446
jmp 0x14000d02e
movabs rax, 0x64696c61766e69
mov qword [rsi + 0x68], rax
lea rdi, [rsi + 0x78]
mov rcx, qword [rsi + 0x78]
test rcx, rcx
je 0x14000d02e
mov rbx, qword [sym.imp.mozglue.dll_free]
mov rbp, qword [rcx + 0x60]
call rbx
mov rcx, rbp
test rbp, rbp
jne 0x14000d47f
jmp 0x14000d02e
add rsi, 0x14
movsxd r8, edi
lea rdx, [rsp + 0x80]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
jmp 0x14000d06f
movabs rax, 0x64696c61766e69
mov qword [rsi + 0x68], rax
xorps xmm0, xmm0
movups xmmword [rsi + 0x78], xmm0
xor eax, eax
mov qword [rsi + 0x88], rax
mov byte [rsi + 0x28], 1
mov qword [rsi + 8], rax
mov byte [rsi + 0x14], 0
jmp 0x14000d04c