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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rbx, qword [rcx + 0x10]
mov r14d, edx
mov rdi, rcx
test rbx, rbx
jne 0x14018daf0
cmp qword [rcx + 0xa0], rbx
jne 0x14018dae8
mov rax, qword [rcx]
test byte [rax + 0x5c], 8
jne 0x14018dae8
mov byte [rcx + 0x23], 1
call fcn.1401dad30
mov rbx, rax
dec dword [rdi + 0x44]
xor r8d, r8d
mov esi, dword [rdi + 0x34]
mov r12d, dword [rdi + 0x44]
dec esi
mov r13, qword [rsp + 0xc0]
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x34], r12d
cmp dword [rsp + 0xd8], r8d
jge 0x14018db79
movsxd rcx, dword [rbx + 0x90]
movzx edx, byte [r13 + 0x2c]
cmp dword [rbx + 0x94], ecx
jg 0x14018db4b
mov dword [rsp + 0x20], r8d
mov r9d, r12d
mov r8d, edx
mov rcx, rbx
mov edx, 0x2f
call fcn.1401925a0
xor r8d, r8d
jmp 0x14018db79
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x2f
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov r15d, dword [r13 + 0x28]
mov ebp, r8d
mov dword [rsp + 0x3c], r15d
test r15d, r15d
jle 0x14018dc99
mov rsi, qword [rsp + 0xc8]
xor r14d, r14d
mov edi, dword [rsp + 0xd0]
mov r10, qword [r13]
movzx eax, word [rsi]
test byte [r10 + 0x40], 0x20
je 0x14018dc0d
test ax, ax
js 0x14018dc0d
movsx ecx, ax
mov r11d, r14d
movzx edx, r14w
test ecx, ecx
jle 0x14018dbea
mov r8, qword [r10 + 8]
add r8, 0x1c
mov r11d, ecx
mov r9d, ecx
nop
movzx eax, byte [r8]
lea ecx, [rdx + 1]
and al, 0x20
lea r8, [r8 + 0x20]
cmovne cx, dx
movzx edx, cx
sub r9, 1
jne 0x14018dbd0
mov rax, qword [r10 + 8]
movsxd rcx, r11d
shl rcx, 5
test byte [rcx + rax + 0x1c], 0x20
je 0x14018dc0a
movzx eax, word [r10 + 0x48]
sub ax, dx
add ax, r11w
jmp 0x14018dc0d
movzx eax, dx
movsxd rcx, dword [rbx + 0x90]
lea edx, [rdi + 1]
cwde
add edx, eax
cmp dword [rbx + 0x94], ecx
jg 0x14018dc3c
mov r8d, edx
mov dword [rsp + 0x20], r14d
mov edx, 0x32
mov r9d, r12d
mov rcx, rbx
call fcn.1401925a0
jmp 0x14018dc6a
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x32
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r14
mov r15d, dword [r13 + 0x28]
inc ebp
add rsi, 4
mov dword [rsp + 0x3c], r15d
cmp ebp, r15d
jl 0x14018dba0
mov rdi, qword [rsp + 0xa0]
xor r8d, r8d
mov r14d, dword [rsp + 0xa8]
mov esi, dword [rsp + 0x30]
cmp dword [rsp + 0xe0], 0
jne 0x14018e5fe
mov rbp, qword [rsp + 0xb8]
test rbp, rbp
jne 0x14018df6a
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x14018dcc8
inc dword [rdi + 0x38]
mov esi, dword [rdi + 0x38]
jmp 0x14018dcd7
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov esi, dword [rdi + rax*4 + 0xd4]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [r13]
movzx edx, word [rax]
call fcn.1401d6460
mov r15d, dword [rsp + 0xd0]
xor r8d, r8d
movsx ecx, ax
lea edx, [r15 + 1]
add edx, ecx
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x14018dd2b
mov dword [rsp + 0x20], r8d
mov r9d, esi
mov r8d, edx
mov rcx, rbx
mov edx, 0x4e
call fcn.1401925a0
xor r8d, r8d
jmp 0x14018dd58
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x4e
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
movsxd rbp, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ebp
jg 0x14018dd82
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov r8d, esi
mov rcx, rbx
lea edx, [r9 + 0xf]
call fcn.1401925a0
mov ebp, eax
jmp 0x14018ddb6
lea eax, [rbp + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rbp*2]
mov rax, qword [rbx + 0x88]
add rcx, rbp
mov dword [rax + rcx*8], 0xf
mov dword [rax + rcx*8 + 4], esi
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r8
mov rax, qword [rsp + 0xb0]
cmp rax, qword [r13]
jne 0x14018de05
cmp dword [rsp + 0xd8], 1
jne 0x14018de05
mov r9d, r12d
mov dword [rsp + 0x20], esi
mov r8d, r15d
mov edx, 0x35
mov rcx, rbx
call fcn.1401da530
movsxd rax, dword [rbx + 0x90]
test eax, eax
jle 0x14018de05
lea rcx, [rax + rax*2]
mov edx, 0x90
mov rax, qword [rbx + 0x88]
mov word [rax + rcx*8 - 0x16], dx
mov r9, qword [rsp + 0xb0]
mov r8d, r14d
mov r14d, dword [rsp + 0x30]
mov rcx, rdi
mov edx, r14d
mov dword [rsp + 0x20], 0x60
call fcn.1401c6ab0
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x14018de52
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov r8d, r14d
mov rcx, rbx
lea edx, [r9 + 0x20]
call fcn.1401925a0
xor r15d, r15d
jmp 0x14018de83
lea eax, [rcx + 1]
xor r15d, r15d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x20
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], r15
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x14018deab
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov r9d, r12d
mov rcx, rbx
lea edx, [r8 + 0xb]
call fcn.1401925a0
jmp 0x14018ded6
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], VariantTimeToDosDateTime
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
mov rax, qword [rbx]
lea rdx, [0x1402b2790]
mov r8d, dword [rbx + 0x90]
cmp byte [rax + 0x61], 0
lea ecx, [r8 - 2]
je 0x14018def6
mov rax, rdx
jmp 0x14018df12
sar ecx, 0x1f
mov eax, r8d
sub eax, ecx
sub eax, 2
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 8], r8d
mov rax, qword [rbx]
mov r8d, dword [rbx + 0x90]
cmp byte [rax + 0x61], 0
jne 0x14018df40
lea eax, [r8 - 1]
test ebp, ebp
cmovns eax, ebp
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rdx, [rax + rcx*8]
mov dword [rdx + 8], r8d
test esi, esi
je 0x14018e606
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x14018e606
movzx eax, al
mov dword [rdi + rax*4 + 0xd4], esi
inc byte [rdi + 0x1f]
jmp 0x14018e606
cmp r15d, 1
jne 0x14018dfa3
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x14018df89
inc dword [rdi + 0x38]
mov r12d, dword [rdi + 0x38]
mov dword [rsp + 0xe0], r12d
jmp 0x14018dfe0
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov r12d, dword [rdi + rax*4 + 0xd4]
mov dword [rsp + 0xe0], r12d
jmp 0x14018dfe0
mov ecx, dword [rdi + 0x28]
mov edx, dword [rdi + 0x2c]
mov dword [rsp + 0xe0], edx
cmp r15d, ecx
jg 0x14018dfc7
lea eax, [rdx + r15]
sub ecx, r15d
mov dword [rdi + 0x2c], eax
mov r12d, edx
mov dword [rdi + 0x28], ecx
jmp 0x14018dfdc
mov eax, dword [rdi + 0x38]
lea r12d, [rax + 1]
add eax, r15d
mov dword [rdi + 0x38], eax
mov dword [rsp + 0xe0], r12d
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x14018dfec
inc dword [rdi + 0x38]
mov eax, dword [rdi + 0x38]
jmp 0x14018dffb
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov eax, dword [rdi + rax*4 + 0xd4]
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rbp + 0x58]
mov dword [rsp + 0x38], eax
cmp dword [rbx + 0x94], ecx
jg 0x14018e02b
mov r9d, edx
mov dword [rsp + 0x20], r14d
mov edx, 0x60
mov r8d, esi
mov rcx, rbx
call fcn.1401925a0
jmp 0x14018e058
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x60
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r8
mov rsi, qword [rdi + 0x10]
mov rdx, rbp
mov rcx, rdi
call fcn.1401c4960
mov rdx, rax
test rax, rax
je 0x14018e0a3
mov rcx, qword [rsi]
cmp byte [rcx + 0x61], 0
je 0x14018e087
mov r8, rax
mov edx, 0xfffffff7
call fcn.14018f540
jmp 0x14018e0a3
movsxd rax, dword [rsi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov byte [rax + rcx*8 - 0x17], 0xf7
mov qword [rax + rcx*8 - 8], rdx
test r15d, r15d
jle 0x14018e1b9
mov r14, qword [rsp + 0xc8]
mov esi, r12d
mov edi, dword [rsp + 0xd0]
xor r12d, r12d
mov ebp, r15d
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [r13]
movzx eax, word [r14]
test byte [r10 + 0x40], 0x20
je 0x14018e13d
test ax, ax
js 0x14018e13d
movsx ecx, ax
mov r11d, r12d
movzx edx, r12w
test ecx, ecx
jle 0x14018e11a
mov r8, qword [r10 + 8]
add r8, 0x1c
mov r11d, ecx
mov r9d, ecx
movzx eax, byte [r8]
lea ecx, [rdx + 1]
and al, 0x20
lea r8, [r8 + 0x20]
cmovne cx, dx
movzx edx, cx
sub r9, 1
jne 0x14018e100
mov rax, qword [r10 + 8]
movsxd rcx, r11d
shl rcx, 5
test byte [rcx + rax + 0x1c], 0x20
je 0x14018e13a
movzx eax, word [r10 + 0x48]
sub ax, dx
add ax, r11w
jmp 0x14018e13d
movzx eax, dx
movsxd rcx, dword [rbx + 0x90]
lea edx, [rdi + 1]
cwde
add edx, eax
cmp dword [rbx + 0x94], ecx
jg 0x14018e16c
mov r8d, edx
mov dword [rsp + 0x20], r12d
mov edx, 0x4d
mov r9d, esi
mov rcx, rbx
call fcn.1401925a0
jmp 0x14018e199
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x4d
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
inc esi
add r14, 4
sub rbp, 1
jne 0x14018e0d0
mov rdi, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0xb8]
mov rax, qword [rsp + 0xb0]
cmp rax, qword [r13]
jne 0x14018e43a
cmp dword [rsp + 0xd8], 1
jne 0x14018e43a
mov esi, dword [rbx + 0x90]
lea eax, [rsi + 1]
add eax, r15d
test r15d, r15d
jle 0x14018e3e5
mov rcx, qword [rsp + 0xc8]
xor r9d, r9d
mov r13d, r15d
mov r12d, r9d
mov r15, qword [rsp + 0xc0]
mov edi, eax
nop dword [rax]
mov r10, qword [r15]
movzx eax, word [rcx]
test byte [r10 + 0x40], 0x20
je 0x14018e27d
test ax, ax
js 0x14018e27d
movsx ecx, ax
mov r11d, r9d
movzx edx, r9w
test ecx, ecx
jle 0x14018e25a
mov r8, qword [r10 + 8]
add r8, 0x1c
mov r11d, ecx
mov r9d, ecx
nop
movzx eax, byte [r8]
lea ecx, [rdx + 1]
and al, 0x20
lea r8, [r8 + 0x20]
cmovne cx, dx
movzx edx, cx
sub r9, 1
jne 0x14018e240
mov rax, qword [r10 + 8]
movsxd rcx, r11d
shl rcx, 5
test byte [rcx + rax + 0x1c], 0x20
je 0x14018e27a
movzx eax, word [r10 + 0x48]
sub ax, dx
add ax, r11w
jmp 0x14018e27d
movzx eax, dx
mov r8d, dword [rsp + 0xd0]
cwde
lea r14d, [r8 + 1]
add r14d, eax
mov rax, qword [rbp + 8]
mov rbp, qword [rbp + 0x18]
movzx r11d, word [r12 + rax]
test byte [rbp + 0x40], 0x20
je 0x14018e309
test r11w, r11w
js 0x14018e309
movsx eax, r11w
mov r10d, r9d
movzx edx, r9w
test eax, eax
jle 0x14018e2e5
mov r8, qword [rbp + 8]
add r8, 0x1c
mov r10d, eax
mov r9d, eax
movzx eax, byte [r8]
lea ecx, [rdx + 1]
and al, 0x20
lea r8, [r8 + 0x20]
cmovne cx, dx
movzx edx, cx
sub r9, 1
jne 0x14018e2c3
mov r8d, dword [rsp + 0xd0]
mov rax, qword [rbp + 8]
movsxd rcx, r10d
shl rcx, 5
test byte [rcx + rax + 0x1c], 0x20
je 0x14018e304
movzx eax, word [rbp + 0x48]
sub ax, dx
add ax, r10w
jmp 0x14018e30d
movzx eax, dx
jmp 0x14018e30d
movzx eax, r11w
movsx edx, ax
mov rax, qword [rsp + 0xb0]
inc edx
add edx, r8d
cmp r11w, word [rax + 0x44]
cmove edx, r8d
cmp dword [rbx + 0x94], esi
jg 0x14018e34a
mov dword [rsp + 0x20], edx
mov r9d, edi
mov edx, 0x34
mov r8d, r14d
mov rcx, rbx
call fcn.1401925a0
xor r9d, r9d
jmp 0x14018e37a
lea eax, [rsi + 1]
mov dword [rbx + 0x90], eax
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x34
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r9
movsxd rsi, dword [rbx + 0x90]
mov eax, esi
test esi, esi
jle 0x14018e3a4
mov rax, qword [rbx + 0x88]
lea rcx, [rsi + rsi*2]
mov edx, 0x10
mov word [rax + rcx*8 - 0x16], dx
mov esi, dword [rbx + 0x90]
mov eax, esi
mov rcx, qword [rsp + 0xc8]
add r12, 2
mov rbp, qword [rsp + 0xb8]
add rcx, 4
mov qword [rsp + 0xc8], rcx
sub r13, 1
jne 0x14018e210
mov rdi, qword [rsp + 0xa0]
mov esi, eax
mov r15d, dword [rsp + 0x3c]
mov r13, qword [rsp + 0xc0]
mov r12d, dword [rsp + 0x34]
xor ebp, ebp
cmp dword [rbx + 0x94], esi
jg 0x14018e40b
mov r9d, r12d
mov dword [rsp + 0x20], ebp
xor r8d, r8d
lea edx, [rbp + 0xb]
mov rcx, rbx
call fcn.1401925a0
jmp 0x14018e43f
lea eax, [rsi + 1]
mov dword [rbx + 0x90], eax
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], VariantTimeToDosDateTime
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rbp
jmp 0x14018e43f
mov r12d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rdi]
call fcn.1401c1d60
movsxd rdx, dword [rbx + 0x90]
mov rsi, rax
mov ebp, dword [rsp + 0x38]
mov r14d, dword [rsp + 0xe0]
cmp dword [rbx + 0x94], edx
jg 0x14018e488
mov r9d, r15d
mov dword [rsp + 0x20], ebp
mov r8d, r14d
mov edx, 0x5b
mov rcx, rbx
call fcn.1401925a0
mov edx, eax
jmp 0x14018e4b9
lea rcx, [rdx + rdx*2]
xor r8d, r8d
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x5b
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r8
mov rcx, qword [rbx]
cmp byte [rcx + 0x61], 0
je 0x14018e4d5
cmp r15d, 0xfffffff4
je 0x14018e533
mov r8, rsi
mov edx, r15d
call fcn.14018f540
jmp 0x14018e533
test edx, edx
jns 0x14018e4e1
mov edx, dword [rbx + 0x90]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rdx, [rax + rcx*8]
test r15d, r15d
jns 0x14018e525
cmp byte [rdx + 1], 0
jne 0x14018e525
cmp r15d, 0xfffffffd
jne 0x14018e50d
mov dword [rdx + 0x10], esi
mov byte [rdx + 1], r15b
jmp 0x14018e533
test rsi, rsi
je 0x14018e533
mov qword [rdx + 0x10], rsi
mov byte [rdx + 1], r15b
cmp r15d, 0xfffffff4
jne 0x14018e533
inc dword [rsi + 0x18]
jmp 0x14018e533
mov r9d, r15d
mov r8, rsi
mov rcx, rbx
call fcn.1401f5e90
movsxd rdx, dword [rbx + 0x90]
mov r8d, dword [rsp + 0x30]
cmp dword [rbx + 0x94], edx
jg 0x14018e562
mov r9d, r12d
mov dword [rsp + 0x20], ebp
mov edx, 0x1e
mov rcx, rbx
call fcn.1401925a0
mov edx, eax
xor r9d, r9d
jmp 0x14018e593
lea rcx, [rdx + rdx*2]
xor r9d, r9d
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x1e
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r12d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rbx]
cmp byte [rax + 0x61], 0
jne 0x14018e5b4
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov byte [rax + rcx*8 + 1], 0xfd
mov dword [rax + rcx*8 + 0x10], r9d
test ebp, ebp
je 0x14018e5cd
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x14018e5cd
movzx eax, al
mov dword [rdi + rax*4 + 0xd4], ebp
inc byte [rdi + 0x1f]
cmp r15d, 1
jne 0x14018e5f0
test r14d, r14d
je 0x14018e5fe
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x14018e5fe
movzx eax, al
mov dword [rdi + rax*4 + 0xd4], r14d
inc byte [rdi + 0x1f]
jmp 0x14018e5fe
cmp r15d, dword [rdi + 0x28]
jle 0x14018e5fe
mov dword [rdi + 0x28], r15d
mov dword [rdi + 0x2c], r14d
mov r14d, dword [rsp + 0x30]
xor r15d, r15d
movzx edx, byte [r13 + 0x2c]
test dl, dl
jne 0x14018e64e
mov rax, qword [rdi]
mov ecx, dword [rax + 0x30]
bt rcx, 0x13
jb 0x14018e64e
cmp qword [rdi + 0xa0], 0
jne 0x14018e64e
cmp byte [rdi + 0x20], dl
jne 0x14018e64e
xor r9d, r9d
mov byte [rsp + 0x28], 4
mov edx, 0x313
mov byte [rsp + 0x20], 0xff
mov rcx, rdi
lea r8d, [r9 + 2]
call fcn.1401c1440
jmp 0x14018e6d3
mov r8d, dword [rsp + 0xd8]
movzx eax, dl
test r8d, r8d
jle 0x14018e679
test dl, dl
jne 0x14018e679
mov rax, qword [rdi + 0xa0]
test rax, rax
cmovne rdi, rax
mov byte [rdi + 0x21], 1
movzx eax, byte [r13 + 0x2c]
movsxd rcx, dword [rbx + 0x90]
movzx edx, al
cmp dword [rbx + 0x94], ecx
jg 0x14018e6a5
mov r9d, r8d
mov dword [rsp + 0x20], r15d
mov r8d, edx
mov rcx, rbx
mov edx, 0x95
call fcn.1401925a0
jmp 0x14018e6d3
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x95
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
mov rcx, qword [rbx + 0x18]
not r12d
mov eax, dword [rcx + 0x48]
add eax, dword [rcx + 0x44]
jns 0x14018e6ef
mov r8d, r12d
mov rdx, rbx
call fcn.1401a1050
jmp 0x14018e6ff
mov rcx, qword [rcx + 0x50]
mov eax, dword [rbx + 0x90]
movsxd rdx, r12d
mov dword [rcx + rdx*4], eax
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x14018e727
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8d, r14d
mov rcx, rbx
lea edx, [r9 + 0x74]
call fcn.1401925a0
jmp 0x14018e755
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov dword [rax + rcx*8], 0x74
mov dword [rax + rcx*8 + 4], r14d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r15
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret