Function at 0x409360
Capabilities:
Check if file exists
Extract resource via kernel32 functions
Print debug messages
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x228
push 0xffffffffffffffff
push 0x45f820
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x480aa4]
xor eax, ebp
mov dword [ebp + 0x224], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
push str.STRINGS
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x2c], ebx
call fcn.00407cc0
push 0x468378
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.00407cc0
mov byte [ebp - 4], 1
call fcn.004321fd
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4093e0
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 2
call fcn.004321fd
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40940d
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x20]
push ecx
mov byte [ebp - 4], 3
call fcn.00407350
add esp, 4
push 0xc
push str.APCLang.dll
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00401f10
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4095f8
mov ecx, 6
mov esi, str.ErrorMessage
lea edi, [ebp + 0x208]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x14]
push edx
push 0x20019
push 0x20019
push str.SoftwareAscentivePerformance_Center
push SysReAllocStringLen
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4095e2
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x14]
push 0
lea ecx, [ebp - 0x30]
push ecx
push 0
lea edx, [ebp + 0x208]
push edx
push eax
call esi
test eax, eax
jne 0x4095c9
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp]
push edx
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x30]
push eax
push 0
lea ecx, [ebp + 0x208]
push ecx
push edx
call esi
mov eax, dword [ebp - 0x34]
mov word [ebp + eax*2], 0
call fcn.004321fd
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4094f1
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ecx
push 0x145
push 0
mov byte [ebp - 4], 5
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x409580
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x38], eax
je 0x409579
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x409573
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
lea ecx, [ebp - 0x28]
call fcn.004073e0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.004059e0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.004016c0
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esi, dword [ebp - 0x18]
push ecx
add esi, 0xfffffff0
mov dword [ebp - 0x28], esp
mov edi, esp
push esi
call fcn.004015f0
add eax, 0x10
add esp, 4
lea ecx, [ebx + 0xa4]
mov dword [edi], eax
call fcn.00422400
mov ecx, ebx
call fcn.004085f0
mov byte [ebp - 4], 4
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4095c9
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
call fcn.004092b0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, ebx
call fcn.004085f0
mov ecx, ebx
call fcn.004092b0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [0x4822c0], eax
jne 0x409675
call fcn.004321fd
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x409626
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
lea ecx, [ebp - 0x18]
push str.Load_XML_Dll_failed__d_dll_path__s
push ecx
call fcn.00402050
mov esi, dword [ebp - 0x18]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0
push 0
push esi
call fcn.004328a4
mov ecx, ebx
call fcn.004092b0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call esi
mov edx, dword [ebp - 0x24]
mov eax, dword [0x4822c0]
push edx
push 0x7d1
push eax
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4096b9
push str.String_Resource_Xml_Not_Found
call esi
push 0x475c94
lea ecx, [ebp - 0x4c]
push ecx
mov dword [ebp - 0x4c], 1
call fcn.00447f4b
mov edx, dword [0x4822c0]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4096e7
push str.String_Xml_Not_Loaded
call esi
push 0x475c94
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], 1
call fcn.00447f4b
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x409716
push str.String_Failed_to_lock_Resource
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x475c94
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x54], 1
call fcn.00447f4b
mov edx, dword [0x4822c0]
push edi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
shr eax, 1
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.00407070
push 0x467a34
push str.DATA
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.004074d0
push str.Performance_Center
push str.APPNAME
lea ecx, [ebp - 0x14]
call fcn.004074d0
push 0x468220
push str.NEWLINE
lea ecx, [ebp - 0x14]
call fcn.004074d0
push 0x467a54
push 0x467f98
lea ecx, [ebp - 0x14]
call fcn.004074d0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [0x4822c0]
push eax
push 0x7d2
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4097b8
push str.Config_Resource_Xml_Not_Found
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x475c94
lea edx, [ebp - 0x44]
push edx
mov dword [ebp - 0x44], 2
call fcn.00447f4b
mov eax, dword [0x4822c0]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4097e9
push str.Config_Xml_Not_Loaded
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x475c94
lea ecx, [ebp - 0x50]
push ecx
mov dword [ebp - 0x50], 2
call fcn.00447f4b
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x409812
push str.Config_Failed_to_lock_Resource
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x475c94
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], 1
call fcn.00447f4b
mov eax, dword [0x4822c0]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push esi
lea ecx, [ebp - 0x18]
call fcn.004073e0
push ecx
lea edx, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x28], esp
mov bl, 0xa
push edx
mov byte [ebp - 4], bl
call fcn.00401b50
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
mov byte [ebp - 4], 0xb
call fcn.00401b50
mov ecx, dword [ebp - 0x2c]
add ecx, 0xa4
mov byte [ebp - 4], bl
call fcn.00422330
lea ecx, [ebp - 0x18]
call fcn.004016c0
lea ecx, [ebp - 0x14]
call fcn.004016c0
lea ecx, [ebp - 0x20]
call fcn.004016c0
lea ecx, [ebp - 0x40]
call fcn.004016c0
lea ecx, [ebp - 0x3c]
call fcn.004016c0
lea ecx, [ebp - 0x1c]
call fcn.004016c0
lea ecx, [ebp - 0x24]
call fcn.004016c0
mov eax, 1
jmp 0x409952
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.0044746c
add ebp, 0x228
mov esp, ebp
pop ebp
ret