Function at 0x1800050a0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x190], rbx
mov rax, qword [0x18004a0a8]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov rbx, rcx
xor esi, esi
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], si
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], si
jne 0x1800050f2
lea rcx, [rbp - 0x48]
call fcn.180006750
nop
cmp qword [rbp - 0x38], 0
jne 0x180005139
lea rdx, [rbx + 0xa0]
cmp qword [rdx + 0x18], 8
jb 0x18000511e
mov rdx, qword [rdx]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x180005125
lea rcx, [rbp - 0x48]
call fcn.180006750
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x180005159
mov r13d, esi
jmp 0x180005621
lea r8, str.HaoKanWallPaper.exe
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x18]
call fcn.180002cd0
nop
lea rcx, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae rcx, qword [rbp + 0x18]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180005191
mov r13d, 1
jmp 0x1800055d0
lea rdx, str.9755104754656314543663180836632607635531116508026850084024582929
lea rcx, [rbp - 8]
call fcn.18000aa60
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rsi
movdqa xmm0, xmmword [0x1800317a0]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], si
mov r13d, 1
mov r8d, r13d
lea rdx, [0x180031b74]
lea rcx, [rbp - 0x28]
call fcn.180006750
nop
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rdx, qword [rbp - 8]
movdqa xmm0, xmmword [0x1800317a0]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], si
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x180005201
lea rcx, [rbp - 0x68]
call fcn.180006750
nop
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x68]
call fcn.18000eaa0
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x180005269
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180005264
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005744
call fcn.1800153bc
movdqa xmm0, xmmword [0x1800317a0]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], si
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x1800052ba
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800052b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000574a
call fcn.1800153bc
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
cmp rdi, rbx
je 0x180005515
nop dword [rax]
mov rdx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1800052dd
mov rdx, qword [rdi]
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], 7
mov word [rbp - 0x28], si
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x1800052f4
lea rcx, [rbp - 0x28]
call fcn.180006750
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x60]
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
lea r15, [rbp - 0x28]
mov r14, qword [rbp - 0x28]
mov r12, qword [rbp - 0x10]
cmp r12, 8
cmovae r15, r14
mov rsi, qword [rbp - 0x18]
cmp rsi, 8
jae 0x18000535c
movups xmm0, xmmword [r15]
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x78], 7
jmp 0x18000539f
mov rbx, rsi
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x60]
call fcn.180002a70
mov qword [rsp + 0x60], rax
lea r8, [rsi*2 + 2]
mov rdx, r15
mov rcx, rax
call fcn.180017060
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x70], rsi
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov r15, qword [rbp - 0x38]
lea rsi, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rsi, qword [rbp - 0x48]
cmp r15, 8
jae 0x1800053d7
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x50], 7
jmp 0x180005417
mov rbx, r15
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x68]
call fcn.180002a70
mov qword [rbp - 0x68], rax
lea r8, [r15*2 + 2]
mov rdx, rsi
mov rcx, rax
call fcn.180017060
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x58], r15
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x68]
call fcn.18000af30
mov rsi, qword [rsp + 0x38]
mov rax, rsi
mov rbx, qword [rsp + 0x30]
sub rax, rbx
cmp rax, 0x20
jae 0x18000568b
test rbx, rbx
je 0x1800054c1
cmp rbx, rsi
je 0x180005476
nop word [rax + rax]
mov rcx, rbx
call fcn.180002a00
add rbx, 0x20
cmp rbx, rsi
jne 0x180005460
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x1800054a7
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005756
mov rcx, rbx
call fcn.1800153bc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor esi, esi
mov qword [rsp + 0x40], rsi
jmp 0x1800054c3
xor esi, esi
cmp r12, 8
jb 0x1800054fe
lea rdx, [r12*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x1800054f6
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000575c
mov rcx, r14
call fcn.1800153bc
add rdi, 0x20
mov rbx, qword [rsp + 0x50]
cmp rdi, rbx
jne 0x1800052d0
mov rdi, qword [rsp + 0x48]
mov r13d, esi
test rdi, rdi
je 0x18000557f
cmp rdi, rbx
je 0x180005538
mov rcx, rdi
call fcn.180002a00
add rdi, 0x20
cmp rdi, rbx
jne 0x180005522
mov rdi, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
sub rdx, rdi
and rdx, 0xffffffffffffffe0
mov rax, rdi
cmp rdx, 0x1000
jb 0x180005569
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005750
mov rcx, rdi
call fcn.1800153bc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rsi
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x1800055bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800055ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000576e
call fcn.1800153bc
movdqa xmm0, xmmword [0x1800317a0]
movdqu xmmword [rbp + 8], xmm0
mov word [rbp - 8], si
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
jb 0x180005610
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000560b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005774
call fcn.1800153bc
movdqa xmm0, xmmword [0x1800317a0]
movdqu xmmword [rbp + 0x28], xmm0
mov word [rbp + 0x18], si
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x180005661
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000565c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000573e
call fcn.1800153bc
mov eax, r13d
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.1800154d0
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test rbx, rbx
je 0x1800056f6
cmp rbx, rsi
je 0x1800056ab
mov rcx, rbx
call fcn.180002a00
add rbx, 0x20
cmp rbx, rsi
jne 0x180005695
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
sub rdx, rbx
and rdx, 0xffffffffffffffe0
mov rax, rbx
cmp rdx, 0x1000
jb 0x1800056dc
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005762
mov rcx, rbx
call fcn.1800153bc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
xor esi, esi
mov qword [rsp + 0x40], rsi
jmp 0x1800056f8
xor esi, esi
cmp r12, 8
jb 0x18000572f
lea rdx, [r12*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x180005727
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180005768
mov rcx, r14
call fcn.1800153bc
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
jmp 0x180005518
call fcn.180019c44
nop
call fcn.180019c44
nop
call fcn.180019c44
nop
call fcn.180019c44
nop
call fcn.180019c44
nop
call fcn.180019c44
nop
call fcn.180019c44
nop
call fcn.180019c44
nop
call fcn.180019c44
nop
call fcn.180019c44
int3