Function at 0x414e90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44812b
mov eax, dword fs:[0]
push eax
sub esp, 0x838
mov eax, dword [0x45a1cc]
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
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x834]
mov ebx, dword [ebp + 0xc]
push esi
push eax
mov dword [ebp - 0x844], 1
call fcn.00414d20
push dword [ebp - 0x834]
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414efc
xor ebx, ebx
jmp 0x4152e6
mov ecx, dword [esi]
mov edx, str.ludashi
mov eax, ecx
mov si, word [eax]
cmp si, word [edx]
jne 0x414f2b
test si, si
je 0x414f27
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x414f2b
add eax, 4
add edx, 4
test si, si
jne 0x414f05
xor eax, eax
jmp 0x414f30
sbb eax, eax
or eax, 1
test eax, eax
jne 0x414fc0
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00425410
mov esi, dword [ebp - 0x834]
add esp, 0xc
call fcn.00415340
test eax, eax
mov edx, str.HardwareProtect.sys
mov ecx, str.HardwareProtect_x64.sys
lea eax, [ebp - 0x218]
cmove ecx, edx
push ecx
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x218]
lea ecx, [ebx + 4]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x414f82
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
push edx
push eax
call fcn.00403300
push 0xf
push str.HardwareProtect
mov ecx, ebx
call fcn.00403300
push 2
lea ecx, [ebx + 8]
push 0x4524b4
call fcn.00403300
jmp 0x415213
mov edx, str.bizhi
mov eax, ecx
mov si, word [eax]
cmp si, word [edx]
jne 0x414fed
test si, si
je 0x414fe9
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x414fed
add eax, 4
add edx, 4
test si, si
jne 0x414fc7
xor eax, eax
jmp 0x414ff2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x415082
push 0x208
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00425410
mov esi, dword [ebp - 0x834]
add esp, 0xc
call fcn.00415340
test eax, eax
mov edx, str.wallpaperhelperHardwareProtect.sys
mov ecx, str.wallpaperhelperHardwareProtect_x64.sys
lea eax, [ebp - 0x420]
cmove ecx, edx
push ecx
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x420]
lea ecx, [ebx + 4]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x415044
sub edx, esi
lea eax, [ebp - 0x420]
sar edx, 1
push edx
push eax
call fcn.00403300
push 0x11
push str.HardwareProtectWp
mov ecx, ebx
call fcn.00403300
push 3
lea ecx, [ebx + 8]
push 0x44a304
call fcn.00403300
jmp 0x415213
mov edx, str.ldslite
mov eax, ecx
nop dword [eax]
mov si, word [eax]
cmp si, word [edx]
jne 0x4150b6
test si, si
je 0x4150b2
mov si, word [eax + 2]
cmp si, word [edx + 2]
jne 0x4150b6
add eax, 4
add edx, 4
test si, si
jne 0x415090
xor eax, eax
jmp 0x4150bb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41514e
push 0x208
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00425410
mov esi, dword [ebp - 0x834]
add esp, 0xc
call fcn.00415340
test eax, eax
mov edx, str.HardwareProtect.sys
mov ecx, str.HardwareProtect_x64.sys
lea eax, [ebp - 0x628]
cmove ecx, edx
push ecx
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x628]
lea ecx, [ebx + 4]
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x415110
sub edx, esi
lea eax, [ebp - 0x628]
sar edx, 1
push edx
push eax
call fcn.00403300
push 0x13
push str.HardwareProtectLite
mov ecx, ebx
call fcn.00403300
push 2
lea ecx, [ebx + 8]
push 0x44a3c8
call fcn.00403300
jmp 0x415213
mov eax, str.gamemaster
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x415179
test dx, dx
je 0x415175
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x415179
add ecx, 4
add eax, 4
test dx, dx
jne 0x415153
xor eax, eax
jmp 0x41517e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41520b
push 0x208
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.00425410
mov esi, dword [ebp - 0x834]
add esp, 0xc
call fcn.00415340
test eax, eax
mov edx, str.UtilsSpDrv_x86.sys
mov ecx, str.UtilsSpDrv_amd64.sys
lea eax, [ebp - 0x830]
cmove ecx, edx
push ecx
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x830]
lea ecx, [ebx + 4]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4151d0
sub edx, esi
lea eax, [ebp - 0x830]
sar edx, 1
push edx
push eax
call fcn.00403300
push 5
push str.SpDrv
mov ecx, ebx
call fcn.00403300
push 2
lea ecx, [ebx + 8]
push 0x44a4c0
call fcn.00403300
jmp 0x415213
xor eax, eax
mov dword [ebp - 0x844], eax
mov dword [ebx + 0xc], 0
cmp dword [0x459d7c], 0
je 0x4152c7
push 0x4494fc
mov dword [ebp - 0x83c], 0
xor edi, edi
mov dword [ebp - 0x840], 0
mov dword [ebp - 0x838], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4152bd
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x415291
lea ecx, [ebp - 0x838]
push ecx
lea ecx, [ebp - 0x840]
push ecx
lea ecx, [ebp - 0x83c]
push ecx
call eax
movzx eax, word [ebp - 0x838]
mov edi, 1
mov dword [ebp - 0x838], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x4152bd
cmp dword [ebp - 0x83c], 5
jne 0x4152bd
mov eax, dword [0x45b9b8]
mov ecx, 1
cmp dword [ebp - 0x840], ecx
cmove eax, ecx
mov dword [0x45b9b8], eax
mov dword [0x459d7c], 0
cmp dword [0x45b9b8], 0
je 0x4152e0
call fcn.004157f0
test eax, eax
je 0x4152e0
mov dword [ebx + 0xc], 1
mov ebx, dword [ebp - 0x844]
mov eax, dword [ebp - 0x834]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x41530b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.0041c009
mov esp, ebp
pop ebp
ret 0xc