Function at 0x48a680
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b262
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x5c5244]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.init_powersavehelper
call fcn.00492250
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004f39e0
add esp, 0x10
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.ComputerZ_PowerSaveDll.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.004287b0
mov ecx, eax
test ecx, ecx
je 0x48a8fe
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov dword [ebp - 4], 1
call fcn.004287b0
mov ecx, eax
test ecx, ecx
je 0x48a908
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x218]
test eax, 0xffff0000
jne 0x48a765
movzx eax, ax
lea ecx, [ebp - 0x21c]
push eax
call fcn.004301d0
jmp 0x48a792
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48a770
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00429710
mov byte [ebp - 4], 3
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00452330
add esp, 8
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x21c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48a7d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.2.1020.1010.222
push dword [ebp - 0x220]
call fcn.004940a0
add esp, 8
test eax, eax
js 0x48a7fe
push str.Can_use_new_ComputerZ_PowerSaveDll_interface.
call fcn.00492250
add esp, 4
mov dword [esi + 0xbc], 1
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x48a85a
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48a85a
lea eax, [ebp - 0x218]
push eax
call fcn.004cf4a0
add esp, 4
test eax, eax
je 0x48a85a
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x48a85a
push dword [0x5c4a74]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48a85a
call eax
mov dword [esi + 0x38], eax
cmp dword [esi + 0x38], 0
jne 0x48a87f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
push str.init_powersaverhelper_false__path__s___err__u_
call fcn.00492250
add esp, 0xc
xor esi, esi
jmp 0x48a8bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
push str.init_powersaverhelper__path__s___err__u_
call fcn.00492250
mov ecx, dword [esi + 0x38]
add esp, 0xc
mov eax, dword [ecx]
push ecx
call dword [eax]
test eax, eax
je 0x48a8ad
push str.m_PowerSaverHelper__Init_succ
jmp 0x48a8b2
push str.powersaverhelper_init_false
call fcn.00492250
add esp, 4
mov esi, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x48a8e1
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004da3bd
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004225f0
push 0x80004005
call fcn.004225f0
int3