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

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x80], 0
mov rax, qword [rsp + 0x130]
mov rax, qword [rax]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x98], 0
mov dword [rsp + 0x60], 0xa4
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x158]
mov dword [rax + 0x2c], 0xffffffff
cmp qword [rsp + 0x138], 0
je 0x1800830ef
mov rax, qword [rsp + 0x150]
mov eax, dword [rax + 0x28]
and eax, 6
test eax, eax
je 0x18008307a
mov qword [rsp + 0x138], 0
jmp 0x1800830ef
mov dword [rsp + 0x48], 0
jmp 0x18008308e
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x28]
cmp dword [rsp + 0x48], eax
jge 0x1800830ef
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 0x20]
mov rdx, qword [rsp + 0x138]
mov rcx, qword [rcx + rax]
call fcn.180039050
test eax, eax
jne 0x1800830ed
movsxd rax, dword [rsp + 0x48]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 0x20]
mov rax, qword [rcx + rax + 0x18]
mov qword [rsp + 0x98], rax
jmp 0x1800830ef
jmp 0x180083084
mov rax, qword [rsp + 0x150]
mov rax, qword [rax + 8]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
je 0x1800834b5
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0xc0]
add rax, 8
mov qword [rsp + 0x50], rax
jmp 0x180083145
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x50]
add rax, 0x70
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc0]
mov eax, dword [rax]
cmp dword [rsp + 0x48], eax
jge 0x180083443
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x28], 0
je 0x18008325c
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x28]
mov eax, dword [rax + 4]
and eax, 0x800
test eax, eax
je 0x18008325c
mov dword [rsp + 0xa0], 0
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x28]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x30], 0
jmp 0x1800831c1
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
cmp dword [rsp + 0x30], eax
jge 0x180083242
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x70]
lea rax, [rcx + rax + 8]
mov r9, qword [rsp + 0x138]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x148]
mov rcx, rax
call fcn.180082d80
test eax, eax
je 0x18008323d
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x4c], 2
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x158]
movzx ecx, word [rsp + 0x30]
mov word [rax + 0x30], cx
mov dword [rsp + 0xa0], 1
jmp 0x1800831b7
cmp dword [rsp + 0xa0], 0
jne 0x180083257
cmp qword [rsp + 0x140], 0
jne 0x18008325c
jmp 0x18008312d
cmp qword [rsp + 0x138], 0
je 0x18008327f
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x98]
cmp qword [rax + 0x70], rcx
je 0x18008327f
jmp 0x18008312d
cmp qword [rsp + 0x140], 0
je 0x180083329
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x18], 0
je 0x1800832ad
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xe8], rax
jmp 0x1800832bd
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x108], rax
mov rdx, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x108]
call fcn.180039050
test eax, eax
je 0x1800832eb
jmp 0x18008312d
mov rax, qword [rsp + 0x130]
movzx eax, byte [rax + 0x114]
cmp eax, 2
jl 0x180083329
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x18], 0
je 0x180083329
mov rax, qword [rsp + 0x158]
add rax, 0x40
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x130]
call fcn.180093370
mov eax, dword [rsp + 0x4c]
mov dword [rsp + 0xd0], eax
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0xd0], 0
jne 0x180083352
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 8]
mov qword [rsp + 0x78], rax
jmp 0x180083382
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x78]
add rax, 0x20
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x40]
movsx eax, word [rax + 0x46]
cmp dword [rsp + 0x30], eax
jge 0x18008343e
mov rdx, qword [rsp + 0x148]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
call fcn.180039050
test eax, eax
jne 0x180083439
cmp dword [rsp + 0x34], 1
jne 0x1800833e7
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x3c]
and eax, 4
test eax, eax
je 0x1800833cb
jmp 0x18008336a
mov rdx, qword [rsp + 0x148]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x50]
call fcn.180082d10
test eax, eax
je 0x1800833e7
jmp 0x18008336a
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x40]
movsx eax, word [rax + 0x44]
cmp dword [rsp + 0x30], eax
jne 0x180083417
mov dword [rsp + 0xa8], 0xffffffff
jmp 0x180083423
movsx eax, word [rsp + 0x30]
mov dword [rsp + 0xa8], eax
mov rax, qword [rsp + 0x158]
movzx ecx, word [rsp + 0xa8]
mov word [rax + 0x30], cx
jmp 0x18008343e
jmp 0x18008336a
jmp 0x18008312d
cmp qword [rsp + 0x58], 0
je 0x1800834b5
mov rax, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x58]
mov ecx, dword [rcx + 0x44]
mov dword [rax + 0x2c], ecx
mov rax, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x20]
mov qword [rax + 0x40], rcx
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 0x3c]
and eax, 8
test eax, eax
je 0x18008349d
mov rax, qword [rsp + 0x158]
mov eax, dword [rax + 4]
bts eax, 0x14
mov rcx, qword [rsp + 0x158]
mov dword [rcx + 4], eax
mov rax, qword [rsp + 0x158]
mov rax, qword [rax + 0x40]
mov rax, qword [rax + 0x70]
mov qword [rsp + 0x98], rax
cmp qword [rsp + 0x138], 0
jne 0x1800838a9
cmp qword [rsp + 0x140], 0
je 0x1800838a9
cmp dword [rsp + 0x4c], 0
jne 0x1800838a9
mov qword [rsp + 0x40], 0
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0xa8], 0
je 0x18008359f
mov rax, qword [rsp + 0x130]
movzx eax, byte [rax + 0xc8]
mov dword [rsp + 0x90], eax
cmp dword [rsp + 0x90], 0x7e
je 0x18008355a
mov rdx, qword [rsp + 0x140]
lea rcx, [0x18012b8ac]
call fcn.180039050
test eax, eax
jne 0x18008355a
mov rax, qword [rsp + 0x158]
mov dword [rax + 0x2c], 1
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0xa8]
mov qword [rsp + 0x40], rax
jmp 0x18008359f
cmp dword [rsp + 0x90], 0x7d
je 0x18008359f
mov rdx, qword [rsp + 0x140]
lea rcx, [0x18012b8dc]
call fcn.180039050
test eax, eax
jne 0x18008359f
mov rax, qword [rsp + 0x158]
mov dword [rax + 0x2c], 0
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0xa8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x150]
mov eax, dword [rax + 0x28]
and eax, 0x200
test eax, eax
je 0x180083618
mov rax, qword [rsp + 0x150]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x100], rax
cmp qword [rsp + 0x100], 0
je 0x180083618
mov rdx, qword [rsp + 0x140]
lea rcx, str.excluded
call fcn.180039050
test eax, eax
jne 0x180083618
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x28]
mov ecx, 0x70
imul rcx, rcx, 0
mov rax, qword [rax + rcx + 0x28]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x158]
mov dword [rax + 0x2c], 2
cmp qword [rsp + 0x40], 0
je 0x1800838a9
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x70]
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0x4c]
inc eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 8]
mov qword [rsp + 0x78], rax
jmp 0x18008366f
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x78]
add rax, 0x20
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x40]
movsx eax, word [rax + 0x46]
cmp dword [rsp + 0x38], eax
jge 0x1800836b2
mov rdx, qword [rsp + 0x148]
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
call fcn.180039050
test eax, eax
jne 0x1800836b0
mov rax, qword [rsp + 0x40]
movsx eax, word [rax + 0x44]
cmp dword [rsp + 0x38], eax
jne 0x1800836ae
mov dword [rsp + 0x38], 0xffffffff
jmp 0x1800836b2
jmp 0x180083657
mov rax, qword [rsp + 0x40]
movsx eax, word [rax + 0x46]
cmp dword [rsp + 0x38], eax
jl 0x1800836eb
mov rcx, qword [rsp + 0x148]
call fcn.18008a7a0
test eax, eax
je 0x1800836eb
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x40]
and eax, 0x200
test eax, eax
jne 0x1800836eb
mov dword [rsp + 0x38], 0xffffffff
mov rax, qword [rsp + 0x40]
movsx eax, word [rax + 0x46]
cmp dword [rsp + 0x38], eax
jge 0x1800838a9
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x158]
cmp dword [rax + 0x2c], 2
jne 0x18008379f
mov rax, qword [rsp + 0x130]
movzx eax, byte [rax + 0x114]
cmp eax, 2
jl 0x18008375a
mov rax, qword [rsp + 0x158]
movzx ecx, word [rsp + 0x38]
mov word [rax + 0x30], cx
mov rax, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x40], rcx
mov dword [rsp + 0x60], 0xa4
jmp 0x18008379a
mov rax, qword [rsp + 0x150]
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x30]
add eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x158]
mov dword [rcx + 0x2c], eax
mov dword [rsp + 0x60], 0xad
mov rax, qword [rsp + 0x158]
mov eax, dword [rax + 4]
bts eax, 0x16
mov rcx, qword [rsp + 0x158]
mov dword [rcx + 4], eax
jmp 0x1800838a9
cmp dword [rsp + 0x38], 0
jge 0x1800837b7
mov rax, qword [rsp + 0x158]
mov byte [rax + 1], 0x44
jmp 0x18008387f
mov rax, qword [rsp + 0x158]
cmp dword [rax + 0x2c], 0
jne 0x180083823
cmp dword [rsp + 0x38], 0x20
jl 0x1800837d9
mov dword [rsp + 0xa4], 0xffffffff
jmp 0x1800837fc
mov eax, dword [rsp + 0x38]
mov ecx, 1
mov dword [rsp + 0xe4], ecx
movzx ecx, al
mov eax, dword [rsp + 0xe4]
shl eax, cl
mov dword [rsp + 0xa4], eax
mov rax, qword [rsp + 0x130]
mov ecx, dword [rsp + 0xa4]
mov eax, dword [rax + 0xc0]
or eax, ecx
mov rcx, qword [rsp + 0x130]
mov dword [rcx + 0xc0], eax
jmp 0x18008387f
cmp dword [rsp + 0x38], 0x20
jl 0x180083837
mov dword [rsp + 0x94], 0xffffffff
jmp 0x18008385a
mov eax, dword [rsp + 0x38]
mov ecx, 1
mov dword [rsp + 0xe0], ecx
movzx ecx, al
mov eax, dword [rsp + 0xe0]
shl eax, cl
mov dword [rsp + 0x94], eax
mov rax, qword [rsp + 0x130]
mov ecx, dword [rsp + 0x94]
mov eax, dword [rax + 0xc4]
or eax, ecx
mov rcx, qword [rsp + 0x130]
mov dword [rcx + 0xc4], eax
mov rax, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x40], rcx
mov rax, qword [rsp + 0x158]
movzx ecx, word [rsp + 0x38]
mov word [rax + 0x30], cx
mov dword [rsp + 0x60], 0x4d
cmp dword [rsp + 0x34], 0
jne 0x18008391c
cmp dword [rsp + 0x4c], 1
jne 0x18008391c
cmp qword [rsp + 0x58], 0
je 0x18008391c
mov rax, qword [rsp + 0x150]
mov eax, dword [rax + 0x28]
and eax, 0x28
test eax, eax
jne 0x18008391c
mov rcx, qword [rsp + 0x148]
call fcn.18008a7a0
test eax, eax
je 0x18008391c
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
mov eax, dword [rax + 0x40]
and eax, 0x200
test eax, eax
jne 0x18008391c
mov dword [rsp + 0x34], 1
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x158]
mov word [rcx + 0x30], ax
mov rax, qword [rsp + 0x158]
mov byte [rax + 1], 0x44
mov rax, qword [rsp + 0x150]
mov eax, dword [rax + 0x28]
and eax, 0x80
test eax, eax
je 0x180083b47
cmp dword [rsp + 0x34], 0
jne 0x180083b47
cmp qword [rsp + 0x140], 0
jne 0x180083b47
mov rax, qword [rsp + 0x150]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x30], 0
jmp 0x180083973
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x70]
mov eax, dword [rax]
cmp dword [rsp + 0x30], eax
jge 0x180083b47
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx + rax + 0x10]
mov qword [rsp + 0xc8], rax
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx + rax + 0x1c]
and eax, 3
test eax, eax
jne 0x180083b42
mov rdx, qword [rsp + 0x148]
mov rcx, qword [rsp + 0xc8]
call fcn.180038ff0
test eax, eax
jne 0x180083b42
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx + rax + 8]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x150]
mov eax, dword [rax + 0x28]
and eax, 1
test eax, eax
jne 0x180083a3e
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 4]
and eax, 0x10
test eax, eax
je 0x180083a3e
mov r8, qword [rsp + 0xc8]
lea rdx, str.misuse_of_aliased_aggregate__s
mov rcx, qword [rsp + 0x130]
call fcn.180038d10
mov eax, 2
jmp 0x180083f50
mov rax, qword [rsp + 0xd8]
mov eax, dword [rax + 4]
and eax, 0x8000
test eax, eax
je 0x180083a9b
mov rax, qword [rsp + 0x150]
mov eax, dword [rax + 0x28]
and eax, 0x4000
test eax, eax
je 0x180083a75
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0x150], rax
je 0x180083a9b
mov r8, qword [rsp + 0xc8]
lea rdx, str.misuse_of_aliased_window_function__s
mov rcx, qword [rsp + 0x130]
call fcn.180038d10
mov eax, 2
jmp 0x180083f50
mov rcx, qword [rsp + 0xd8]
call fcn.180087190
cmp eax, 1
je 0x180083acb
lea rdx, [0x180130380]
mov rcx, qword [rsp + 0x130]
call fcn.180038d10
mov eax, 2
jmp 0x180083f50
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x28], eax
lea rax, [0x180133ef6]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x158]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x130]
call fcn.180082b70
mov dword [rsp + 0x34], 1
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x130]
movzx eax, byte [rax + 0x114]
cmp eax, 2
jl 0x180083b3d
mov r8, qword [rsp + 0x158]
xor edx, edx
mov rcx, qword [rsp + 0x130]
call fcn.180093370
jmp 0x180083ecb
jmp 0x180083969
cmp dword [rsp + 0x34], 0
je 0x180083b50
jmp 0x180083b83
mov rax, qword [rsp + 0x150]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x150], rax
mov eax, dword [rsp + 0x80]
inc eax
mov dword [rsp + 0x80], eax
cmp qword [rsp + 0x150], 0
jne 0x1800830ef
cmp dword [rsp + 0x34], 0
jne 0x180083c1e
cmp qword [rsp + 0x140], 0
jne 0x180083c1e
mov rax, qword [rsp + 0x158]
mov eax, dword [rax + 4]
and eax, 0x40
test eax, eax
je 0x180083c03
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x88]
call fcn.180082f00
test eax, eax
je 0x180083c03
mov r8, qword [rsp + 0x148]
lea rdx, str.double_quoted_string_literal:___w_
mov ecx, 0x1c
call fcn.1800373c0
mov rax, qword [rsp + 0x158]
mov byte [rax], 0x73
mov rax, qword [rsp + 0x158]
mov qword [rax + 0x40], 0
mov eax, 1
jmp 0x180083f50
mov rcx, qword [rsp + 0x158]
call fcn.180089e10
test eax, eax
je 0x180083c1e
mov eax, 1
jmp 0x180083f50
cmp dword [rsp + 0x34], 1
je 0x180083d2b
cmp dword [rsp + 0x34], 0
jne 0x180083c41
lea rax, str.no_such_column
mov qword [rsp + 0xf8], rax
jmp 0x180083c50
lea rax, str.ambiguous_column_name
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0xb8], rax
cmp qword [rsp + 0x138], 0
je 0x180083cab
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x138]
mov r8, qword [rsp + 0xb8]
lea rdx, str._s:__s._s._s
mov rcx, qword [rsp + 0x130]
call fcn.180038d10
jmp 0x180083d0d
cmp qword [rsp + 0x140], 0
je 0x180083ce9
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x140]
mov r8, qword [rsp + 0xb8]
lea rdx, [0x1801303f8]
mov rcx, qword [rsp + 0x130]
call fcn.180038d10
jmp 0x180083d0d
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0xb8]
lea rdx, [0x18012bd6c]
mov rcx, qword [rsp + 0x130]
call fcn.180038d10
mov rax, qword [rsp + 0x130]
mov byte [rax + 0x1d], 1
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x24]
inc eax
mov rcx, qword [rsp + 0x68]
mov dword [rcx + 0x24], eax
mov rax, qword [rsp + 0x158]
movsx eax, word [rax + 0x30]
test eax, eax
jl 0x180083e50
cmp qword [rsp + 0x58], 0
je 0x180083e50
mov rax, qword [rsp + 0x158]
movsx eax, word [rax + 0x30]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x158]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x40]
and eax, 0x60
test eax, eax
je 0x180083e0a
movsxd rax, dword [rsp + 0x64]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xb0]
mov rcx, qword [rcx + 8]
movzx eax, word [rcx + rax + 0x1c]
and eax, 0x60
test eax, eax
je 0x180083e0a
mov rax, qword [rsp + 0xb0]
movsx eax, word [rax + 0x46]
cmp eax, 0x40
jl 0x180083dc5
mov qword [rsp + 0xf0], 0xffffffffffffffff
jmp 0x180083df7
mov rax, qword [rsp + 0xb0]
movsx eax, word [rax + 0x46]
mov ecx, 1
mov qword [rsp + 0x110], rcx
movzx ecx, al
mov rax, qword [rsp + 0x110]
shl rax, cl
dec rax
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0xf0]
mov qword [rax + 0x58], rcx
jmp 0x180083e50
cmp dword [rsp + 0x64], 0x40
jl 0x180083e19
mov dword [rsp + 0x64], 0x3f
mov eax, dword [rsp + 0x64]
mov ecx, 1
mov qword [rsp + 0x118], rcx
movzx ecx, al
mov rax, qword [rsp + 0x118]
shl rax, cl
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x58]
or rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0x58], rax
mov rax, qword [rsp + 0x158]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x88]
call fcn.1800884f0
mov rax, qword [rsp + 0x158]
mov qword [rax + 0x10], 0
mov rax, qword [rsp + 0x158]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rsp + 0x88]
call fcn.1800884f0
mov rax, qword [rsp + 0x158]
mov qword [rax + 0x18], 0
mov rax, qword [rsp + 0x158]
movzx ecx, byte [rsp + 0x60]
mov byte [rax], cl
mov rax, qword [rsp + 0x158]
mov eax, dword [rax + 4]
bts eax, 0x17
mov rcx, qword [rsp + 0x158]
mov dword [rcx + 4], eax
cmp dword [rsp + 0x34], 1
jne 0x180083f4b
mov rax, qword [rsp + 0x158]
mov eax, dword [rax + 4]
and eax, 0x400000
test eax, eax
jne 0x180083f0f
mov rax, qword [rsp + 0x150]
mov r9, qword [rax + 8]
mov r8, qword [rsp + 0x98]
mov rdx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x130]
call fcn.180098af0
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x20]
inc eax
mov rcx, qword [rsp + 0x68]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x150]
cmp qword [rsp + 0x68], rax
jne 0x180083f32
jmp 0x180083f42
mov rax, qword [rsp + 0x68]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x68], rax
jmp 0x180083f0f
mov eax, 1
jmp 0x180083f50
mov eax, 2
add rsp, 0x128
ret