Function at 0x180227f70
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 [0x1804ca010]
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 0x18022830f
mov edx, 0x461
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rsi, rax
test rax, rax
je 0x18022830f
mov rdi, qword [0x1804db958]
mov rbx, qword [0x1804db950]
cmp rbx, rdi
je 0x180228008
mov rcx, rbx
call fcn.180004df0
add rbx, 0x20
cmp rbx, rdi
jne 0x180227ff0
mov rbx, qword [0x1804db950]
mov qword [0x1804db958], 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 0x180228319
mov rdx, r14
lea rcx, [rbp - 0x28]
call fcn.18022a2f0
nop
mov r8, qword [rbp - 0x18]
cmp r8, 2
jb 0x1802280ce
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 0x180228087
lea rax, [rbp - 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + 2], 0x5c
je 0x18022816b
lea rax, [rbp - 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + 2], 0x3a
jne 0x1802280ce
cmp r8, 2
jbe 0x1802280ce
lea rax, [rbp - 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + 4], 0x2f
je 0x18022816b
lea rax, [rbp - 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + 4], 0x5c
je 0x18022816b
lea r8, [rbp - 0x28]
lea rdx, [0x1804cc850]
lea rcx, [rbp + 0x18]
call fcn.18015aa30
mov rbx, rax
lea rax, [rbp - 0x28]
cmp rax, rbx
je 0x180228116
lea rcx, [rbp - 0x28]
call fcn.180004df0
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 0x180228159
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180228154
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180228154
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
movdqa xmm0, xmmword [0x1803e6740]
movdqu xmmword [rbp + 0x28], xmm0
mov word [rbp + 0x18], r12w
lea rcx, [rbp - 0x28]
cmp byte [0x1804db097], 0
je 0x180228225
call fcn.180155c00
test al, al
je 0x1802282bb
lea rcx, [rbp - 0x28]
call fcn.18022a3e0
mov rax, qword [0x1804db958]
cmp qword [0x1804db960], rax
je 0x1802281b8
lea rdx, [rbp - 0x28]
mov rcx, rax
call fcn.180004aa0
add qword [0x1804db958], 0x20
jmp 0x1802281cc
lea r8, [rbp - 0x28]
mov rdx, rax
lea rcx, [0x1804db950]
call fcn.180009130
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x18022820f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022820a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022820a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
jmp 0x180228f11
call fcn.180155970
test al, al
je 0x1802282bb
lea rcx, [rbp - 0x28]
call fcn.18022a3e0
mov rax, qword [0x1804db958]
cmp qword [0x1804db960], rax
je 0x180228261
lea rdx, [rbp - 0x28]
mov rcx, rax
call fcn.180004aa0
add qword [0x1804db958], 0x20
jmp 0x180228275
lea r8, [rbp - 0x28]
mov rdx, rax
lea rcx, [0x1804db950]
call fcn.180009130
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x18022820f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022820a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022820a
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 0x1802282fe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802282f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802282f9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
mov eax, 1
jmp 0x180228f13
lea rdx, [0x1804cc850]
lea rcx, [rbp - 8]
call fcn.180004aa0
nop
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x1802283ac
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 0x1802283ac
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x18022838c
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, [0x1803c0840]
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rsi*2], r12w
jmp 0x1802283ac
mov qword [rsp + 0x20], 1
lea r9, [0x1803c0840]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp - 8]
call fcn.180009e00
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.180004aa0
nop
lea rax, [rbp + 0x40]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x1802283f6
mov rcx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x30]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x180228440
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 0x180228455
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x40]
xor r8d, r8d
lea rcx, [rbp - 0x48]
call fcn.180009e00
cmp r15d, 1
jne 0x1802286f8
cmp word [rbp + 0x40], 0
je 0x1802286f8
lea rcx, [rbp - 0x48]
call fcn.18022a3e0
mov rax, qword [0x1804db958]
cmp qword [0x1804db960], rax
je 0x1802284a3
lea rdx, [rbp - 0x48]
mov rcx, rax
call fcn.180004aa0
mov rax, qword [0x1804db958]
add rax, 0x20
mov qword [0x1804db958], rax
jmp 0x1802284bd
lea r8, [rbp - 0x48]
mov rdx, rax
lea rcx, [0x1804db950]
call fcn.180009130
mov rax, qword [0x1804db958]
cmp byte [0x1804db097], 0
je 0x1802286f8
mov rcx, qword [0x1804db950]
cmp rcx, rax
jne 0x18022858c
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x18022851d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180228518
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180228518
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x180228571
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022856c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022856c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r12w
mov eax, 1
jmp 0x180228f13
cmp qword [rcx + 0x18], 8
jb 0x180228596
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x18022865a
test al, 0x10
je 0x18022865a
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1802285f0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802285eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802285eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x180228644
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022863f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022863f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r12w
jmp 0x180228f11
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x18022869d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180228698
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180228698
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x180228571
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022856c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022856c
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 0x180228e0c
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 0x1802287b7
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rdx, qword [rbp - 8]
mov r8, qword [rbp + 8]
jmp 0x1802287c1
xor r8d, r8d
lea rdx, [0x1803be558]
call fcn.180004e70
mov word [rbp + 0x458], r12w
lea rax, [rbp + 0x250]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x1802287e0
mov rcx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x30]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x18022882d
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 0x180228845
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x250]
xor r8d, r8d
lea rcx, [rbp - 0x48]
call fcn.180009e00
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 0x1802288d9
test al, 0x10
je 0x1802288d9
lea rcx, [rbp - 0x48]
cmp byte [0x1804db097], 0
jne 0x18022889b
call fcn.18022a3e0
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x40], rax
je 0x180228894
lea rdx, [rbp - 0x48]
mov rcx, rax
call fcn.180004aa0
add qword [rsp + 0x38], 0x20
jmp 0x1802288d9
lea rcx, [rsp + 0x30]
jmp 0x1802288cd
call fcn.18022a3e0
mov rax, qword [0x1804db958]
cmp qword [0x1804db960], rax
je 0x1802288c6
lea rdx, [rbp - 0x48]
mov rcx, rax
call fcn.180004aa0
add qword [0x1804db958], 0x20
jmp 0x1802288d9
lea rcx, [0x1804db950]
lea r8, [rbp - 0x48]
mov rdx, rax
call fcn.180009130
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 0x180228730
cmp byte [0x1804db097], 0
je 0x180228b3e
mov rax, qword [0x1804db958]
cmp qword [0x1804db950], rax
mov rbx, qword [rsp + 0x30]
je 0x180228a2e
test rbx, rbx
je 0x180228990
mov rdi, qword [rsp + 0x38]
cmp rbx, rdi
je 0x180228946
mov rcx, rbx
call fcn.180004df0
add rbx, 0x20
cmp rbx, rdi
jne 0x180228930
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x18022897a
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022897a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180385c70
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1802289d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802289ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802289ce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x180228644
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022863f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022863f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test rbx, rbx
je 0x180228aa0
mov rdi, qword [rsp + 0x38]
cmp rbx, rdi
je 0x180228a56
nop dword [rax]
mov rcx, rbx
call fcn.180004df0
add rbx, 0x20
cmp rbx, rdi
jne 0x180228a40
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x180228a8a
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180228a8a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180385c70
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x180228ae3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180228ade
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180228ade
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x180228571
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022856c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022856c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor r8d, r8d
lea rdx, [0x1803be558]
lea rcx, [rbp - 0x48]
call fcn.180004e70
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 [0x1804db958]
sub rax, qword [0x1804db950]
sar rax, 5
cmp r15d, eax
jg 0x180228bf1
lea rcx, [rsp + 0x30]
call fcn.180004d00
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x180228bcd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180228bc8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180228bc8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180385c70
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
lea rcx, [rbp - 8]
call fcn.180004df0
mov eax, 1
jmp 0x180228f13
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 0x180228c15
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x28]
call fcn.180004e70
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 0x180228c65
mov rcx, rbx
mov rax, rdx
cmp word [rax], 0x22
je 0x180228ce7
add rax, 2
sub rcx, 1
jne 0x180228c51
mov rax, 0xffffffffffffffff
cmp eax, 0xffffffff
je 0x180228dbd
mov eax, dword [rbp - 0x18]
test eax, eax
jle 0x180228e03
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 0x180228d56
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 0x180228cfb
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 0x180228d04
test rax, rax
je 0x180228c65
sub rax, rdx
sar rax, 1
jmp 0x180228c6c
lea rcx, [rbp - 0x48]
call fcn.180032810
cmp rbx, 1
jl 0x180228dae
lea rax, [rbp - 0x28]
cmp rsi, 8
cmovae rax, rdi
cmp word [rax + rbx*2 - 2], 0x22
jne 0x180228dae
lea rax, [rbp - 0x28]
cmp rsi, 8
cmovae rax, rdi
cmp word [rax + rbx*2], 0x20
jne 0x180228dae
mov rdx, qword [rbp - 0x38]
test rdx, rdx
je 0x180228dae
dec rdx
mov r8d, 1
lea rcx, [rbp - 0x48]
call fcn.1800f1320
jmp 0x180228dae
cmp qword [rbp - 0x38], 0
je 0x180228dae
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x18]
call fcn.180004aa0
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.180009d80
lea rcx, [rbp + 0x18]
call fcn.18022a6d0
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.180004df0
inc rbx
sub r14, 1
jne 0x180228c90
jmp 0x180228e03
cmp qword [rbp + 8], 0
je 0x180228e03
test rbx, rbx
je 0x180228e03
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x18]
call fcn.180004aa0
nop
lea rdx, [rbp - 0x28]
cmp rsi, 8
cmovae rdx, rdi
mov r8, rbx
lea rcx, [rbp + 0x18]
call fcn.180009d80
lea rcx, [rbp + 0x18]
call fcn.18022a6d0
nop
lea rcx, [rbp + 0x18]
call fcn.180004df0
nop
lea rcx, [rbp - 0x28]
call fcn.180004df0
mov r9, qword [rsp + 0x38]
mov rcx, r9
mov r8, qword [rsp + 0x30]
sub rcx, r8
sar rcx, 5
mov rdx, qword [0x1804db958]
mov rax, rdx
mov rbx, qword [0x1804db950]
sub rax, rbx
sar rax, 5
add ecx, eax
cmp ecx, r15d
jle 0x180228eed
cmp rbx, rdx
je 0x180228eed
nop dword [rax]
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.180157010
nop
mov rdi, qword [rbx + 0x10]
sub rdi, qword [rax + 0x10]
lea rcx, [rbp - 0x28]
call fcn.180004df0
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp + 0x18]
mov rcx, rbx
call fcn.18000ee70
nop
lea r9, [rbp + 0x18]
mov rdi, qword [rsp + 0x38]
mov r8, rdi
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.180064810
mov r8, qword [rsp + 0x50]
cmp r8, rdi
je 0x180228ec6
lea rcx, [r8 + 0x20]
mov rdx, rdi
call fcn.180064b90
mov rcx, qword [rsp + 0x38]
add rcx, 0xffffffffffffffe0
call fcn.180004df0
sub qword [rsp + 0x38], 0x20
lea rcx, [rbp + 0x18]
call fcn.180004df0
add rbx, 0x20
mov rdx, qword [0x1804db958]
cmp rbx, rdx
jne 0x180228e50
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x30]
call fcn.18022a720
nop
lea rcx, [rsp + 0x30]
call fcn.180004d00
nop
lea rcx, [rbp - 0x48]
call fcn.180004df0
nop
lea rcx, [rbp - 8]
call fcn.180004df0
xor eax, eax
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.180385c10
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