Function at 0x1000c600
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c36c
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x10051114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, ebx
mov dword [ebp - 0x42c], 0
cmp dword [ebx + 0x14], 8
jb 0x1000c645
mov eax, dword [ebx]
lea ecx, [ebp - 0x42c]
push ecx
push eax
call fcn.1000f0a0
add esp, 8
cmp dword [ebp - 0x42c], 0
je 0x1000c668
mov eax, 1
jmp 0x1000c980
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100214a0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
call fcn.1000caa0
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
mov edx, str.wpsedrv.sys
lea eax, [ebp - 0x420]
mov ecx, str.wpsedrv_x64.sys
cmove ecx, edx
push ecx
push eax
call edi
call fcn.10002f00
mov ecx, eax
test ecx, ecx
je 0x1000c99c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x424]
call fcn.100026b0
test al, al
jne 0x1000c728
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c706
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.10003330
cmp dword [ebx + 0x14], 8
mov esi, ebx
mov dword [ebp - 4], 1
jb 0x1000c739
mov esi, dword [ebx]
cmp dword [ebx + 0x10], 0x11
jne 0x1000c924
mov ecx, str.HardwareProtectWp
mov edx, 0x11
sub esi, ecx
nop
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x1000c924
add ecx, 2
sub edx, 1
jne 0x1000c750
push 0x208
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.100214a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.wallpaperhelper
lea eax, [ebp - 0x218]
push eax
call edi
call fcn.1000caa0
test eax, eax
mov edx, str.HardwareProtect.sys
mov ecx, str.HardwareProtect_x64.sys
lea eax, [ebp - 0x218]
cmove ecx, edx
push ecx
push eax
call edi
call fcn.10002f00
mov ecx, eax
test ecx, ecx
je 0x1000c9a6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x428]
call fcn.100026b0
test al, al
jne 0x1000c829
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c807
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x428]
call fcn.10003330
mov edi, dword [ebp - 0x428]
mov esi, dword [ebp - 0x424]
mov byte [ebp - 4], 3
lea edx, [edi - 0x10]
lea eax, [esi - 0x10]
mov dword [ebp - 0x430], edx
mov dword [ebp - 0x43c], eax
cmp edx, eax
je 0x1000c909
cmp dword [eax + 0xc], 0
lea ecx, [eax + 0xc]
mov dword [ebp - 0x438], ecx
jl 0x1000c8ee
mov ecx, dword [edi - 0x10]
lea esi, [edi - 0x10]
cmp ecx, dword [eax]
jne 0x1000c8ee
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi + 0xc], 0
mov ecx, eax
lea eax, [esi + 0xc]
jl 0x1000c889
cmp ecx, dword [esi]
jne 0x1000c889
lock inc dword [eax]
jmp 0x1000c8c3
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov ecx, eax
mov dword [ebp - 0x434], ecx
test ecx, ecx
je 0x1000c9b0
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 4]
inc eax
add eax, eax
push eax
push edi
push eax
lea eax, [ecx + 0x10]
push eax
call fcn.10003ae0
mov esi, dword [ebp - 0x434]
add esp, 0x10
mov ecx, dword [ebp - 0x438]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1000c8e3
mov edx, dword [ebp - 0x43c]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x10
mov dword [ebp - 0x424], esi
jmp 0x1000c903
push dword [edi - 0xc]
lea ecx, [ebp - 0x424]
push edi
call fcn.10003330
mov esi, dword [ebp - 0x424]
mov edx, dword [ebp - 0x430]
mov byte [ebp - 4], 1
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000c92a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1000c92a
mov esi, dword [ebp - 0x424]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000c95d
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x1000c941
mov eax, dword [ebx]
mov ebx, eax
push 0
push 0
push esi
push 1
push eax
push ebx
call fcn.1000eea0
add esp, 0x18
test eax, eax
js 0x1000c95d
mov edi, 1
jmp 0x1000c95f
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000c97e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100178b1
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10002690
push 0x80004005
call fcn.10002690
call fcn.10003460
int3