Function at 0x180228c00
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 [0x1804e0010]
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 0x180228f9f
mov edx, 0x461
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rsi, rax
test rax, rax
je 0x180228f9f
mov rdi, qword [0x1804f2298]
mov rbx, qword [0x1804f2290]
cmp rbx, rdi
je 0x180228c98
mov rcx, rbx
call fcn.180005c50
add rbx, 0x20
cmp rbx, rdi
jne 0x180228c80
mov rbx, qword [0x1804f2290]
mov qword [0x1804f2298], 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 0x180228fa9
mov rdx, r14
lea rcx, [rbp - 0x28]
call fcn.18022af80
nop
mov r8, qword [rbp - 0x18]
cmp r8, 2
jb 0x180228d5e
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 0x180228d17
lea rax, [rbp - 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + 2], 0x5c
je 0x180228dfb
lea rax, [rbp - 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + 2], 0x3a
jne 0x180228d5e
cmp r8, 2
jbe 0x180228d5e
lea rax, [rbp - 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + 4], 0x2f
je 0x180228dfb
lea rax, [rbp - 0x28]
cmp rdx, 8
cmovae rax, rcx
cmp word [rax + 4], 0x5c
je 0x180228dfb
lea r8, [rbp - 0x28]
lea rdx, [0x1804e2c90]
lea rcx, [rbp + 0x18]
call fcn.180160610
mov rbx, rax
lea rax, [rbp - 0x28]
cmp rax, rbx
je 0x180228da6
lea rcx, [rbp - 0x28]
call fcn.180005c50
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 0x180228de9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180228de4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180228de4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
movdqa xmm0, xmmword [0x1803f7240]
movdqu xmmword [rbp + 0x28], xmm0
mov word [rbp + 0x18], r12w
lea rcx, [rbp - 0x28]
cmp byte [0x1804f19e7], 0
je 0x180228eb5
call fcn.18015b200
test al, al
je 0x180228f4b
lea rcx, [rbp - 0x28]
call fcn.18022b070
mov rax, qword [0x1804f2298]
cmp qword [0x1804f22a0], rax
je 0x180228e48
lea rdx, [rbp - 0x28]
mov rcx, rax
call fcn.180005900
add qword [0x1804f2298], 0x20
jmp 0x180228e5c
lea r8, [rbp - 0x28]
mov rdx, rax
lea rcx, [0x1804f2290]
call fcn.18000a0d0
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x180228e9f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180228e9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180228e9a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
jmp 0x180229ba1
call fcn.18015af70
test al, al
je 0x180228f4b
lea rcx, [rbp - 0x28]
call fcn.18022b070
mov rax, qword [0x1804f2298]
cmp qword [0x1804f22a0], rax
je 0x180228ef1
lea rdx, [rbp - 0x28]
mov rcx, rax
call fcn.180005900
add qword [0x1804f2298], 0x20
jmp 0x180228f05
lea r8, [rbp - 0x28]
mov rdx, rax
lea rcx, [0x1804f2290]
call fcn.18000a0d0
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x180228e9f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180228e9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180228e9a
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 0x180228f8e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180228f89
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180228f89
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], r12w
mov eax, 1
jmp 0x180229ba3
lea rdx, [0x1804e2c90]
lea rcx, [rbp - 8]
call fcn.180005900
nop
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x18022903c
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 0x18022903c
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x18022901c
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, [0x1803cf7f8]
call sub.VCRUNTIME140.dll_memmove
mov word [rdi + rsi*2], r12w
jmp 0x18022903c
mov qword [rsp + 0x20], 1
lea r9, [0x1803cf7f8]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp - 8]
call fcn.18000ada0
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.180005900
nop
lea rax, [rbp + 0x40]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x180229086
mov rcx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x30]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x1802290d0
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 0x1802290e5
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x40]
xor r8d, r8d
lea rcx, [rbp - 0x48]
call fcn.18000ada0
cmp r15d, 1
jne 0x180229388
cmp word [rbp + 0x40], 0
je 0x180229388
lea rcx, [rbp - 0x48]
call fcn.18022b070
mov rax, qword [0x1804f2298]
cmp qword [0x1804f22a0], rax
je 0x180229133
lea rdx, [rbp - 0x48]
mov rcx, rax
call fcn.180005900
mov rax, qword [0x1804f2298]
add rax, 0x20
mov qword [0x1804f2298], rax
jmp 0x18022914d
lea r8, [rbp - 0x48]
mov rdx, rax
lea rcx, [0x1804f2290]
call fcn.18000a0d0
mov rax, qword [0x1804f2298]
cmp byte [0x1804f19e7], 0
je 0x180229388
mov rcx, qword [0x1804f2290]
cmp rcx, rax
jne 0x18022921c
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x1802291ad
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802291a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802291a8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x180229201
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802291fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802291fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r12w
mov eax, 1
jmp 0x180229ba3
cmp qword [rcx + 0x18], 8
jb 0x180229226
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1802292ea
test al, 0x10
je 0x1802292ea
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x180229280
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022927b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022927b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x1802292d4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802292cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802292cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], 7
mov word [rbp - 8], r12w
jmp 0x180229ba1
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x18022932d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180229328
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180229328
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x180229201
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802291fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802291fc
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 0x180229a9c
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 0x180229447
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rdx, qword [rbp - 8]
mov r8, qword [rbp + 8]
jmp 0x180229451
xor r8d, r8d
lea rdx, [0x1803cd4c0]
call fcn.180005cd0
mov word [rbp + 0x458], r12w
lea rax, [rbp + 0x250]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x180229470
mov rcx, qword [rbp - 0x38]
mov r8, qword [rbp - 0x30]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x1802294bd
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 0x1802294d5
mov qword [rsp + 0x20], rdx
lea r9, [rbp + 0x250]
xor r8d, r8d
lea rcx, [rbp - 0x48]
call fcn.18000ada0
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 0x180229569
test al, 0x10
je 0x180229569
lea rcx, [rbp - 0x48]
cmp byte [0x1804f19e7], 0
jne 0x18022952b
call fcn.18022b070
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x40], rax
je 0x180229524
lea rdx, [rbp - 0x48]
mov rcx, rax
call fcn.180005900
add qword [rsp + 0x38], 0x20
jmp 0x180229569
lea rcx, [rsp + 0x30]
jmp 0x18022955d
call fcn.18022b070
mov rax, qword [0x1804f2298]
cmp qword [0x1804f22a0], rax
je 0x180229556
lea rdx, [rbp - 0x48]
mov rcx, rax
call fcn.180005900
add qword [0x1804f2298], 0x20
jmp 0x180229569
lea rcx, [0x1804f2290]
lea r8, [rbp - 0x48]
mov rdx, rax
call fcn.18000a0d0
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 0x1802293c0
cmp byte [0x1804f19e7], 0
je 0x1802297ce
mov rax, qword [0x1804f2298]
cmp qword [0x1804f2290], rax
mov rbx, qword [rsp + 0x30]
je 0x1802296be
test rbx, rbx
je 0x180229620
mov rdi, qword [rsp + 0x38]
cmp rbx, rdi
je 0x1802295d6
mov rcx, rbx
call fcn.180005c50
add rbx, 0x20
cmp rbx, rdi
jne 0x1802295c0
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x18022960a
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022960a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180393fb0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x180229663
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022965e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022965e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x1802292d4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802292cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802292cf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test rbx, rbx
je 0x180229730
mov rdi, qword [rsp + 0x38]
cmp rbx, rdi
je 0x1802296e6
nop dword [rax]
mov rcx, rbx
call fcn.180005c50
add rbx, 0x20
cmp rbx, rdi
jne 0x1802296d0
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x18022971a
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022971a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180393fb0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x180229773
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18022976e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18022976e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x180229201
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802291fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802291fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor r8d, r8d
lea rdx, [0x1803cd4c0]
lea rcx, [rbp - 0x48]
call fcn.180005cd0
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 [0x1804f2298]
sub rax, qword [0x1804f2290]
sar rax, 5
cmp r15d, eax
jg 0x180229881
lea rcx, [rsp + 0x30]
call fcn.180005b60
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x18022985d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180229858
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180229858
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180393fb0
mov qword [rbp - 0x38], r12
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], r12w
lea rcx, [rbp - 8]
call fcn.180005c50
mov eax, 1
jmp 0x180229ba3
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 0x1802298a5
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x28]
call fcn.180005cd0
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 0x1802298f5
mov rcx, rbx
mov rax, rdx
cmp word [rax], 0x22
je 0x180229977
add rax, 2
sub rcx, 1
jne 0x1802298e1
mov rax, 0xffffffffffffffff
cmp eax, 0xffffffff
je 0x180229a4d
mov eax, dword [rbp - 0x18]
test eax, eax
jle 0x180229a93
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 0x1802299e6
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 0x18022998b
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 0x180229994
test rax, rax
je 0x1802298f5
sub rax, rdx
sar rax, 1
jmp 0x1802298fc
lea rcx, [rbp - 0x48]
call fcn.1800345a0
cmp rbx, 1
jl 0x180229a3e
lea rax, [rbp - 0x28]
cmp rsi, 8
cmovae rax, rdi
cmp word [rax + rbx*2 - 2], 0x22
jne 0x180229a3e
lea rax, [rbp - 0x28]
cmp rsi, 8
cmovae rax, rdi
cmp word [rax + rbx*2], 0x20
jne 0x180229a3e
mov rdx, qword [rbp - 0x38]
test rdx, rdx
je 0x180229a3e
dec rdx
mov r8d, 1
lea rcx, [rbp - 0x48]
call fcn.1800f56b0
jmp 0x180229a3e
cmp qword [rbp - 0x38], 0
je 0x180229a3e
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x18]
call fcn.180005900
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.18000ad20
lea rcx, [rbp + 0x18]
call fcn.18022b360
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.180005c50
inc rbx
sub r14, 1
jne 0x180229920
jmp 0x180229a93
cmp qword [rbp + 8], 0
je 0x180229a93
test rbx, rbx
je 0x180229a93
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x18]
call fcn.180005900
nop
lea rdx, [rbp - 0x28]
cmp rsi, 8
cmovae rdx, rdi
mov r8, rbx
lea rcx, [rbp + 0x18]
call fcn.18000ad20
lea rcx, [rbp + 0x18]
call fcn.18022b360
nop
lea rcx, [rbp + 0x18]
call fcn.180005c50
nop
lea rcx, [rbp - 0x28]
call fcn.180005c50
mov r9, qword [rsp + 0x38]
mov rcx, r9
mov r8, qword [rsp + 0x30]
sub rcx, r8
sar rcx, 5
mov rdx, qword [0x1804f2298]
mov rax, rdx
mov rbx, qword [0x1804f2290]
sub rax, rbx
sar rax, 5
add ecx, eax
cmp ecx, r15d
jle 0x180229b7d
cmp rbx, rdx
je 0x180229b7d
nop dword [rax]
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.18015c610
nop
mov rdi, qword [rbx + 0x10]
sub rdi, qword [rax + 0x10]
lea rcx, [rbp - 0x28]
call fcn.180005c50
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp + 0x18]
mov rcx, rbx
call fcn.18000fe40
nop
lea r9, [rbp + 0x18]
mov rdi, qword [rsp + 0x38]
mov r8, rdi
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.180066a50
mov r8, qword [rsp + 0x50]
cmp r8, rdi
je 0x180229b56
lea rcx, [r8 + 0x20]
mov rdx, rdi
call fcn.180066dd0
mov rcx, qword [rsp + 0x38]
add rcx, 0xffffffffffffffe0
call fcn.180005c50
sub qword [rsp + 0x38], 0x20
lea rcx, [rbp + 0x18]
call fcn.180005c50
add rbx, 0x20
mov rdx, qword [0x1804f2298]
cmp rbx, rdx
jne 0x180229ae0
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x30]
call fcn.18022b3b0
nop
lea rcx, [rsp + 0x30]
call fcn.180005b60
nop
lea rcx, [rbp - 0x48]
call fcn.180005c50
nop
lea rcx, [rbp - 8]
call fcn.180005c50
xor eax, eax
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.180393f50
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