Function at 0x180229ef0
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 [0x1804cc010]
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 0x18022a28f
mov edx, 0x461
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rsi, rax
test rax, rax
je 0x18022a28f
mov rdi, qword [0x1804dd9a8]
mov rbx, qword [0x1804dd9a0]
cmp rbx, rdi
je 0x180229f88
mov rcx, rbx
call fcn.180004e20
add rbx, 0x20
cmp rbx, rdi
jne 0x180229f70
mov rbx, qword [0x1804dd9a0]
mov qword [0x1804dd9a8], 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 0x18022a299
mov rdx, r14
lea rcx, [rbp - 0x28]
call fcn.18022c270
nop
mov r8, qword [rbp - 0x18]
cmp r8, 2
jb 0x18022a04e
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 0x18022a007
lea rax, [rbp - 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + 2], 0x5c
je 0x18022a0eb
lea rax, [rbp - 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + 2], 0x3a
jne 0x18022a04e
cmp r8, 2
jbe 0x18022a04e
lea rax, [rbp - 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + 4], 0x2f
je 0x18022a0eb
lea rax, [rbp - 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + 4], 0x5c
je 0x18022a0eb
lea r8, [rbp - 0x28]
lea rdx, [0x1804ce850]
lea rcx, [rbp + 0x18]
call fcn.18015a940
mov rbx, rax
lea rax, [rbp - 0x28]
cmp rax, rbx
je 0x18022a096
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 0x18022a0d9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022a0d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022a0d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rbp + 0x28], xmm0
mov word [rbp + 0x18], r12w
lea rcx, [rbp - 0x28]
cmp byte [0x1804dd0d7], 0
je 0x18022a1a5
call fcn.180155b10
test al, al
je 0x18022a23b
lea rcx, [rbp - 0x28]
call fcn.18022c360
mov rax, qword [0x1804dd9a8]
cmp qword [0x1804dd9b0], rax
je 0x18022a138
lea rdx, [rbp - 0x28]
mov rcx, rax
call fcn.180004ad0
add qword [0x1804dd9a8], 0x20
jmp 0x18022a14c
lea r8, [rbp - 0x28]
mov rdx, rax
lea rcx, [0x1804dd9a0]
call fcn.180009160
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x18022a18f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022a18a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022a18a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
jmp 0x18022ae91
call fcn.180155880
test al, al
je 0x18022a23b
lea rcx, [rbp - 0x28]
call fcn.18022c360
mov rax, qword [0x1804dd9a8]
cmp qword [0x1804dd9b0], rax
je 0x18022a1e1
lea rdx, [rbp - 0x28]
mov rcx, rax
call fcn.180004ad0
add qword [0x1804dd9a8], 0x20
jmp 0x18022a1f5
lea r8, [rbp - 0x28]
mov rdx, rax
lea rcx, [0x1804dd9a0]
call fcn.180009160
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x18022a18f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022a18a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022a18a
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 0x18022a27e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022a279
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022a279
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
mov eax, 1
jmp 0x18022ae93
lea rdx, [0x1804ce850]
lea rcx, [rbp - 8]
call fcn.180004ad0
nop
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x18022a32c
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 0x18022a32c
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x18022a30c
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, [0x1803c17e8]
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rsi*2], r12w
jmp 0x18022a32c
mov qword [rsp + 0x20], 1
lea r9, [0x1803c17e8]
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 0x18022a376
mov rcx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x30]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x18022a3c0
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 0x18022a3d5
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x40]
xor r8d, r8d
lea rcx, [rbp - 0x48]
call fcn.180009e30
cmp r15d, 1
jne 0x18022a678
cmp word [rbp + 0x40], 0
je 0x18022a678
lea rcx, [rbp - 0x48]
call fcn.18022c360
mov rax, qword [0x1804dd9a8]
cmp qword [0x1804dd9b0], rax
je 0x18022a423
lea rdx, [rbp - 0x48]
mov rcx, rax
call fcn.180004ad0
mov rax, qword [0x1804dd9a8]
add rax, 0x20
mov qword [0x1804dd9a8], rax
jmp 0x18022a43d
lea r8, [rbp - 0x48]
mov rdx, rax
lea rcx, [0x1804dd9a0]
call fcn.180009160
mov rax, qword [0x1804dd9a8]
cmp byte [0x1804dd0d7], 0
je 0x18022a678
mov rcx, qword [0x1804dd9a0]
cmp rcx, rax
jne 0x18022a50c
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x18022a49d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022a498
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022a498
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x18022a4f1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022a4ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022a4ec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r12w
mov eax, 1
jmp 0x18022ae93
cmp qword [rcx + 0x18], 8
jb 0x18022a516
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18022a5da
test al, 0x10
je 0x18022a5da
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x18022a570
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022a56b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022a56b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x18022a5c4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022a5bf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022a5bf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r12w
jmp 0x18022ae91
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x18022a61d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022a618
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022a618
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x18022a4f1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022a4ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022a4ec
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 0x18022ad8c
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 0x18022a737
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rdx, qword [rbp - 8]
mov r8, qword [rbp + 8]
jmp 0x18022a741
xor r8d, r8d
lea rdx, [0x1803bf568]
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 0x18022a760
mov rcx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x30]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x18022a7ad
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 0x18022a7c5
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 0x18022a859
test al, 0x10
je 0x18022a859
lea rcx, [rbp - 0x48]
cmp byte [0x1804dd0d7], 0
jne 0x18022a81b
call fcn.18022c360
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x40], rax
je 0x18022a814
lea rdx, [rbp - 0x48]
mov rcx, rax
call fcn.180004ad0
add qword [rsp + 0x38], 0x20
jmp 0x18022a859
lea rcx, [rsp + 0x30]
jmp 0x18022a84d
call fcn.18022c360
mov rax, qword [0x1804dd9a8]
cmp qword [0x1804dd9b0], rax
je 0x18022a846
lea rdx, [rbp - 0x48]
mov rcx, rax
call fcn.180004ad0
add qword [0x1804dd9a8], 0x20
jmp 0x18022a859
lea rcx, [0x1804dd9a0]
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 0x18022a6b0
cmp byte [0x1804dd0d7], 0
je 0x18022aabe
mov rax, qword [0x1804dd9a8]
cmp qword [0x1804dd9a0], rax
mov rbx, qword [rsp + 0x30]
je 0x18022a9ae
test rbx, rbx
je 0x18022a910
mov rdi, qword [rsp + 0x38]
cmp rbx, rdi
je 0x18022a8c6
mov rcx, rbx
call fcn.180004e20
add rbx, 0x20
cmp rbx, rdi
jne 0x18022a8b0
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x18022a8fa
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022a8fa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180386950
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x18022a953
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022a94e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022a94e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x18022a5c4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022a5bf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022a5bf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test rbx, rbx
je 0x18022aa20
mov rdi, qword [rsp + 0x38]
cmp rbx, rdi
je 0x18022a9d6
nop dword [rax]
mov rcx, rbx
call fcn.180004e20
add rbx, 0x20
cmp rbx, rdi
jne 0x18022a9c0
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x18022aa0a
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022aa0a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180386950
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x18022aa63
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022aa5e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022aa5e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x18022a4f1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022a4ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022a4ec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor r8d, r8d
lea rdx, [0x1803bf568]
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 [0x1804dd9a8]
sub rax, qword [0x1804dd9a0]
sar rax, 5
cmp r15d, eax
jg 0x18022ab71
lea rcx, [rsp + 0x30]
call fcn.180004d30
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x18022ab4d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022ab48
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022ab48
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
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 0x18022ae93
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 0x18022ab95
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 0x18022abe5
mov rcx, rbx
mov rax, rdx
cmp word [rax], 0x22
je 0x18022ac67
add rax, 2
sub rcx, 1
jne 0x18022abd1
mov rax, 0xffffffffffffffff
cmp eax, 0xffffffff
je 0x18022ad3d
mov eax, dword [rbp - 0x18]
test eax, eax
jle 0x18022ad83
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 0x18022acd6
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 0x18022ac7b
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 0x18022ac84
test rax, rax
je 0x18022abe5
sub rax, rdx
sar rax, 1
jmp 0x18022abec
lea rcx, [rbp - 0x48]
call fcn.180032180
cmp rbx, 1
jl 0x18022ad2e
lea rax, [rbp - 0x28]
cmp rsi, 8
cmovae rax, rdi
cmp word [rax + rbx*2 - 2], 0x22
jne 0x18022ad2e
lea rax, [rbp - 0x28]
cmp rsi, 8
cmovae rax, rdi
cmp word [rax + rbx*2], 0x20
jne 0x18022ad2e
mov rdx, qword [rbp - 0x38]
test rdx, rdx
je 0x18022ad2e
dec rdx
mov r8d, 1
lea rcx, [rbp - 0x48]
call fcn.1800f0f40
jmp 0x18022ad2e
cmp qword [rbp - 0x38], 0
je 0x18022ad2e
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.18022c650
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 0x18022ac10
jmp 0x18022ad83
cmp qword [rbp + 8], 0
je 0x18022ad83
test rbx, rbx
je 0x18022ad83
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.18022c650
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 [0x1804dd9a8]
mov rax, rdx
mov rbx, qword [0x1804dd9a0]
sub rax, rbx
sar rax, 5
add ecx, eax
cmp ecx, r15d
jle 0x18022ae6d
cmp rbx, rdx
je 0x18022ae6d
nop dword [rax]
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.180156f20
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.18000eeb0
nop
lea r9, [rbp + 0x18]
mov rdi, qword [rsp + 0x38]
mov r8, rdi
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.180064170
mov r8, qword [rsp + 0x50]
cmp r8, rdi
je 0x18022ae46
lea rcx, [r8 + 0x20]
mov rdx, rdi
call fcn.1800644f0
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 [0x1804dd9a8]
cmp rbx, rdx
jne 0x18022add0
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x30]
call fcn.18022c6a0
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.1803868f0
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