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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc8
mov rsi, qword [rcx + 0x10]
xor r12d, r12d
mov r14, r8
mov rbp, rdx
mov rbx, rcx
xor r15b, r15b
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x5c], r12d
mov dword [rsp + 0x48], r12d
call fcn.180042ca0
mov rdi, qword [rbp + 0x20]
mov rdx, qword [rsp + 0x130]
mov rcx, qword [r14 + 0x20]
mov dword [rsp + 0x78], eax
movsxd rax, dword [rbp + 0x14]
mov rdx, qword [rdx + 0x48]
mov r13d, r12d
mov dword [rsp + 0x110], r12d
mov qword [rsp + 0x68], rcx
movabs r10, 0x8000000000000000
imul rax, rax, 0x38
add rax, rdi
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x70], rax
cmp rdi, rax
jae 0x18001c3e9
lea rcx, [0x180022550]
lea r8, [0x18003a1c0]
nop
cmp qword [rdx], 0
mov rbp, qword [rdi]
jne 0x18001c2ab
test byte [rdi + 0x1c], 2
jne 0x18001c2ab
test byte [rbp + 4], 1
jne 0x18001c2ab
xor eax, eax
mov rdx, rbp
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0xa8], rax
mov eax, dword [r14 + 0x48]
mov qword [rsp + 0x98], rcx
lea rcx, [rsp + 0x90]
mov byte [rsp + 0xb4], 3
mov qword [rsp + 0xa0], r8
mov dword [rsp + 0xb8], eax
call fcn.180088050
cmp byte [rsp + 0xb4], 0
je 0x18001c2a6
mov rcx, qword [rbx]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
call fcn.180021de0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rbx]
mov r8, rax
call fcn.180049010
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x40]
mov eax, dword [r14 + 0x48]
cmp dword [rdi + 0xc], eax
jne 0x18001c3bd
test byte [rdi + 0x1a], 0x82
je 0x18001c3bd
mov rax, qword [rsp + 0x128]
test qword [rdi + 0x28], rax
jne 0x18001c3bd
movsxd rax, dword [rdi + 0x10]
test eax, eax
js 0x18001c3bd
mov rdx, rax
mov rax, qword [r14 + 0x20]
mov rcx, qword [rax + 8]
shl rdx, 5
movzx ebp, byte [rdx + rcx + 0x19]
mov rcx, qword [rdi]
call fcn.18001ba90
movsx ecx, al
sub ecx, 0x41
je 0x18001c322
xor eax, eax
dec ecx
je 0x18001c313
cmp bpl, 0x43
setge al
jmp 0x18001c31a
cmp bpl, 0x42
sete al
test eax, eax
je 0x18001c3b8
movsxd rcx, dword [rdi + 0x10]
cmp ecx, 0x40
jl 0x18001c337
movabs rbp, 0x8000000000000000
jmp 0x18001c33f
mov ebp, 1
shl rbp, cl
test r15b, r15b
jne 0x18001c36f
mov rax, rcx
mov rcx, qword [rsp + 0x68]
lea rdx, str.automatic_index_on__s__s_
mov r9, qword [rcx + 8]
mov r8, qword [rcx]
shl rax, 5
mov r9, qword [rax + r9]
mov ecx, 0x11c
call sym.sqlite3.dll_sqlite3_log
mov r15b, 1
mov rdx, qword [rsp + 0x40]
test r12, rbp
jne 0x18001c3bd
mov rcx, qword [rbx]
lea r14d, [r13 + 1]
mov r8d, r14d
call fcn.18008a900
test eax, eax
jne 0x18001ceb7
mov rdx, qword [rsp + 0x40]
movsxd rcx, r13d
mov dword [rsp + 0x110], r14d
mov rax, qword [rdx + 0x38]
mov r13d, r14d
mov r14, qword [rsp + 0x120]
mov qword [rax + rcx*8], rdi
or r12, rbp
jmp 0x18001c3bd
mov rdx, qword [rsp + 0x40]
add rdi, 0x38
lea rcx, [0x180022550]
lea r8, [0x18003a1c0]
cmp rdi, qword [rsp + 0x70]
jb 0x18001c1f0
mov rcx, qword [rsp + 0x68]
movabs r10, 0x8000000000000000
mov word [rdx + 0x2c], r13w
mov word [rdx + 0x18], r13w
mov dword [rdx + 0x28], 0x4241
movzx edx, word [rcx + 0x3e]
mov r8, qword [r14 + 0x60]
not r12
or r12, r10
mov eax, 0x3f
xor ecx, ecx
and r12, r8
mov qword [rsp + 0x88], r12
cmp ax, dx
jge 0x18001c428
mov r9d, eax
mov dword [rsp + 0x58], eax
jmp 0x18001c436
movsx r9d, dx
mov dword [rsp + 0x58], r9d
test r9d, r9d
jle 0x18001c450
mov eax, ecx
bt r12, rax
jae 0x18001c441
inc r13d
inc ecx
cmp ecx, r9d
jl 0x18001c436
mov dword [rsp + 0x110], r13d
test r10, r8
je 0x18001c467
movsx eax, dx
add r13d, 0xffffffc1
add r13d, eax
mov dword [rsp + 0x110], r13d
mov r8, qword [rbx]
lea ebp, [r13 + 1]
movsx r15, bp
movsx r13d, bp
lea eax, [r15 + r13]
lea ecx, [rax*2 + 9]
lea eax, [r15*8 + 7]
and eax, 0xfffffff8
add ecx, r15d
add eax, 0x68
and ecx, 0xfffffff8
add eax, ecx
movsxd rdi, eax
test r8, r8
je 0x18001c542
cmp dword [r8 + 0x158], 0
jne 0x18001c52b
movzx eax, word [r8 + 0x15c]
cmp rdi, rax
jbe 0x18001c4d4
inc dword [r8 + 0x16c]
mov rdx, rdi
mov rcx, r8
call fcn.18001e2f0
mov r14, rax
jmp 0x18001c59e
mov r14, qword [r8 + 0x178]
test r14, r14
jne 0x18001c4fa
inc dword [r8 + 0x170]
mov rdx, rdi
mov rcx, r8
call fcn.18001e2f0
mov r14, rax
jmp 0x18001c59e
mov rax, qword [r14]
inc dword [r8 + 0x160]
mov qword [r8 + 0x178], rax
inc dword [r8 + 0x168]
mov eax, dword [r8 + 0x160]
cmp eax, dword [r8 + 0x164]
jle 0x18001c59e
mov dword [r8 + 0x164], eax
jmp 0x18001c59e
cmp byte [r8 + 0x55], 0
jne 0x18001c59b
mov rdx, rdi
mov rcx, r8
call fcn.18001e2f0
mov r14, rax
jmp 0x18001c59e
lea rax, [rdi - 1]
cmp rax, 0x7ffffefe
ja 0x18001c59b
cmp dword [0x1800bce70], 0
je 0x18001c58e
mov rcx, qword [0x1800bf700]
test rcx, rcx
je 0x18001c569
call qword [0x1800bcef8]
lea rdx, [rsp + 0x60]
mov ecx, edi
call fcn.18002c170
mov rcx, qword [0x1800bf700]
test rcx, rcx
je 0x18001c587
call qword [0x1800bcf08]
mov r14, qword [rsp + 0x60]
jmp 0x18001c59e
mov ecx, edi
call qword [0x1800bce98]
mov r14, rax
jmp 0x18001c59e
xor r14d, r14d
test r14, r14
je 0x18001ceb7
mov r8, rdi
xor edx, edx
mov rcx, r14
call fcn.180092be0
mov r11, qword [rsp + 0x68]
mov word [r14 + 0x60], bp
lea rax, [r15*8 + 7]
dec bp
lea rdx, [r14 + 0x68]
and rax, 0xfffffffffffffff8
mov qword [r14 + 0x40], rdx
mov word [r14 + 0x5e], bp
mov rbp, qword [rsp + 0x118]
add rdx, rax
lea eax, [r13 + 1]
movsxd rcx, eax
mov qword [r14 + 0x10], rdx
xor r12d, r12d
lea rax, [rdx + rcx*2]
mov qword [r14 + 8], rax
lea rax, [rax + r15*2]
lea r15, [0x1800a0dbc]
mov qword [r14 + 0x38], rax
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x20], r14
lea rax, str.auto_index
mov qword [r14 + 0x18], r11
mov qword [r14], rax
mov rdi, qword [rbp + 0x20]
cmp rdi, qword [rsp + 0x70]
jae 0x18001c778
mov rcx, qword [rsp + 0x120]
xor r15d, r15d
mov esi, r12d
xor r13d, r13d
mov eax, dword [rcx + 0x48]
cmp dword [rdi + 0xc], eax
jne 0x18001c74d
test byte [rdi + 0x1a], 0x82
je 0x18001c74d
mov rax, qword [rsp + 0x128]
test qword [rdi + 0x28], rax
jne 0x18001c74d
movsxd rax, dword [rdi + 0x10]
test eax, eax
js 0x18001c74d
mov rdx, rax
mov rax, qword [rcx + 0x20]
mov rcx, qword [rax + 8]
shl rdx, 5
movzx ebp, byte [rdx + rcx + 0x19]
mov rcx, qword [rdi]
call fcn.18001ba90
movsx ecx, al
sub ecx, 0x41
je 0x18001c6b7
xor eax, eax
dec ecx
je 0x18001c6a8
cmp bpl, 0x43
setge al
jmp 0x18001c6af
cmp bpl, 0x42
sete al
test eax, eax
je 0x18001c745
mov ecx, dword [rdi + 0x10]
cmp ecx, 0x40
jl 0x18001c6cb
movabs rax, 0x8000000000000000
jmp 0x18001c6d3
mov eax, 1
shl rax, cl
test rsi, rax
jne 0x18001c745
mov rdx, qword [rdi]
mov rcx, qword [r14 + 8]
or rsi, rax
movzx eax, word [rdi + 0x10]
mov word [r13 + rcx], ax
mov rbp, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x10]
test dword [rdx + 4], 0x100
jne 0x18001c71b
test rbp, rbp
je 0x18001c70b
test dword [rbp + 4], 0x100
jne 0x18001c718
mov rcx, rbx
call fcn.18004bd90
test rax, rax
jne 0x18001c72f
mov rdx, rbp
mov rcx, rbx
call fcn.18004bd90
lea rcx, [0x1800a0dbc]
test rax, rax
je 0x18001c732
mov rcx, qword [rax]
mov rax, qword [r14 + 0x40]
inc r12d
add r13, 2
mov qword [r15 + rax], rcx
add r15, 8
mov rcx, qword [rsp + 0x120]
add rdi, 0x38
cmp rdi, qword [rsp + 0x70]
jb 0x18001c641
mov rsi, qword [rsp + 0x80]
mov r11, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x118]
lea r15, [0x1800a0dbc]
mov r9d, dword [rsp + 0x58]
xor ecx, ecx
test r9d, r9d
jle 0x18001c7cd
mov r10, qword [rsp + 0x88]
movsxd rax, r12d
lea rdx, [rax*8]
lea r8, [rax + rax]
nop dword [rax + rax]
mov eax, ecx
bt r10, rax
jae 0x18001c7c6
mov rax, qword [r14 + 8]
inc r12d
add r8, 2
mov word [r8 + rax - 2], cx
mov rax, qword [r14 + 0x40]
add rdx, 8
mov qword [rdx + rax - 8], r15
inc ecx
cmp ecx, r9d
jl 0x18001c7a0
mov rax, qword [rsp + 0x120]
movabs rcx, 0x8000000000000000
test qword [rax + 0x60], rcx
je 0x18001c82b
mov r8d, 0x3f
cmp r8w, word [r11 + 0x3e]
jge 0x18001c82b
movsxd rax, r12d
lea rcx, [rax*8]
lea rdx, [rax + rax]
mov rax, qword [r14 + 8]
inc r12d
lea rdx, [rdx + 2]
mov word [rdx + rax - 2], r8w
mov rax, qword [r14 + 0x40]
inc r8d
mov qword [rcx + rax], r15
movsx eax, word [r11 + 0x3e]
lea rcx, [rcx + 8]
cmp r8d, eax
jl 0x18001c801
mov rax, qword [r14 + 8]
or edx, 0xffffffff
movsxd rcx, r12d
mov word [rax + rcx*2], dx
mov rax, qword [r14 + 0x40]
mov edx, dword [rsp + 0x110]
mov qword [rax + rcx*8], r15
mov eax, dword [rbx + 0x54]
mov r15, qword [rsp + 0x130]
mov dword [r15 + 8], eax
inc dword [rbx + 0x54]
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
mov r8d, dword [r15 + 8]
inc edx
cmp dword [rax + 0x64], ecx
jg 0x18001c887
mov r9d, edx
mov rcx, rsi
mov edx, 0x69
mov dword [rsp + 0x20], 0
call fcn.1800296a0
jmp 0x18001c8ba
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov word [rax + rcx*8], 0x69
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], 0
mov qword [rax + rcx*8 + 0x10], 0
mov rdi, qword [rbx + 0x10]
mov rdx, r14
mov rcx, rbx
call fcn.180055e10
mov rcx, qword [rdi]
cmp byte [rcx + 0x55], 0
mov r8, rax
je 0x18001c8e1
mov edx, 0xfffffffa
call fcn.1800264a0
jmp 0x18001c91c
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
mov rax, qword [rdi + 8]
cmp byte [rax + rdx*8 + 1], 0
lea r10, [rax + rdx*8]
je 0x18001c90e
mov r9d, 0xfffffffa
mov rdx, r10
mov rcx, rdi
call fcn.1800816e0
jmp 0x18001c91c
test r8, r8
je 0x18001c91c
mov qword [r10 + 0x10], r8
mov byte [r10 + 1], 0xfa
inc dword [rbx + 0x78]
movzx eax, byte [r15 + 0x2c]
imul r13, rax, 0x78
mov rax, qword [rbp]
add r13, qword [rax + 8]
mov rax, qword [rsi + 0x30]
test byte [r13 + 0x48], 0x10
je 0x18001ca48
movsxd r8, dword [rsi + 0x3c]
mov ebp, dword [r13 + 0x3c]
mov dword [rsp + 0x48], r8d
cmp dword [rax + 0x64], r8d
jg 0x18001c975
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0x4b]
mov dword [rsp + 0x20], 0
call fcn.1800296a0
xor r8d, r8d
mov dword [rsp + 0x48], eax
jmp 0x18001c9a1
lea rcx, [r8 + r8*2]
lea eax, [r8 + 1]
xor r8d, r8d
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov word [rax + rcx*8], 0x4b
mov byte [rax + rcx*8 + 3], 0
mov qword [rax + rcx*8 + 4], r8
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r8
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
mov edx, dword [r13 + 0x38]
cmp dword [rax + 0x64], ecx
jg 0x18001c9cd
xor r9d, r9d
mov dword [rsp + 0x20], edx
mov r8d, ebp
lea edx, [r9 + 0xf]
mov rcx, rsi
call fcn.1800296a0
xor r8d, r8d
jmp 0x18001c9f8
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov word [rax + rcx*8], 0xf
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r8
mov rax, qword [rsi + 0x30]
movsxd rdi, dword [rsi + 0x3c]
cmp dword [rax + 0x64], edi
jg 0x18001ca20
xor r9d, r9d
mov dword [rsp + 0x20], r8d
mov rcx, rsi
lea edx, [r9 + 0x10]
mov r8d, ebp
call fcn.1800296a0
mov edi, eax
jmp 0x18001ca9c
lea rcx, [rdi + rdi*2]
lea eax, [rdi + 1]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov word [rax + rcx*8], 0x10
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r8
jmp 0x18001ca97
movsxd rdi, dword [rsi + 0x3c]
mov edx, dword [r15 + 4]
cmp dword [rax + 0x64], edi
jg 0x18001ca73
xor r9d, r9d
mov r8d, edx
mov rcx, rsi
lea edx, [r9 + 0x38]
mov dword [rsp + 0x20], 0
call fcn.1800296a0
mov edi, eax
jmp 0x18001ca9c
lea rcx, [rdi + rdi*2]
lea eax, [rdi + 1]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov dword [rax + rcx*8 + 4], edx
xor edx, edx
mov word [rax + rcx*8], 0x38
mov qword [rax + rcx*8 + 8], rdx
mov qword [rax + rcx*8 + 0x10], rdx
mov byte [rax + rcx*8 + 3], 0
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x18001cb30
mov r15, qword [rsi + 0x30]
movsxd rbp, dword [r15 + 0x80]
lea eax, [rbp + 1]
mov dword [r15 + 0x80], eax
lea eax, [rbp - 1]
test ebp, eax
jne 0x18001caef
mov rdx, qword [r15 + 0x88]
mov rcx, qword [r15]
lea eax, [rbp*2 + 1]
movsxd r8, eax
shl r8, 2
call fcn.180046460
mov rdx, qword [rsp + 0x50]
mov qword [r15 + 0x88], rax
mov rcx, qword [r15 + 0x88]
test rcx, rcx
je 0x18001cb02
mov dword [rcx + rbp*4], 0xffffffff
or eax, 0xffffffff
mov r9d, 0x10
mov rcx, rbx
sub eax, ebp
mov r8d, eax
mov dword [rsp + 0x5c], eax
call fcn.18004c2d0
mov rax, qword [rsp + 0x40]
mov r15, qword [rsp + 0x130]
or dword [rax + 0x28], 0x20000
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x18001cb40
inc dword [rbx + 0x58]
mov ebp, dword [rbx + 0x58]
jmp 0x18001cb4c
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov ebp, dword [rbx + rax*4 + 0x28]
mov r8d, dword [r15 + 4]
xor eax, eax
mov r9d, ebp
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov rdx, r14
mov rcx, rbx
mov dword [rsp + 0x20], eax
call fcn.1800518a0
mov rcx, qword [rsi + 0x30]
mov r9, qword [rsp + 0x130]
movsxd rdx, dword [rsi + 0x3c]
mov r8d, dword [r9 + 8]
mov r15d, eax
cmp dword [rcx + 0x64], edx
jg 0x18001cbb3
mov r9d, ebp
mov edx, 0x7d
mov rcx, rsi
mov dword [rsp + 0x20], 0
call fcn.1800296a0
mov r9, qword [rsp + 0x130]
xor r11d, r11d
jmp 0x18001cbe2
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
xor r11d, r11d
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov word [rax + rcx*8], 0x7d
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], r11d
mov qword [rax + rcx*8 + 0x10], r11
mov rax, qword [rsi]
cmp byte [rax + 0x55], 0
jne 0x18001cbfc
movsxd rax, dword [rsi + 0x3c]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 - 0x15], 0x10
cmp qword [rsp + 0x50], 0
je 0x18001cc31
mov rdx, qword [rsi + 0x30]
mov rcx, qword [rdx + 0x88]
test rcx, rcx
je 0x18001cc29
movsxd rax, dword [rsp + 0x5c]
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rsi + 0x3c]
mov dword [rcx], eax
mov eax, dword [rsi + 0x3c]
dec eax
mov dword [rdx + 0x6c], eax
test byte [r13 + 0x48], 0x10
lea r14, [0x1800bf8b8]
je 0x18001cd57
mov ecx, dword [rsp + 0x48]
test ecx, ecx
jns 0x18001cc50
mov ecx, dword [rsi + 0x3c]
dec ecx
mov rax, qword [rsi]
cmp byte [rax + 0x55], 0
je 0x18001cc5e
mov rcx, r14
jmp 0x18001cc6d
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea rcx, [rax + rcx*8]
lea eax, [r15 + r12]
mov dword [rcx + 8], eax
mov r10d, dword [r13 + 0x40]
mov r9d, dword [r9 + 4]
mov ecx, edi
test edi, edi
jns 0x18001cc87
mov ecx, dword [rsi + 0x3c]
dec ecx
mov rax, qword [rsi]
cmp byte [rax + 0x55], 0
je 0x18001cc95
mov rdx, r14
jmp 0x18001cca4
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea rdx, [rax + rcx*8]
mov eax, dword [rsi + 0x3c]
cmp edi, eax
jge 0x18001ccf6
add rdx, 4
sub eax, edi
mov r8d, eax
cmp dword [rdx], r9d
jne 0x18001cced
movzx eax, byte [rdx - 4]
cmp al, 0x5f
jne 0x18001ccd9
mov ecx, dword [rdx + 4]
mov eax, dword [rdx + 8]
mov byte [rdx - 4], 0x53
add ecx, r10d
mov dword [rdx + 4], eax
mov dword [rdx + 8], r11d
mov dword [rdx], ecx
jmp 0x18001cced
cmp al, 0x7a
jne 0x18001cced
mov eax, dword [rdx + 4]
mov byte [rdx - 4], 0x5a
mov dword [rdx + 4], 1
mov dword [rdx], eax
add rdx, 0x18
dec r8
jne 0x18001ccb4
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
cmp dword [rax + 0x64], ecx
jg 0x18001cd24
xor r8d, r8d
mov r9d, edi
mov rcx, rsi
lea edx, [r8 + 0xd]
mov dword [rsp + 0x20], r11d
call fcn.1800296a0
and dword [r13 + 0x48], 0xffffffef
jmp 0x18001cdae
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov word [rax + rcx*8], 0xd
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r11d
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], r11d
mov qword [rax + rcx*8 + 0x10], r11
and dword [r13 + 0x48], 0xffffffef
jmp 0x18001cdae
mov rax, qword [rsi + 0x30]
movsxd rcx, dword [rsi + 0x3c]
mov r8d, dword [r9 + 4]
lea edx, [rdi + 1]
cmp dword [rax + 0x64], ecx
jg 0x18001cd82
mov r9d, edx
mov rcx, rsi
mov edx, 7
mov dword [rsp + 0x20], r11d
call fcn.1800296a0
jmp 0x18001cdae
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0x3c], eax
mov rax, qword [rsi + 8]
mov word [rax + rcx*8], 7
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r11d
mov qword [rax + rcx*8 + 0x10], r11
mov rax, qword [rsi]
cmp byte [rax + 0x55], 0
jne 0x18001cdc8
movsxd rax, dword [rsi + 0x3c]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
mov byte [rax + rcx*8 - 0x15], 3
mov ecx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
dec ecx
mov dword [rax + 0x6c], ecx
mov edx, dword [rsi + 0x3c]
test edi, edi
jns 0x18001cdde
lea edi, [rdx - 1]
mov rax, qword [rsi]
cmp byte [rax + 0x55], 0
je 0x18001cdec
mov rax, r14
jmp 0x18001cdfb
movsxd rax, edi
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea rax, [rax + rcx*8]
xor r9d, r9d
mov dword [rax + 8], edx
test ebp, ebp
je 0x18001ce38
movzx edx, byte [rbx + 0x1f]
cmp dl, 8
jae 0x18001ce38
mov ecx, r9d
lea rax, [rbx + 0x90]
cmp dword [rax + 0xc], ebp
je 0x18001ce34
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x18001ce18
movzx eax, dl
mov dword [rbx + rax*4 + 0x28], ebp
inc byte [rbx + 0x1f]
jmp 0x18001ce38
mov byte [rax + 6], 1
dec dword [rbx + 0x78]
lea rcx, [rbx + 0x9c]
mov r8d, 0xa
mov edx, dword [rcx]
test edx, edx
je 0x18001ce78
mov eax, dword [rbx + 0x78]
cmp dword [rcx - 4], eax
jle 0x18001ce78
cmp byte [rcx - 6], 0
je 0x18001ce72
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x18001ce6e
movzx eax, al
mov dword [rbx + rax*4 + 0x28], edx
inc byte [rbx + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], r9d
dec byte [rbx + 0x25]
add rcx, 0x14
dec r8
jne 0x18001ce48
mov ecx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
dec ecx
mov dword [rax + 0x6c], ecx
mov ecx, dword [rsp + 0x78]
mov edx, dword [rsi + 0x3c]
test ecx, ecx
jns 0x18001ce9b
lea ecx, [rdx - 1]
mov rax, qword [rsi]
cmp byte [rax + 0x55], 0
jne 0x18001ceb3
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea r14, [rax + rcx*8]
mov dword [r14 + 8], edx
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x18001cecc
mov rcx, qword [rbx]
mov rdx, rax
call fcn.18004c0f0
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret