Function at 0x40a9e0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6243e3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c8
mov eax, dword [0x6ba4f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x250]
push eax
call fcn.00406430
mov ecx, eax
call fcn.0042125e
mov dword [ebp - 4], 0
cmp dword [ebp - 0x240], 0
ja 0x40ac28
push 0x18
xor eax, eax
mov dword [ebp - 0x228], 0
push str.SOFTWAREHaoKanWallPaper
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
call fcn.00402c70
mov byte [ebp - 4], 1
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
push str.InstallPath
cmovae eax, dword [ebp - 0x238]
push eax
lea eax, [ebp - 0x2b0]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00421ff7
mov esi, eax
add esp, 0x10
lea eax, [ebp - 0x250]
cmp eax, esi
je 0x40aae6
mov ecx, eax
call fcn.00402a60
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x250], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x240], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x29c]
cmp edx, 8
jb 0x40ab26
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ab1c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b389
push edx
push ecx
call fcn.005100a2
add esp, 8
cmp dword [ebp - 0x240], 0
ja 0x40abc3
lea eax, [ebp - 0x2b0]
push eax
call fcn.00406370
mov ecx, eax
call fcn.00413fa5
mov esi, eax
lea eax, [ebp - 0x250]
cmp eax, esi
je 0x40ab83
mov ecx, eax
call fcn.00402a60
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x250], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x240], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x29c]
cmp edx, 8
jb 0x40abc3
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40abb9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b38e
push edx
push ecx
call fcn.005100a2
add esp, 8
cmp dword [ebp - 0x23c], 8
lea eax, [ebp - 0x250]
cmovae eax, dword [ebp - 0x250]
push eax
call fcn.00406430
mov ecx, eax
call fcn.0042186a
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x40ac28
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ac1e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b393
push edx
push ecx
call fcn.005100a2
add esp, 8
lea eax, [ebp - 0x250]
push eax
call fcn.0041eb97
add esp, 4
test eax, eax
jne 0x40ac4b
push 0x6a576c
lea ecx, [ebp - 0x250]
call fcn.004065a0
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x268]
call fcn.00402b90
push str.HaoKaTiy.exe
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 2
call fcn.004065a0
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
push 0
cmovae eax, dword [ebp - 0x268]
push eax
call fcn.00422f29
add esp, 8
lea eax, [ebp - 0x250]
cmp dword [ebp - 0x23c], 8
lea ecx, [ebp - 0x268]
cmovae eax, dword [ebp - 0x250]
push dword [ebp - 0x240]
push eax
call fcn.00402c70
push str.HaoKaSvc.exe
lea ecx, [ebp - 0x268]
call fcn.004065a0
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
push 0
cmovae eax, dword [ebp - 0x268]
push eax
call fcn.00422f29
add esp, 8
lea eax, [ebp - 0x250]
cmp dword [ebp - 0x23c], 8
lea ecx, [ebp - 0x268]
cmovae eax, dword [ebp - 0x250]
push dword [ebp - 0x240]
push eax
call fcn.00402c70
push str.HaoKanTiy.exe
lea ecx, [ebp - 0x268]
call fcn.004065a0
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
push 0
cmovae eax, dword [ebp - 0x268]
push eax
call fcn.00422f29
add esp, 8
lea eax, [ebp - 0x250]
cmp dword [ebp - 0x23c], 8
lea ecx, [ebp - 0x268]
cmovae eax, dword [ebp - 0x250]
push dword [ebp - 0x240]
push eax
call fcn.00402c70
push str.HaoKanSvc.exe
lea ecx, [ebp - 0x268]
call fcn.004065a0
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
push 0
cmovae eax, dword [ebp - 0x268]
push eax
call fcn.00422f29
add esp, 8
lea eax, [ebp - 0x250]
cmp dword [ebp - 0x23c], 8
lea ecx, [ebp - 0x268]
cmovae eax, dword [ebp - 0x250]
push dword [ebp - 0x240]
push eax
call fcn.00402c70
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x268]
push eax
call esi
test eax, eax
je 0x40adf3
cmp dword [ebp - 0x254], 8
lea eax, [ebp - 0x268]
cmovae eax, dword [ebp - 0x268]
push eax
call fcn.00420eb6
add esp, 4
push 0xf
xor eax, eax
mov dword [ebp - 0x288], 0
push str.SOFTWAREHKTcsc
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
call fcn.00402c70
mov byte [ebp - 4], 3
lea eax, [ebp - 0x298]
cmp dword [ebp - 0x284], 8
push str.ed292
cmovae eax, dword [ebp - 0x298]
push eax
lea eax, [ebp - 0x280]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.00421ff7
add esp, 0x10
mov byte [ebp - 4], 4
lea eax, [ebp - 0x280]
cmp dword [ebp - 0x26c], 8
cmovae eax, dword [ebp - 0x280]
push eax
call esi
test eax, eax
je 0x40ae90
cmp dword [ebp - 0x26c], 8
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push eax
call fcn.00420eb6
add esp, 4
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.005291a0
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edi, [ebp - 0x220]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x40aec1
mov eax, dword [0x6a576c]
lea ecx, [ebp - 0x220]
mov dword [edi], eax
lea edx, [ecx + 2]
xor eax, eax
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x29c], 7
mov word [ebp - 0x2b0], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40af00
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2b0]
call fcn.00402c70
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 5
call fcn.00421e99
lea ecx, [ebp - 0x2d8]
mov byte [ebp - 4], 6
call fcn.00421ecd
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x224], 7
lea edx, [ecx + 2]
test eax, eax
je 0x40b0ce
xor eax, eax
mov dword [ebp - 0x2b4], 0
mov word [ebp - 0x238], ax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40af80
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00402c70
push str.HKAru.dll
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 7
call fcn.004065a0
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x2d8]
call fcn.00421fbb
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call esi
test eax, eax
je 0x40b000
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call fcn.00420e9e
add esp, 4
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b010
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00402c70
push str.HKAru64.dll
lea ecx, [ebp - 0x238]
call fcn.004065a0
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call esi
test eax, eax
je 0x40b07a
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call fcn.00420e9e
add esp, 4
push dword [ebp - 0x2b4]
lea ecx, [ebp - 0x2d8]
call fcn.00421fd9
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x40b1cd
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b1c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b398
jmp 0x40b1c3
xor eax, eax
mov word [ebp - 0x238], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b0d7
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00402c70
push str.HKAru.dll
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 8
call fcn.004065a0
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call esi
test eax, eax
je 0x40b145
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call fcn.00420e9e
add esp, 4
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b150
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00402c70
push str.HKAru64.dll
lea ecx, [ebp - 0x238]
call fcn.004065a0
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call esi
test eax, eax
je 0x40b08b
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
push eax
call fcn.00420e9e
add esp, 4
jmp 0x40b08b
push edx
push ecx
call fcn.005100a2
add esp, 8
lea ecx, [ebp - 0x2d8]
call fcn.00421eac
mov edx, dword [ebp - 0x29c]
cmp edx, 8
jb 0x40b218
mov ecx, dword [ebp - 0x2b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b20e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b398
push edx
push ecx
call fcn.005100a2
add esp, 8
mov edx, dword [ebp - 0x26c]
cmp edx, 8
jb 0x40b258
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b24e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b398
push edx
push ecx
call fcn.005100a2
add esp, 8
mov edx, dword [ebp - 0x284]
xor eax, eax
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 7
mov word [ebp - 0x280], ax
cmp edx, 8
jb 0x40b2b5
mov ecx, dword [ebp - 0x298]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b2ab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b398
push edx
push ecx
call fcn.005100a2
add esp, 8
mov edx, dword [ebp - 0x254]
xor eax, eax
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 7
mov word [ebp - 0x298], ax
cmp edx, 8
jb 0x40b312
mov ecx, dword [ebp - 0x268]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b308
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b398
push edx
push ecx
call fcn.005100a2
add esp, 8
mov edx, dword [ebp - 0x23c]
xor eax, eax
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
cmp edx, 8
jb 0x40b36b
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b361
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b398
push edx
push ecx
call fcn.005100a2
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050fa22
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0052ec30
call fcn.0052ec30
call fcn.0052ec30
call fcn.0052ec30
int3