Function at 0x4050a0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x4275e9
mov eax, dword fs:[0]
push eax
mov eax, 0x1098
call fcn.004177f0
mov eax, dword [0x434f14]
xor eax, esp
mov dword [esp + 0x1094], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x434f14]
xor eax, esp
push eax
lea eax, [esp + 0x10ac]
mov dword fs:[0], eax
mov ebp, ecx
call fcn.00404220
xor ebx, ebx
cmp eax, ebx
jne 0x40568e
push 0x16c
call fcn.0040883a
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x10b4], ebx
cmp eax, ebx
je 0x405116
push ebp
mov ecx, eax
call fcn.004021e0
jmp 0x405118
xor eax, eax
mov ecx, eax
mov dword [esp + 0x10b4], 0xffffffff
mov dword [ebp + 0x1a7f4], eax
call fcn.004016d0
call fcn.0040fc5f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40514a
push 0x80004005
call fcn.00401800
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x206
mov eax, 1
lea edx, [esp + 0xc9e]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x10c0], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], eax
mov word [esp + 0xca4], cx
call fcn.004174f0
lea eax, [esp + 0xca4]
push eax
call fcn.00401170
add esp, 0x10
lea ecx, [esp + 0xc98]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x4051c5
push str.QMActn.DLL
push 0x104
lea edx, [esp + 0xca0]
push edx
jmp 0x4051d7
push 0x42a57c
push 0x104
lea eax, [esp + 0xca0]
push eax
call fcn.004010b0
lea ecx, [esp + 0xc98]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push str.QMenuActionGetString
push esi
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4363c0], eax
mov dword [esp + 0x2c], ebx
cmp dword [ebp + 0x78], ebx
jbe 0x405581
lea edi, [ebp + 0x90]
test byte [edi + 0x218], 1
lea edx, [edi + 0x220]
je 0x405565
inc dword [esp + 0x18]
lea eax, [edi + 0x220]
test eax, eax
je 0x40524f
mov eax, edx
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405240
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00402980
mov esi, dword [edi + 0xa40]
cmp esi, ebx
je 0x40535f
push 0x206
lea edx, [esp + 0xea6]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0xeac], cx
call fcn.004174f0
mov ecx, dword [0x43635c]
add esp, 0xc
push 0x104
lea eax, [esp + 0xea4]
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [esp + 0xea0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4052e1
lea eax, [esp + 0xea0]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4052c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xea4]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402980
mov eax, dword [edi]
cmp eax, 0x19e
jne 0x4053a2
call fcn.00403f50
test eax, eax
je 0x40535f
push 0x206
lea edx, [esp + 0xa96]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0xa9c], cx
call fcn.004174f0
add esp, 0xc
lea eax, [esp + 0xa90]
push eax
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Hewlett_PackardHP_Power_AssistantHPPA_Main.exe
lea ecx, [esp + 0xa94]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea edx, [esp + 0xa90]
push edx
call fcn.00403d60
add esp, 4
cmp eax, ebx
je 0x40535f
push str.HP_Power_Assistant
lea ecx, [esp + 0x18]
call fcn.00402aa0
cmp dword [esp + 0x20], ebx
je 0x405559
mov esi, 1
cmp dword [edi], 0x2166
jne 0x405460
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x2c], esp
mov esi, esp
push eax
call fcn.00404380
add eax, 0x10
add esp, 4
mov ecx, ebp
mov dword [esi], eax
call fcn.00404cd0
jmp 0x405559
cmp eax, 0x21a2
jne 0x40535f
call fcn.00403cc0
test eax, eax
je 0x405457
push 0x206
lea ecx, [esp + 0xa96]
xor eax, eax
push ebx
push ecx
mov word [esp + 0xa9c], ax
call fcn.004174f0
add esp, 0xc
lea edx, [esp + 0xa90]
push edx
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str._x86_
lea eax, [esp + 0xa94]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40540f
push str.WTouchWTouchCPL.exe
lea ecx, [esp + 0xa94]
push ecx
jmp 0x40542f
push str.__x86_
lea edx, [esp + 0xa94]
push edx
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
push str.WTouchWTouchCPL.exe
lea eax, [esp + 0xa94]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea ecx, [esp + 0xa90]
push ecx
call fcn.00403d60
add esp, 4
cmp eax, ebx
je 0x405457
mov esi, 1
mov dword [esp + 0x20], esi
jmp 0x40536e
mov dword [esp + 0x20], ebx
jmp 0x405559
mov edx, dword [esp + 0x14]
push str.HP_Quick_Launch_Buttons
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x405493
mov eax, dword [0x4363c8]
mov ecx, dword [eax + 0x10]
call ecx
test eax, eax
je 0x405540
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
push eax
jmp 0x40554e
lea ecx, [esp + 0x34]
push ecx
call sub.KERNEL32.dll_GetSystemPowerStatus
cmp byte [esp + 0x34], 1
jne 0x4054b1
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
push eax
jmp 0x40554e
call fcn.00403b80
test eax, eax
jne 0x4054cc
call fcn.00403c20
test eax, eax
jne 0x4054cc
call fcn.00403cc0
test eax, eax
je 0x405546
mov edx, dword [0x4363c8]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov eax, dword [edx + 0x80]
push ecx
call eax
call fcn.00403dd0
test eax, eax
setne al
cmp al, bl
je 0x405520
cmp dword [esp + 0x28], esi
je 0x405506
cmp dword [esp + 0x24], esi
jne 0x405546
mov eax, dword [edi + 0xa40]
cmp eax, 0x1b
je 0x405540
cmp eax, 0x1c
je 0x405540
mov ecx, dword [edi]
lea eax, [esp + 0x14]
push eax
push ecx
jmp 0x40554e
cmp dword [esp + 0x24], esi
jne 0x405546
mov eax, dword [edi + 0xa40]
cmp eax, 0x1b
je 0x405540
cmp eax, 0x1c
je 0x405540
mov eax, dword [edi]
lea edx, [esp + 0x14]
push edx
push eax
jmp 0x40554e
sub dword [esp + 0x18], esi
jmp 0x405559
mov edx, dword [edi]
lea ecx, [esp + 0x14]
push ecx
push edx
mov ecx, dword [ebp + 0x1a7f4]
call fcn.00402750
cmp dword [esp + 0x1c], ebx
jne 0x405565
mov eax, dword [edi]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
inc eax
add edi, 0xa54
mov dword [esp + 0x2c], eax
cmp eax, dword [ebp + 0x78]
jb 0x405214
mov esi, dword [esp + 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x18], ebx
jne 0x40563a
mov ecx, dword [0x4363c8]
mov edx, dword [ecx + 0x10]
call edx
mov ecx, dword [0x4363c8]
test eax, eax
lea eax, [esp + 0x40]
push eax
push 0x42a480
push 1
je 0x4055dd
mov esi, 0x2162
mov dword [esp + 0x5c], esi
mov edx, dword [ecx + 0x28]
call edx
cmp eax, ebx
jne 0x40563a
lea eax, [esp + 0x270]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4055d0
jmp 0x40560b
mov esi, 0x131
mov dword [esp + 0x5c], esi
mov edx, dword [ecx + 0x28]
call edx
cmp eax, ebx
jne 0x40563a
lea eax, [esp + 0x270]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405600
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x274]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402980
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebp + 0x1a7f4]
push edx
call fcn.00402750
mov dword [esp + 0x1c], esi
mov ecx, dword [ebp + 0x1a7f4]
call fcn.004016e0
mov ecx, dword [ebp + 0x1a7f4]
call fcn.00402ba0
mov eax, dword [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.00408aa7
mov ecx, eax
call fcn.00408c9f
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x10b4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40568e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1094]
xor ecx, esp
call fcn.0041749e
add esp, 0x10a4
ret