Function at 0x14001ce50
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
cmp byte [rcx + 0x3d], 1
je 0x14001d0fe
mov ebx, edx
test edx, edx
je 0x14001d05e
mov rdi, r9
mov ebp, r8d
mov rsi, rcx
cmp byte [rcx + 0x64], 1
jne 0x14001ce8c
mov rcx, rsi
mov edx, ebx
mov r8d, ebp
jmp 0x14001d0ce
cmp byte [rsi + 0x66], 1
jne 0x14001cfc6
test ebx, ebx
js 0x14001cebf
mov eax, ebp
and al, 1
mov byte [rsp + 0x2c], al
movzx eax, al
shl rax, 0x20
mov ecx, ebx
or rcx, rax
mov edx, 0x22f
mov rax, rdi
test edx, edx
jne 0x14001cecd
jmp 0x14001d0ec
xor edx, edx
xor ecx, ecx
xor eax, eax
test edx, edx
je 0x14001d0ec
mov r14d, ecx
dec r14d
jo 0x14001d0f9
jns 0x14001cee4
add r14d, ecx
jo 0x14001d0f9
test r14d, r14d
js 0x14001cfc6
cmp r14d, ecx
jge 0x14001cfc6
mov ecx, r14d
cmp byte [rax + rcx], 0xa
je 0x14001cf13
nop
sub r14d, 1
jb 0x14001cfc6
movsxd rcx, r14d
cmp byte [rax + rcx], 0xa
jne 0x14001cf00
mov edx, dword [rsi + 0x60]
test edx, edx
jle 0x14001cf48
mov r9, qword [rsi + 0x48]
test r9, r9
jne 0x14001cf3d
mov ecx, dword [rsi + 0x68]
test ecx, ecx
js 0x14001d0f9
call fcn.1400217f0
mov r9, rax
mov qword [rsi + 0x48], rax
mov edx, dword [rsi + 0x60]
mov rcx, rsi
xor r8d, r8d
call fcn.14001aab0
mov dword [rsi + 0x60], 0
inc r14d
jo 0x14001d0f9
xor eax, eax
cmp ebx, r14d
mov r15d, r14d
jb 0x14001cf91
mov ecx, r14d
or ecx, ebx
mov edx, 0
mov r9d, 0
js 0x14001cf96
mov eax, ebp
and al, 1
mov byte [rsp + 0x30], al
movzx eax, al
shl rax, 0x20
lea rdx, [r15 + rax]
mov eax, 0x22f
mov r9, rdi
jmp 0x14001cf96
xor edx, edx
xor r9d, r9d
test eax, eax
je 0x14001d0ec
mov r8, rdx
shr r8, 0x20
and r8d, 1
mov rcx, rsi
call fcn.14001aab0
test r14d, r14d
js 0x14001d0ec
sub ebx, r14d
jl 0x14001d0ec
add rdi, r15
mov edx, dword [rsi + 0x60]
mov ecx, dword [rsi + 0x68]
cmp ebx, ecx
jge 0x14001d06b
mov eax, ecx
sub eax, edx
jo 0x14001d0f9
cmp ebx, eax
jle 0x14001d018
test edx, edx
jle 0x14001d011
mov r9, qword [rsi + 0x48]
test r9, r9
jne 0x14001d006
test ecx, ecx
js 0x14001d0f9
call fcn.1400217f0
mov r9, rax
mov qword [rsi + 0x48], rax
mov edx, dword [rsi + 0x60]
mov rcx, rsi
xor r8d, r8d
call fcn.14001aab0
mov dword [rsi + 0x60], 0
mov rcx, qword [rsi + 0x48]
test rcx, rcx
jne 0x14001d038
mov ecx, dword [rsi + 0x68]
test ecx, ecx
js 0x14001d0f9
call fcn.1400217f0
mov rcx, rax
mov qword [rsi + 0x48], rax
test ebx, ebx
js 0x14001d0ec
movsxd rax, dword [rsi + 0x60]
add rcx, rax
mov r8d, ebx
mov rdx, rdi
call fcn.1400434e0
add ebx, dword [rsi + 0x60]
jo 0x14001d0f9
mov dword [rsi + 0x60], ebx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
test edx, edx
jle 0x14001d096
mov r9, qword [rsi + 0x48]
test r9, r9
jne 0x14001d08b
test ecx, ecx
js 0x14001d0f9
call fcn.1400217f0
mov r9, rax
mov qword [rsi + 0x48], rax
mov edx, dword [rsi + 0x60]
mov rcx, rsi
xor r8d, r8d
call fcn.14001aab0
mov dword [rsi + 0x60], 0
test ebx, ebx
js 0x14001d0e2
and bpl, 1
mov byte [rsp + 0x34], bpl
movzx eax, bpl
shl rax, 0x20
mov edx, ebx
or rdx, rax
mov eax, 0x22f
test eax, eax
je 0x14001d0ec
mov r8, rdx
shr r8, 0x20
and r8d, 1
mov rcx, rsi
mov r9, rdi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14001aab0
xor eax, eax
xor edx, edx
xor edi, edi
test eax, eax
jne 0x14001d0c0
call fcn.140005390
mov rcx, rax
call fcn.1400053f0
call fcn.140003510
lea rcx, [0x140061620]
call fcn.140018f00
mov rcx, rax
call fcn.140018f70
int3