Function at 0x1800042f0
Capabilities:
Check if file exists
Read .ini file

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x858]
sub rsp, 0x930
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x18004a0a8]
xor rax, rsp
mov qword [rbp + 0x820], rax
mov rdi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.1800174c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call fcn.1800174c0
movdqa xmm0, xmmword [0x1800317a0]
movdqu xmmword [rsp + 0x68], xmm0
xor r14d, r14d
mov word [rsp + 0x58], r14w
xor r8d, r8d
lea rsi, [0x180031940]
mov rdx, rsi
lea rcx, [rsp + 0x58]
call fcn.180006750
nop
movdqa xmm0, xmmword [0x1800317a0]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r14w
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.180006750
nop
movdqa xmm0, xmmword [0x1800317a0]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r14w
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.180006750
nop
movdqa xmm0, xmmword [0x1800317a0]
movdqu xmmword [rbp - 0x38], xmm0
mov word [rbp - 0x48], r14w
xor r8d, r8d
mov rdx, rsi
lea rcx, [rbp - 0x48]
call fcn.180006750
nop
xor r9d, r9d
lea r8d, [r14 + 0x2c]
lea rdx, [rbp + 0x1f0]
xor ecx, ecx
call fcn.18000c2f0
lea rcx, [rbp + 0x1f0]
sub rcx, 2
nop
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x180004410
mov eax, dword [0x180031944]
mov dword [rcx], eax
lea rcx, [rbp + 0x1f0]
sub rcx, 2
nop dword [rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x180004430
movups xmm0, xmmword [str.HaoKanWallPaper]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [0x180031990]
movups xmmword [rcx + 0x10], xmm1
lea rcx, [rbp + 0x1f0]
sub rcx, 2
nop word [rax + rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x180004460
mov dword [rcx], eax
lea rax, [rbp + 0x1f0]
sub rax, 2
nop word [rax + rax]
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x180004480
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
lea rcx, [rbp + 0x1f0]
sub rcx, 2
nop dword [rax]
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x1800044a0
movsd xmm0, qword [str..ini]
movsd qword [rcx], xmm0
movzx eax, word [0x1800319a8]
mov word [rcx + 8], ax
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x20]
mov r8, rsi
lea rdx, str.UsrPath
lea rcx, str.AppConfig
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rbp - 0x20]
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x180004500
test eax, eax
jle 0x180004569
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180004569
lea rax, [rbp - 0x20]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x180004523
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x58]
call fcn.180006750
lea rax, [rbp - 0x20]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x180004543
lea rcx, [rdi + 0x20]
lea rdx, [rbp - 0x20]
call fcn.180006750
mov byte [rdi + 0xb], 1
cmp byte [rdi + 0xc], 0
je 0x180004794
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x610]
call fcn.1800174c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x400]
call fcn.1800174c0
cmp qword [rdi + 0x90], 0
jne 0x1800045ca
mov r8d, 0x104
lea rdx, [rbp + 0x400]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rbp + 0x400]
call fcn.180017650
mov word [rax + 2], r14w
jmp 0x180004600
lea rcx, [rdi + 0x80]
cmp qword [rcx + 0x18], 8
jb 0x1800045db
mov rcx, qword [rcx]
lea rdx, [rbp + 0x400]
sub rdx, rcx
nop word [rax + rax]
movzx eax, word [rcx]
mov word [rdx + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1800045f0
lea r9, str.HaoKanWallPaper.cfg
lea r8, [rbp + 0x400]
lea rdx, str._s_s
lea rcx, [rbp + 0x610]
call fcn.180002c70
lea rax, [rbp + 0x610]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x20]
mov r8, rsi
lea rdx, str.UsrPath
lea rcx, str.AppInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rbp - 0x20]
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x180004660
test eax, eax
jle 0x1800046c9
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800046c9
lea rax, [rbp - 0x20]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x180004683
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x78]
call fcn.180006750
lea rax, [rbp - 0x20]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x1800046a3
lea rcx, [rdi + 0x20]
lea rdx, [rbp - 0x20]
call fcn.180006750
mov byte [rdi + 0xb], 1
cmp byte [rdi + 0xc], 0
je 0x180004794
lea r8, [rdi + 0xa0]
cmp qword [r8 + 0x18], 8
jb 0x1800046da
mov r8, qword [r8]
lea r9, str.HaoKanWallPaper.cfg
lea rdx, str._s_s
lea rcx, [rbp + 0x610]
call fcn.180002c70
lea rax, [rbp + 0x610]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x20]
mov r8, rsi
lea rdx, str.UsrPath
lea rcx, str.AppInfo
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea rcx, [rbp - 0x20]
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x180004730
test eax, eax
jle 0x1800047b4
lea rcx, [rbp - 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1800047b4
lea rax, [rbp - 0x20]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x180004753
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x68]
call fcn.180006750
lea rax, [rbp - 0x20]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x180004772
lea rcx, [rdi + 0x20]
lea rdx, [rbp - 0x20]
call fcn.180006750
mov byte [rdi + 0xb], 1
cmp byte [rdi + 0xc], 0
jne 0x1800047b4
mov rsi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x58]
mov r13, qword [rbp - 0x70]
mov r14, qword [rsp + 0x78]
mov r12, qword [rbp - 0x50]
mov r15, qword [rbp - 0x68]
jmp 0x1800048e8
mov qword [rsp + 0x20], rsi
lea r9, str.UsrPath
lea r8, str.AppInfo
lea rdx, str.HaoKanWallPaper
lea rcx, [rsp + 0x38]
call fcn.18000d920
nop
lea rax, [rsp + 0x38]
mov r9, qword [rsp + 0x38]
mov r11, qword [rsp + 0x50]
cmp r11, 8
cmovae rax, r9
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1800047f0
mov r13, qword [rbp - 0x70]
mov r14, qword [rsp + 0x78]
mov r12, qword [rbp - 0x50]
mov r15, qword [rbp - 0x68]
test ebx, ebx
jle 0x180004a16
lea rcx, [rsp + 0x38]
cmp r11, 8
cmovae rcx, r9
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x180004a0c
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
lea rcx, [rbp - 0x48]
call fcn.180006750
lea rcx, [rdi + 0x20]
lea rax, [rsp + 0x38]
cmp rcx, rax
je 0x180004876
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
call fcn.180006750
mov byte [rdi + 0xb], 1
cmp byte [rdi + 0xc], 0
jne 0x180004a0c
mov r11, qword [rsp + 0x50]
mov r9, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x70]
xor edi, edi
cmp r11, 8
jb 0x1800048d5
lea rdx, [r11*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x1800048cd
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004b37
mov rcx, r9
call fcn.1800153bc
movdqa xmm0, xmmword [0x1800317a0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], di
mov rdx, qword [rbp - 0x30]
cmp rdx, 8
jb 0x180004929
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004923
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004b3d
call fcn.1800153bc
nop
cmp r12, 8
jb 0x180004965
lea rdx, [r12*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x18000495c
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004b43
mov rcx, r15
call fcn.1800153bc
nop
cmp r13, 8
jb 0x1800049a1
lea rdx, [r13*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x180004998
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004b49
mov rcx, r14
call fcn.1800153bc
nop
cmp rsi, 8
jb 0x1800049dc
lea rdx, [rsi*2 + 2]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1800049d4
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180004b31
mov rcx, rbx
call fcn.1800153bc
mov rcx, qword [rbp + 0x820]
xor rcx, rsp
call fcn.1800154d0
lea r11, [rsp + 0x930]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov r11, qword [rsp + 0x50]
mov r9, qword [rsp + 0x38]
cmp byte [rdi + 0xc], 0
je 0x18000488e
cmp byte [rdi + 0xb], 0
je 0x18000488e
lea rcx, [rsp + 0x78]
cmp r13, 8
cmovae rcx, r14
lea r10, [rsp + 0x58]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x70]
cmp rsi, 8
cmovae r10, rbx
mov rdx, qword [rsp + 0x68]
cmp rdx, qword [rbp - 0x78]
jne 0x180004a7a
mov r8, rdx
test rdx, rdx
je 0x180004a7e
sub r10, rcx
movzx eax, word [rcx]
cmp word [r10 + rcx], ax
jne 0x180004a7a
add rcx, 2
sub r8, 1
jne 0x180004a64
jmp 0x180004a7e
mov byte [rdi + 0xd], 1
lea rcx, [rbp - 0x68]
cmp r12, 8
cmovae rcx, r15
lea r10, [rsp + 0x58]
cmp rsi, 8
cmovae r10, rbx
cmp rdx, qword [rbp - 0x58]
jne 0x180004ac6
mov r8, rdx
test rdx, rdx
je 0x180004aca
sub r10, rcx
nop dword [rax + rax]
movzx eax, word [rcx]
cmp word [r10 + rcx], ax
jne 0x180004ac6
add rcx, 2
sub r8, 1
jne 0x180004ab0
jmp 0x180004aca
mov byte [rdi + 0xd], 1
lea rcx, [rbp - 0x48]
cmp qword [rbp - 0x30], 8
cmovae rcx, qword [rbp - 0x48]
lea r8, [rsp + 0x58]
cmp rsi, 8
cmovae r8, rbx
cmp rdx, qword [rbp - 0x38]
jne 0x180004b19
test rdx, rdx
je 0x180004898
sub r8, rcx
nop word [rax + rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x180004b19
add rcx, 2
sub rdx, 1
jne 0x180004b00
jmp 0x180004898
lea rax, [rsp + 0x58]
cmp rsi, 8
cmovae rax, rbx
mov dword [rax], 1
jmp 0x180004884
call fcn.180019c44
nop
call fcn.180019c44
nop
call fcn.180019c44
nop
call fcn.180019c44
nop
call fcn.180019c44
int3