Function at 0x18022a760
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x498]
sub rsp, 0x570
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1804cd010]
xor rax, rsp
mov qword [rbp + 0x460], rax
xor r12d, r12d
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov r14, rax
test rax, rax
je 0x18022aaff
mov edx, 0x461
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rsi, rax
test rax, rax
je 0x18022aaff
mov rdi, qword [0x1804de998]
mov rbx, qword [0x1804de990]
cmp rbx, rdi
je 0x18022a7f8
mov rcx, rbx
call fcn.180004e20
add rbx, 0x20
cmp rbx, rdi
jne 0x18022a7e0
mov rbx, qword [0x1804de990]
mov qword [0x1804de998], rbx
mov edx, 1
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rbx, rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1032
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov r15, rax
test eax, eax
jne 0x18022ab09
mov rdx, r14
lea rcx, [rbp - 0x28]
call fcn.18022cae0
nop
mov r8, qword [rbp - 0x18]
cmp r8, 2
jb 0x18022a8be
lea rax, [rbp - 0x28]
mov rcx, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax], 0x5c
jne 0x18022a877
lea rax, [rbp - 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + 2], 0x5c
je 0x18022a95b
lea rax, [rbp - 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + 2], 0x3a
jne 0x18022a8be
cmp r8, 2
jbe 0x18022a8be
lea rax, [rbp - 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + 4], 0x2f
je 0x18022a95b
lea rax, [rbp - 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + 4], 0x5c
je 0x18022a95b
lea r8, [rbp - 0x28]
lea rdx, [0x1804cf850]
lea rcx, [rbp + 0x18]
call fcn.18015aff0
mov rbx, rax
lea rax, [rbp - 0x28]
cmp rax, rbx
je 0x18022a906
lea rcx, [rbp - 0x28]
call fcn.180004e20
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x18], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
jb 0x18022a949
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022a944
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022a944
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
movdqa xmm0, xmmword [0x1803e8770]
movdqu xmmword [rbp + 0x28], xmm0
mov word [rbp + 0x18], r12w
lea rcx, [rbp - 0x28]
cmp byte [0x1804de0c7], 0
je 0x18022aa15
call fcn.1801561c0
test al, al
je 0x18022aaab
lea rcx, [rbp - 0x28]
call fcn.18022cbd0
mov rax, qword [0x1804de998]
cmp qword [0x1804de9a0], rax
je 0x18022a9a8
lea rdx, [rbp - 0x28]
mov rcx, rax
call fcn.180004ad0
add qword [0x1804de998], 0x20
jmp 0x18022a9bc
lea r8, [rbp - 0x28]
mov rdx, rax
lea rcx, [0x1804de990]
call fcn.180009160
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x18022a9ff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022a9fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022a9fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
jmp 0x18022b701
call fcn.180155f30
test al, al
je 0x18022aaab
lea rcx, [rbp - 0x28]
call fcn.18022cbd0
mov rax, qword [0x1804de998]
cmp qword [0x1804de9a0], rax
je 0x18022aa51
lea rdx, [rbp - 0x28]
mov rcx, rax
call fcn.180004ad0
add qword [0x1804de998], 0x20
jmp 0x18022aa65
lea r8, [rbp - 0x28]
mov rdx, rax
lea rcx, [0x1804de990]
call fcn.180009160
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x18022a9ff
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022a9fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022a9fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x18022aaee
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022aae9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022aae9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
mov eax, 1
jmp 0x18022b703
lea rdx, [0x1804cf850]
lea rcx, [rbp - 8]
call fcn.180004ad0
nop
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x18022ab9c
lea rax, [rbp - 8]
mov r8, qword [rbp - 8]
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
cmovae rax, r8
cmp word [rax + rcx*2 - 2], 0x5c
je 0x18022ab9c
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x18022ab7c
lea rsi, [rcx + 1]
mov qword [rbp + 8], rsi
lea rdi, [rbp - 8]
cmp rdx, 8
cmovae rdi, r8
lea rcx, [rdi + rcx*2]
mov r8d, 2
lea rdx, [0x1803c2840]
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rsi*2], r12w
jmp 0x18022ab9c
mov qword [rsp + 0x20], 1
lea r9, [0x1803c2840]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp - 8]
call fcn.180009e30
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x40]
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp + 0x40]
mov edx, 0x464
mov r8d, 0x104
mov rcx, r14
call qword [sym.imp.USER32.dll_SendMessageW]
mov word [rbp + 0x248], r12w
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x48]
call fcn.180004ad0
nop
lea rax, [rbp + 0x40]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x18022abe6
mov rcx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x30]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x18022ac30
lea rsi, [rcx + rdx]
mov qword [rbp - 0x38], rsi
lea rdi, [rbp - 0x48]
cmp r8, 8
cmovae rdi, qword [rbp - 0x48]
lea r8, [rdx + rdx]
lea rcx, [rdi + rcx*2]
lea rdx, [rbp + 0x40]
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rsi*2], r12w
jmp 0x18022ac45
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x40]
xor r8d, r8d
lea rcx, [rbp - 0x48]
call fcn.180009e30
cmp r15d, 1
jne 0x18022aee8
cmp word [rbp + 0x40], 0
je 0x18022aee8
lea rcx, [rbp - 0x48]
call fcn.18022cbd0
mov rax, qword [0x1804de998]
cmp qword [0x1804de9a0], rax
je 0x18022ac93
lea rdx, [rbp - 0x48]
mov rcx, rax
call fcn.180004ad0
mov rax, qword [0x1804de998]
add rax, 0x20
mov qword [0x1804de998], rax
jmp 0x18022acad
lea r8, [rbp - 0x48]
mov rdx, rax
lea rcx, [0x1804de990]
call fcn.180009160
mov rax, qword [0x1804de998]
cmp byte [0x1804de0c7], 0
je 0x18022aee8
mov rcx, qword [0x1804de990]
cmp rcx, rax
jne 0x18022ad7c
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x18022ad0d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022ad08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022ad08
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x18022ad61
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022ad5c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022ad5c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r12w
mov eax, 1
jmp 0x18022b703
cmp qword [rcx + 0x18], 8
jb 0x18022ad86
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18022ae4a
test al, 0x10
je 0x18022ae4a
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x18022ade0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022addb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022addb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x18022ae34
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022ae2f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022ae2f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r12w
jmp 0x18022b701
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x18022ae8d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022ae88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022ae88
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x18022ad61
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022ad5c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022ad5c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x40], r12
cmp r15d, 1
jle 0x18022b5fc
mov edx, 0x100c
mov r9d, 2
lea r8, [r9 - 3]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdi, rax
nop dword [rax]
dec r15d
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x250]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x6c], r12
mov dword [rsp + 0x74], r12d
mov qword [rbp - 0x7c], r12
mov qword [rbp - 0x74], r12
mov qword [rbp - 0x6c], r12
mov qword [rbp - 0x64], r12
mov dword [rbp - 0x5c], r12d
mov dword [rsp + 0x68], r12d
mov dword [rbp - 0x80], 0x104
lea rax, [rbp + 0x250]
mov qword [rsp + 0x78], rax
movsxd r14, edi
lea r9, [rsp + 0x60]
mov r8, r14
mov edx, 0x1073
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
lea rcx, [rbp - 0x48]
test eax, eax
jle 0x18022afa7
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rdx, qword [rbp - 8]
mov r8, qword [rbp + 8]
jmp 0x18022afb1
xor r8d, r8d
lea rdx, [0x1803c0558]
call fcn.180004ea0
mov word [rbp + 0x458], r12w
lea rax, [rbp + 0x250]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x18022afd0
mov rcx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x30]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x18022b01d
lea rsi, [rcx + rdx]
mov qword [rbp - 0x38], rsi
lea rdi, [rbp - 0x48]
cmp r8, 8
cmovae rdi, qword [rbp - 0x48]
lea r8, [rdx + rdx]
lea rcx, [rdi + rcx*2]
lea rdx, [rbp + 0x250]
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rsi*2], r12w
jmp 0x18022b035
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x250]
xor r8d, r8d
lea rcx, [rbp - 0x48]
call fcn.180009e30
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18022b0c9
test al, 0x10
je 0x18022b0c9
lea rcx, [rbp - 0x48]
cmp byte [0x1804de0c7], 0
jne 0x18022b08b
call fcn.18022cbd0
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x40], rax
je 0x18022b084
lea rdx, [rbp - 0x48]
mov rcx, rax
call fcn.180004ad0
add qword [rsp + 0x38], 0x20
jmp 0x18022b0c9
lea rcx, [rsp + 0x30]
jmp 0x18022b0bd
call fcn.18022cbd0
mov rax, qword [0x1804de998]
cmp qword [0x1804de9a0], rax
je 0x18022b0b6
lea rdx, [rbp - 0x48]
mov rcx, rax
call fcn.180004ad0
add qword [0x1804de998], 0x20
jmp 0x18022b0c9
lea rcx, [0x1804de990]
lea r8, [rbp - 0x48]
mov rdx, rax
call fcn.180009160
mov r9d, 2
mov r8, r14
mov edx, 0x100c
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
test r15d, r15d
jg 0x18022af20
cmp byte [0x1804de0c7], 0
je 0x18022b32e
mov rax, qword [0x1804de998]
cmp qword [0x1804de990], rax
mov rbx, qword [rsp + 0x30]
je 0x18022b21e
test rbx, rbx
je 0x18022b180
mov rdi, qword [rsp + 0x38]
cmp rbx, rdi
je 0x18022b136
mov rcx, rbx
call fcn.180004e20
add rbx, 0x20
cmp rbx, rdi
jne 0x18022b120
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x18022b16a
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022b16a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180388460
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x18022b1c3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022b1be
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022b1be
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x18022ae34
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022ae2f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022ae2f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test rbx, rbx
je 0x18022b290
mov rdi, qword [rsp + 0x38]
cmp rbx, rdi
je 0x18022b246
nop dword [rax]
mov rcx, rbx
call fcn.180004e20
add rbx, 0x20
cmp rbx, rdi
jne 0x18022b230
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x18022b27a
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022b27a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180388460
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x18022b2d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022b2ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022b2ce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x18022ad61
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022ad5c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022ad5c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor r8d, r8d
lea rdx, [0x1803c0558]
lea rcx, [rbp - 0x48]
call fcn.180004ea0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1032
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
mov r15d, eax
mov rax, qword [0x1804de998]
sub rax, qword [0x1804de990]
sar rax, 5
cmp r15d, eax
jg 0x18022b3e1
lea rcx, [rsp + 0x30]
call fcn.180004d30
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x18022b3bd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022b3b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022b3b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
lea rcx, [rbp - 8]
call fcn.180004e20
mov eax, 1
jmp 0x18022b703
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
lea rax, [rbp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x18022b405
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x28]
call fcn.180004ea0
nop
lea rdx, [rbp - 0x28]
mov rdi, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x10]
cmp rsi, 8
cmovae rdx, rdi
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x18022b455
mov rcx, rbx
mov rax, rdx
cmp word [rax], 0x22
je 0x18022b4d7
add rax, 2
sub rcx, 1
jne 0x18022b441
mov rax, 0xffffffffffffffff
cmp eax, 0xffffffff
je 0x18022b5ad
mov eax, dword [rbp - 0x18]
test eax, eax
jle 0x18022b5f3
mov rbx, r12
mov r14d, eax
nop word [rax + rax]
lea rax, [rbp - 0x28]
cmp rsi, 8
cmovae rax, rdi
cmp word [rax + rbx*2], 0x22
je 0x18022b546
lea rax, [rbp - 0x28]
cmp rsi, 8
cmovae rax, rdi
movzx r9d, word [rax + rbx*2]
mov rcx, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
cmp rcx, rdx
jae 0x18022b4eb
lea rax, [rcx + 1]
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x48]
cmp rdx, 8
cmovae rax, qword [rbp - 0x48]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r12w
jmp 0x18022b4f4
test rax, rax
je 0x18022b455
sub rax, rdx
sar rax, 1
jmp 0x18022b45c
lea rcx, [rbp - 0x48]
call fcn.1800328a0
cmp rbx, 1
jl 0x18022b59e
lea rax, [rbp - 0x28]
cmp rsi, 8
cmovae rax, rdi
cmp word [rax + rbx*2 - 2], 0x22
jne 0x18022b59e
lea rax, [rbp - 0x28]
cmp rsi, 8
cmovae rax, rdi
cmp word [rax + rbx*2], 0x20
jne 0x18022b59e
mov rdx, qword [rbp - 0x38]
test rdx, rdx
je 0x18022b59e
dec rdx
mov r8d, 1
lea rcx, [rbp - 0x48]
call fcn.1800f15f0
jmp 0x18022b59e
cmp qword [rbp - 0x38], 0
je 0x18022b59e
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x18]
call fcn.180004ad0
nop
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rdx, qword [rbp - 0x48]
mov r8, qword [rbp - 0x38]
lea rcx, [rbp + 0x18]
call fcn.180009db0
lea rcx, [rbp + 0x18]
call fcn.18022cec0
mov qword [rbp - 0x38], r12
lea rax, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rax, qword [rbp - 0x48]
mov word [rax], r12w
lea rcx, [rbp + 0x18]
call fcn.180004e20
inc rbx
sub r14, 1
jne 0x18022b480
jmp 0x18022b5f3
cmp qword [rbp + 8], 0
je 0x18022b5f3
test rbx, rbx
je 0x18022b5f3
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x18]
call fcn.180004ad0
nop
lea rdx, [rbp - 0x28]
cmp rsi, 8
cmovae rdx, rdi
mov r8, rbx
lea rcx, [rbp + 0x18]
call fcn.180009db0
lea rcx, [rbp + 0x18]
call fcn.18022cec0
nop
lea rcx, [rbp + 0x18]
call fcn.180004e20
nop
lea rcx, [rbp - 0x28]
call fcn.180004e20
mov r9, qword [rsp + 0x38]
mov rcx, r9
mov r8, qword [rsp + 0x30]
sub rcx, r8
sar rcx, 5
mov rdx, qword [0x1804de998]
mov rax, rdx
mov rbx, qword [0x1804de990]
sub rax, rbx
sar rax, 5
add ecx, eax
cmp ecx, r15d
jle 0x18022b6dd
cmp rbx, rdx
je 0x18022b6dd
nop dword [rax]
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.1801575d0
nop
mov rdi, qword [rbx + 0x10]
sub rdi, qword [rax + 0x10]
lea rcx, [rbp - 0x28]
call fcn.180004e20
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp + 0x18]
mov rcx, rbx
call fcn.18000eea0
nop
lea r9, [rbp + 0x18]
mov rdi, qword [rsp + 0x38]
mov r8, rdi
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1800648a0
mov r8, qword [rsp + 0x50]
cmp r8, rdi
je 0x18022b6b6
lea rcx, [r8 + 0x20]
mov rdx, rdi
call fcn.180064c20
mov rcx, qword [rsp + 0x38]
add rcx, 0xffffffffffffffe0
call fcn.180004e20
sub qword [rsp + 0x38], 0x20
lea rcx, [rbp + 0x18]
call fcn.180004e20
add rbx, 0x20
mov rdx, qword [0x1804de998]
cmp rbx, rdx
jne 0x18022b640
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x30]
call fcn.18022cf10
nop
lea rcx, [rsp + 0x30]
call fcn.180004d30
nop
lea rcx, [rbp - 0x48]
call fcn.180004e20
nop
lea rcx, [rbp - 8]
call fcn.180004e20
xor eax, eax
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.180388400
lea r11, [rsp + 0x570]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret