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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x118
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0xf8], rax
mov rsi, qword [rsp + 0x170]
xor r12d, r12d
mov rax, qword [rcx + 0x10]
xorps xmm0, xmm0
mov rbp, qword [rcx]
mov rdi, r8
mov qword [rsp + 0x78], r9
mov r14, r9
mov qword [rsp + 0x48], rdx
mov r8, rdx
mov qword [rsp + 0x38], rcx
mov r15, rcx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x80], r12
movdqu xmmword [rsp + 0xe8], xmm0
test r9, r9
je 0x1800d4d25
cmp dword [r9], 0x40
cmovge r14, r12
mov qword [rsp + 0x78], r14
movzx ecx, word [rsp + 0x178]
mov r9d, 0xfeff
movzx edx, byte [rbp + 0x5c]
and cx, r9w
mov eax, dword [r8]
and dl, 0x10
mov qword [rsp + 0xd8], r14
cmove cx, word [rsp + 0x178]
mov word [rsp + 0x30], cx
cmp eax, 0x40
jle 0x1800d4d78
mov r8d, 0x40
lea rdx, str.at_most__d_tables_in_a_join
mov rcx, r15
call fcn.180050520
xor eax, eax
jmp 0x1800d5319
test cl, 0x20
mov qword [rsp + 0x110], rbx
mov ecx, 1
mov qword [rsp + 0x108], r13
cmovne eax, ecx
mov rcx, rbp
mov dword [rsp + 0x40], eax
imul eax, eax, 0x58
add eax, 0x39f
and eax, 0xfffffff8
movsxd rbx, eax
lea rdx, [rbx + 0x60]
call fcn.18004d230
mov r13, rax
mov qword [rsp + 0x90], rax
cmp byte [rbp + 0x61], r12b
je 0x1800d4e1a
test rax, rax
je 0x1800d5307
cmp qword [rbp + 0x2b0], r12
je 0x1800d4de4
mov rdx, rax
mov rcx, rbp
call fcn.18004ce60
jmp 0x1800d5307
cmp r13, qword [rbp + 0x198]
jb 0x1800d4e0d
cmp r13, qword [rbp + 0x1a0]
jae 0x1800d4e0d
mov rax, qword [rbp + 0x190]
mov qword [r13], rax
mov qword [rbp + 0x190], r13
jmp 0x1800d5307
mov rcx, r13
call sym.SafeBase64.dll_sqlite3_free
jmp 0x1800d5307
movsxd rdx, dword [rsp + 0x40]
lea rcx, [r13 + 0x398]
mov qword [rax], r15
mov rax, qword [rsp + 0x48]
mov qword [r13 + 8], rax
mov qword [r13 + 0x18], rsi
movzx esi, word [rsp + 0x30]
mov qword [r13 + 0x10], r14
mov qword [r13 + 0x20], rdi
mov qword [r13 + 0x2c], 0xffffffffffffffff
mov byte [r13 + 0x42], dl
mov eax, dword [r15 + 0x44]
dec eax
mov dword [r15 + 0x44], eax
mov dword [r13 + 0x34], eax
mov dword [r13 + 0x38], eax
mov eax, dword [rsp + 0x180]
mov word [r13 + 0x28], ax
mov word [r13 + 0x40], si
imul r8, rdx, 0x58
mov dword [rsp + 0x68], eax
xor edx, edx
mov eax, dword [r15 + 0xbc]
add r8, 0x60
mov dword [r13 + 0x3c], eax
xor eax, eax
mov qword [r13 + 0x43], rax
mov qword [r13 + 0x4b], rax
mov qword [r13 + 0x53], rax
mov qword [r13 + 0x5b], rax
mov dword [r13 + 0x63], eax
mov byte [r13 + 0x67], al
call fcn.180113150
lea r9, [r13 + 0x68]
mov word [rbx + r13 + 0x2c], r12w
mov dword [rbx + r13 + 0x28], r12d
lea rcx, [rbx + r13]
lea rax, [rcx + 0x48]
mov qword [rsp + 0xe0], rcx
mov qword [rcx + 0x38], rax
lea rbp, [r13 + 0x290]
mov eax, 3
mov qword [rsp + 0x58], rbp
mov word [rcx + 0x30], ax
mov r8b, 0x2c
mov dword [rbp + 4], r12d
lea rax, [r9 + 0x28]
mov rdx, rdi
mov qword [r9 + 0x20], rax
mov rcx, r9
mov qword [rsp + 0xc8], r13
mov qword [rsp + 0x88], r9
mov qword [rsp + 0xd0], r9
mov qword [r9], r13
mov byte [r9 + 0x11], r12b
mov qword [r9 + 8], r12
mov dword [r9 + 0x14], r12d
mov dword [r9 + 0x18], 8
call fcn.1800cedf0
mov ecx, 0x100
cmp dword [rsp + 0x40], r12d
jne 0x1800d4f69
test r14, r14
je 0x1800d4f44
movzx eax, byte [r14]
mov byte [r13 + 0x43], al
test cx, si
je 0x1800d4f4e
mov byte [r13 + 0x47], 1
lea r8, str.SCAN_CONSTANT_ROW
xor edx, edx
mov rcx, r15
call fcn.1800723e0
mov rax, qword [rsp + 0x48]
jmp 0x1800d50f4
mov r14, qword [rsp + 0x48]
mov r13d, r12d
add r14, 0x28
nop word [rax + rax]
movsxd rcx, dword [rbp + 4]
mov eax, dword [r14 + 0x24]
mov dword [rbp + rcx*4 + 8], eax
inc dword [rbp + 4]
test byte [r14 + 0x20], 4
je 0x1800d50d2
mov rbp, qword [r14 + 0x40]
mov rsi, qword [r14]
test rbp, rbp
je 0x1800d50cd
cmp dword [rbp], 0
mov ebx, r12d
jle 0x1800d50ca
lea r15, [rbp + 8]
nop dword [rax + rax]
movsx ecx, word [rsi + 0x46]
cmp ebx, ecx
jge 0x1800d5253
mov rdx, qword [rsi + 8]
movsxd rax, ebx
shl rax, 5
test byte [rax + rdx + 0x1b], 2
jne 0x1800d4fe4
inc ebx
cmp ebx, ecx
jl 0x1800d4fd0
cmp ebx, ecx
jge 0x1800d5253
mov rcx, qword [rsp + 0x38]
mov edx, 0x48
mov rcx, qword [rcx]
call fcn.18004d230
mov rdi, rax
test rax, rax
je 0x1800d50c5
xor eax, eax
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x30], rax
mov qword [rdi + 0x38], rax
mov qword [rdi + 0x40], rax
mov rax, 0xffffffffffffffff
mov word [rdi + 0x32], ax
mov byte [rdi], 0xa2
mov dword [rdi + 0x28], 1
mov eax, dword [r14 + 0x24]
mov word [rdi + 0x30], bx
inc ebx
mov dword [rdi + 0x2c], eax
mov qword [rdi + 0x40], rsi
mov rdx, qword [r15]
test rdx, rdx
je 0x1800d5072
mov rax, qword [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rax]
call fcn.180089af0
jmp 0x1800d5074
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8, rax
mov edx, 0xa6
call fcn.180089090
mov rcx, qword [rsp + 0x38]
mov r9, rax
mov r8, rdi
mov edx, 0x35
call fcn.180089090
mov rcx, qword [rsp + 0x88]
mov r8d, 1
mov rdx, rax
call fcn.1800ccd60
inc r12d
add r15, 0x28
cmp r12d, dword [rbp]
jl 0x1800d4fc0
mov r15, qword [rsp + 0x38]
xor r12d, r12d
mov rbp, qword [rsp + 0x58]
mov rax, qword [rsp + 0x48]
inc r13d
add r14, 0x70
cmp r13d, dword [rax]
jl 0x1800d4f80
mov r13, qword [rsp + 0x90]
mov r14, qword [rsp + 0x78]
mov ebx, dword [r13 + 0x7c]
lea rcx, [r13 + 0x68]
sub ebx, 1
js 0x1800d5123
mov r8d, ebx
lea rdx, [r13 + 0x68]
mov rcx, rax
call fcn.1800ce0f0
sub ebx, 1
mov rax, qword [rsp + 0x48]
jns 0x1800d5101
mov r14, qword [rsp + 0x78]
lea rcx, [r13 + 0x68]
mov rax, qword [rsp + 0x60]
cmp byte [rax + 0x61], 0
jne 0x1800d52eb
cmp dword [rcx + 0x14], 0
mov esi, r12d
jle 0x1800d5219
mov ebp, dword [rsp + 0x40]
lea rcx, [0x18008adc0]
mov rdi, r12
lea r12, [0x1800d4c80]
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [r13 + 0x88]
add rbx, rdi
test byte [rbx + 0x12], 2
jne 0x1800d51f9
cmp qword [rbx + 0x38], 0
jne 0x1800d51f9
test ebp, ebp
je 0x1800d51d8
mov rdx, qword [rbx]
xor eax, eax
mov qword [rsp + 0xb8], rax
mov byte [rsp + 0xbc], 1
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xa0], r12
mov qword [rsp + 0xa8], rcx
test rdx, rdx
je 0x1800d51d8
lea rcx, [rsp + 0x98]
call fcn.180084f40
cmp byte [rsp + 0xbc], 0
je 0x1800d51f2
mov r8d, dword [r13 + 0x38]
mov r9d, 0x10
mov rdx, qword [rbx]
mov rcx, r15
call fcn.180090080
or word [rbx + 0x12], 4
lea rcx, [0x18008adc0]
inc esi
add rdi, 0x40
cmp esi, dword [r13 + 0x7c]
jl 0x1800d5160
mov r14, qword [rsp + 0x78]
lea rbp, [r13 + 0x290]
lea rcx, [r13 + 0x68]
movzx r12d, word [rsp + 0x30]
mov r15d, 0x100
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x38]
and r12w, r15w
je 0x1800d5285
mov rdx, qword [rsp + 0x48]
mov r8, rcx
mov rcx, rbx
mov r9, rdi
call fcn.1800cf810
test eax, eax
je 0x1800d5272
mov byte [r13 + 0x47], 1
jmp 0x1800d5285
mov r15, qword [rsp + 0x38]
lea rdx, str.too_many_arguments_on__s_____max__d
mov r8, qword [rsi]
mov rcx, r15
mov r9d, r12d
call fcn.180050520
jmp 0x1800d50ca
test r14, r14
jne 0x1800d5285
mov eax, 0x80
mov qword [r13 + 0x10], rdi
or word [r13 + 0x40], ax
mov esi, dword [rsp + 0x40]
cmp esi, 1
jne 0x1800d52a3
lea rcx, [rsp + 0xc8]
call fcn.1800d4aa0
test eax, eax
jne 0x1800d533a
lea rcx, [rsp + 0xc8]
call fcn.1800d3620
test eax, eax
jne 0x1800d52eb
xor edx, edx
mov rcx, r13
call fcn.1800d4110
mov rdx, qword [rsp + 0x60]
cmp byte [rdx + 0x61], 0
jne 0x1800d52eb
cmp qword [r13 + 0x10], 0
je 0x1800d5346
movzx edx, word [r13 + 0x60]
mov rcx, r13
inc dx
call fcn.1800d4110
mov rdx, qword [rsp + 0x60]
cmp byte [rdx + 0x61], 0
je 0x1800d533f
mov rcx, qword [rsp + 0x38]
mov rdx, r13
mov eax, dword [r13 + 0x3c]
mov dword [rcx + 0xbc], eax
mov rcx, qword [rsp + 0x60]
call fcn.1800d0ce0
xor eax, eax
mov rbx, qword [rsp + 0x110]
mov r13, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x118
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rsp + 0x60]
cmp qword [r13 + 0x10], 0
jne 0x1800d535d
mov eax, dword [rdx + 0x30]
bt rax, 0xc
mov rax, 0xffffffffffffffff
jae 0x1800d5364
mov qword [r13 + 0x58], rax
jmp 0x1800d5364
mov rax, 0xffffffffffffffff
cmp dword [rbx + 0x30], 0
jne 0x1800d52eb
cmp byte [rdx + 0x61], 0
jne 0x1800d52eb
cmp byte [r13 + 0x42], 2
mov qword [rsp + 0x58], rax
jb 0x1800d550d
test rdi, rdi
je 0x1800d550d
test word [rdx + 0x5c], r15w
jne 0x1800d550d
mov rdx, rdi
mov rcx, rbp
call fcn.1800cf120
mov rdx, qword [rsp + 0xd8]
mov r15, rax
test rdx, rdx
je 0x1800d53be
mov rcx, rbp
call fcn.1800cf120
or r15, rax
movzx ecx, byte [r13 + 0x42]
lea ebx, [rcx - 1]
cmp ebx, 1
jl 0x1800d5503
mov r14, qword [rsp + 0xd0]
lea rdi, [r13 + 0x3e0]
imul rsi, rcx, 0x58
movsxd rax, ecx
lea rbp, [r13 + 0x398]
dec rax
add rsi, 0x340
imul rax, rax, 0x58
add rsi, r13
add rdi, rax
lea eax, [rbx + 1]
movsxd rcx, eax
imul rax, rcx, 0x58
add rbp, rax
nop dword [rax]
mov r10, qword [rdi]
movzx eax, byte [r10 + 0x10]
imul r11, rax, 0x70
add r11, qword [r13 + 8]
test byte [r11 + 0x44], 8
je 0x1800d54e8
test r12w, r12w
jne 0x1800d543f
test dword [r10 + 0x28], 0x1000
je 0x1800d54e8
mov r9, qword [r10 + 8]
test r15, r9
jne 0x1800d54e8
mov rcx, qword [r14 + 0x20]
movsxd r8, dword [r14 + 0x14]
mov rdx, rcx
shl r8, 6
add r8, rcx
cmp rcx, r8
jae 0x1800d548c
test qword [rdx + 0x38], r9
je 0x1800d547c
mov rax, qword [rdx]
test byte [rax + 4], 1
je 0x1800d5487
movsx eax, word [rax + 0x34]
cmp eax, dword [r11 + 0x4c]
jne 0x1800d5487
add rdx, 0x40
cmp rdx, r8
jb 0x1800d5463
jmp 0x1800d548c
cmp rdx, r8
jb 0x1800d54e8
not r9
and qword [rsp + 0x58], r9
cmp rcx, r8
jae 0x1800d54b8
nop dword [rax]
mov rax, qword [rcx + 0x38]
test qword [r10 + 8], rax
je 0x1800d54af
or word [rcx + 0x12], 4
add rcx, 0x40
cmp rcx, r8
jb 0x1800d54a0
movzx ecx, byte [r13 + 0x42]
lea eax, [rcx - 1]
cmp ebx, eax
je 0x1800d54de
sub ecx, ebx
mov rdx, rbp
dec ecx
imul eax, ecx, 0x58
mov rcx, rsi
movsxd r8, eax
call fcn.180112cb0
movzx ecx, byte [r13 + 0x42]
dec cl
dec dword [rsp + 0x40]
mov byte [r13 + 0x42], cl
dec ebx
sub rbp, 0x58
sub rsi, 0x58
sub rdi, 0x58
cmp ebx, 1
jge 0x1800d5410
mov esi, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x38]
mov rcx, qword [r13]
xor r9d, r9d
movsx eax, word [r13 + 0x60]
movzx r12d, r9w
movzx r8d, word [rsp + 0x30]
mov r10, qword [rsp + 0x48]
add dword [rcx + 0xbc], eax
test r8b, 4
je 0x1800d55a1
mov rax, qword [r13 + 0x3e0]
mov ecx, dword [rax + 0x28]
test ecx, 0x1000
jne 0x1800d556f
mov r12d, r9d
test r8b, 8
je 0x1800d55a1
mov rax, qword [r10 + 0x28]
cmp dword [rax + 0x54], r9d
jne 0x1800d55a1
bt ecx, 0xd
jae 0x1800d5569
movzx r12d, r9w
test r8b, 0x10
je 0x1800d55a1
test ecx, 0x1000
sete al
movzx r12d, r9w
inc al
mov byte [r13 + 0x45], al
mov rax, qword [r10 + 0x28]
test byte [rax + 0x40], 0x20
jne 0x1800d55a1
test cl, 0x40
je 0x1800d55a1
mov rax, qword [r13 + 0x3e0]
and ecx, 0xffffffbf
movzx r12d, r8w
and r12w, 8
mov dword [rax + 0x28], ecx
test esi, esi
jle 0x1800d5781
mov eax, esi
lea r15, [r13 + 0x3e0]
mov qword [rsp + 0x70], rax
jmp 0x1800d55c3
xor r9d, r9d
movzx eax, byte [r15 - 0x1c]
mov edi, 0xfff0bdc0
imul rbp, rax, 0x70
add rbp, r10
mov rsi, qword [rbp + 0x28]
mov rcx, qword [rsi + 0x70]
test rcx, rcx
je 0x1800d55fc
mov rax, qword [rdx + 0x20]
mov edi, r9d
add rax, 0x18
cmp qword [rax], rcx
je 0x1800d55fc
inc edi
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x1800d55f1
test byte [rsi + 0x40], 2
mov r14, qword [r15]
jne 0x1800d596d
cmp qword [rsi + 0x18], 0
jne 0x1800d596d
mov eax, dword [r14 + 0x28]
bt eax, 0xa
jae 0x1800d5897
mov rbx, qword [rsi + 0x60]
test rbx, rbx
je 0x1800d563e
nop dword [rax + rax]
cmp qword [rbx], rdx
je 0x1800d563e
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1800d5630
mov r10, qword [rsp + 0x50]
mov r8d, dword [rbp + 0x4c]
movsxd rdx, dword [r10 + 0x90]
cmp dword [r10 + 0x94], edx
jg 0x1800d5675
mov dword [rsp + 0x20], r9d
mov edx, 0xa3
xor r9d, r9d
mov rcx, r10
call fcn.180071c70
mov r10, qword [rsp + 0x50]
mov edx, eax
jmp 0x1800d56a4
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [r10 + 0x90], eax
mov rax, qword [r10 + 0x88]
mov dword [rax + rcx*8], 0xa3
mov dword [rax + rcx*8 + 4], r8d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [r10]
cmp byte [rax + 0x61], 0
jne 0x1800d56ed
test edx, edx
jns 0x1800d56ba
mov edx, dword [r10 + 0x90]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [r10 + 0x88]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x1800d587e
mov r9d, 0xfffffff4
mov r8, rbx
mov rcx, r10
call fcn.180072f70
mov r10, qword [rsp + 0x50]
movzx r8d, word [rsp + 0x30]
test dword [r14 + 0x28], 0x200
je 0x1800d572f
test byte [rsi + 0x40], 0x20
mov edx, 0x6c
mov rbx, qword [r14 + 0x20]
je 0x1800d5977
mov eax, dword [rbx + 0x64]
and al, 3
cmp al, 2
jne 0x1800d5977
test r8b, 0x20
je 0x1800d5977
mov eax, dword [r15 - 0x44]
mov dword [r15 - 0x40], eax
mov rbx, qword [rsp + 0x38]
test edi, edi
js 0x1800d5761
mov rax, qword [rbx + 0xa0]
mov rcx, rbx
test rax, rax
cmovne rcx, rax
mov eax, dword [rcx + 0x74]
bt eax, edi
jb 0x1800d5761
bts eax, edi
mov dword [rcx + 0x74], eax
cmp edi, 1
jne 0x1800d5761
call fcn.18009f970
mov rdx, qword [rsp + 0x60]
add r15, 0x58
sub qword [rsp + 0x70], 1
movzx r8d, word [rsp + 0x30]
mov r10, qword [rsp + 0x48]
jne 0x1800d55c0
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov eax, dword [r14 + 0x90]
mov dword [r13 + 0x4c], eax
cmp byte [rbp + 0x61], 0
jne 0x1800d52eb
mov r12d, dword [rsp + 0x40]
test r12d, r12d
jle 0x1800d5876
movzx r15d, word [rsp + 0x30]
lea rdi, [r13 + 0x3c4]
nop dword [rax + rax]
mov rax, qword [rdi + 0x1c]
mov rsi, qword [rsp + 0x58]
test dword [rax + 0x28], 0x4000
je 0x1800d5807
movzx eax, byte [rdi]
lea rdx, [rdi - 0x2c]
mov r8, qword [rsp + 0x48]
mov r9, rsi
imul rcx, rax, 0x70
add r8, 8
mov qword [rsp + 0x20], rdx
add r8, rcx
lea rdx, [r13 + 0x68]
mov rcx, rbx
call fcn.1800cfb00
cmp byte [rbp + 0x61], 0
jne 0x1800d52eb
mov rdx, qword [rsp + 0x48]
lea rbx, [rdi - 0x2c]
mov rcx, qword [rsp + 0x38]
mov r8, rbx
movzx r9d, r15w
call fcn.1800c91a0
mov eax, dword [r14 + 0x90]
mov r8, r13
mov qword [rsp + 0x28], rsi
mov rdx, r14
mov rsi, qword [rsp + 0x80]
mov qword [rsp + 0x20], rbx
mov r9d, esi
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
mov dword [rdi - 0xc], eax
call fcn.1800ca8b0
mov ecx, dword [rdi - 0x14]
inc esi
add rdi, 0x58
mov qword [rsp + 0x58], rax
mov dword [r13 + 0x34], ecx
mov qword [rsp + 0x80], rsi
cmp esi, r12d
jl 0x1800d57c0
mov rax, r13
jmp 0x1800d5309
test rbx, rbx
je 0x1800d56ed
mov qword [rdx + 0x10], rbx
mov byte [rdx + 1], 0xf4
inc dword [rbx + 0x18]
jmp 0x1800d56ed
cmp dword [rsi + 0x54], 0
jne 0x1800d596d
test al, 0x40
jne 0x1800d594f
test r8b, 0x20
jne 0x1800d594f
cmp byte [r13 + 0x45], 0
mov ecx, 0x6c
je 0x1800d58cb
mov eax, dword [rbp + 0x4c]
mov ecx, 0x6d
mov dword [r13 + 0x2c], eax
mov edx, dword [rbp + 0x4c]
mov r9, rsi
mov dword [rsp + 0x20], ecx
mov r8d, edi
mov rcx, rbx
call fcn.1800aa110
cmp byte [r13 + 0x45], 0
jne 0x1800d591f
cmp word [rsi + 0x46], 0x40
jge 0x1800d591f
test byte [rsi + 0x40], 0x20
jne 0x1800d591f
mov rax, qword [rbp + 0x60]
xor ecx, ecx
test rax, rax
je 0x1800d5907
nop
inc ecx
shr rax, 1
jne 0x1800d5900
mov rdx, 0xffffffffffffffff
movsxd r8, ecx
mov rcx, qword [rsp + 0x50]
lea r9d, [rdx - 2]
call fcn.180073070
mov r10, qword [rsp + 0x50]
movzx r8d, word [rsp + 0x30]
movsxd rax, dword [r10 + 0x90]
test eax, eax
jle 0x1800d56f3
lea rcx, [rax + rax*2]
mov rax, qword [r10 + 0x88]
mov word [rax + rcx*8 - 0x16], r12w
jmp 0x1800d56f3
mov rax, qword [rsi]
xor r9d, r9d
mov r8d, dword [rsi + 0x38]
mov edx, edi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.180097560
jmp 0x1800d56e8
mov r10, qword [rsp + 0x50]
jmp 0x1800d56f3
cmp byte [r13 + 0x45], 0
je 0x1800d59ac
mov rax, qword [rbp + 0x28]
mov r8d, dword [rsp + 0x68]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1800d59a1
cmp rcx, rbx
je 0x1800d59a1
mov rcx, qword [rcx + 0x28]
inc r8d
test rcx, rcx
jne 0x1800d5990
mov edx, 0x6d
mov dword [r13 + 0x30], r8d
jmp 0x1800d59d4
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x1800d59c4
test r8b, 0x20
je 0x1800d59c4
mov r8d, eax
mov edx, 0x6a
jmp 0x1800d59d7
mov rcx, qword [rsp + 0x38]
mov r8d, dword [rcx + 0x34]
lea eax, [r8 + 1]
mov dword [rcx + 0x34], eax
mov eax, r8d
mov dword [r15 - 0x40], eax
mov rcx, r10
mov r9d, dword [rbx + 0x58]
mov dword [rsp + 0x20], edi
call fcn.180071cd0
mov rdx, rbx
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.180073130
mov eax, dword [r14 + 0x28]
test al, 0xf
je 0x1800d5734
test eax, 0x8002
jne 0x1800d5734
test byte [r13 + 0x40], 1
jne 0x1800d5734
cmp byte [r13 + 0x47], 2
je 0x1800d5734
mov rdx, qword [rsp + 0x50]
movsxd rax, dword [rdx + 0x90]
test eax, eax
jle 0x1800d5734
lea rcx, [rax + rax*2]
mov rax, qword [rdx + 0x88]
mov edx, 2
mov word [rax + rcx*8 - 0x16], dx
jmp 0x1800d5734