Function at 0x40508e
Capabilities:
Delete file
Get common file path
Get geographical location
Get startup folder
Query environment variable

Disassembly:
push ebp
sub esp, 0x130
lea ebp, [esp - 4]
mov eax, dword [0x485df0]
xor eax, ebp
mov dword [ebp + 0x130], eax
push 0x48
mov eax, 0x463847
call fcn.0043e9a8
mov dword [ebp - 0x54], ecx
mov edi, 0x4872a4
push edi
lea ecx, [ebp - 0x24]
call fcn.00401c03
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
push 0x20019
push str.SOFTWAREHewlett_PackardTCS_
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004013c6
test eax, eax
je 0x4050fd
push str.Cannot_find_user_reg_key_
call fcn.00408586
pop ecx
jmp 0x405451
lea eax, [ebp - 0x14]
mov esi, 0x104
push eax
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], esi
call fcn.00402209
push eax
push str.PathToSubsetInfo
lea ecx, [ebp - 0x2c]
call fcn.0040143f
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.00401bd9
lea ecx, [ebp - 0x2c]
call fcn.00401351
push edi
lea ecx, [ebp - 0x14]
call fcn.00401c03
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00402209
push esi
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00401bd9
lea ecx, [ebp - 0x3c]
call fcn.0041adfd
push ebx
push 0x80
push 3
push ebx
push 1
mov edi, SysReAllocString
push edi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.0041b185
test eax, eax
jne 0x4051a9
mov esi, dword [ebp - 0x14]
push esi
push str.Cannot_open_encrypted_user_reg_data__s_
call fcn.0040859a
pop ecx
pop ecx
lea ecx, [ebp - 0x3c]
call fcn.0041b16e
lea ecx, [esi - 0x10]
jmp 0x40544c
lea ecx, [ebp + 0x98]
call fcn.00417943
lea ecx, [ebp - 0x3c]
call fcn.0041b039
inc eax
push eax
lea ecx, [ebp + 0x98]
call fcn.00417bb8
lea ecx, [ebp + 0x98]
call fcn.0043a5b6
dec eax
lea ecx, [ebp + 0x98]
mov dword [ebp - 0x50], eax
call fcn.00422e84
mov ecx, dword [ebp - 0x50]
mov byte [eax + ecx], bl
lea ecx, [ebp + 0x98]
call fcn.00422e84
dec eax
push eax
lea ecx, [ebp + 0x98]
call fcn.0043a5b6
push eax
lea ecx, [ebp - 0x3c]
call fcn.0041aea6
lea ecx, [ebp]
call fcn.00417943
lea eax, [ebp]
push eax
push 0x46a814
push 0x18
lea eax, [ebp + 0x98]
push 0x46a7fc
push eax
mov byte [ebp - 4], 5
call fcn.004092ce
add esp, 0x14
test al, al
jne 0x405249
push str.Cannot_decrypt_user_reg_data_
call fcn.004085ae
pop ecx
jmp 0x40542b
lea ecx, [ebp - 0x4c]
call fcn.0040245a
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 6
call fcn.00403eae
test al, al
jne 0x405279
push str.Cannot_parse_user_reg_data_XML_
call fcn.004085ae
pop ecx
jmp 0x405423
push 0x46bf48
lea ecx, [ebp - 0x20]
call fcn.004042a2
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
call fcn.00402209
push eax
push 1
push ebx
push 0x23
push ebx
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x4052b6
push eax
push str.SHGetFolderPath___failed__hr0x_X
call fcn.004085ae
pop ecx
pop ecx
jmp 0x405418
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.00401bd9
lea eax, [ebp - 0x20]
push str.Norton
push eax
call fcn.00417145
lea eax, [ebp - 0x20]
push str.976C7F3A_DE2D_4d36_90A2_E3169FDD2206
push eax
call fcn.00417145
push dword [ebp - 0x20]
call fcn.0041b47c
lea eax, [ebp - 0x20]
push str.HPUserData.dat
push eax
call fcn.00417145
add esp, 0x1c
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0xa
call fcn.004518fa
pop ecx
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
jne 0x40532b
push str.Failed_to_create_standalone_settings_manager_object_
call fcn.004085ae
jmp 0x4053de
mov eax, dword [ecx]
push ebx
push 2
push dword [ebp - 0x20]
call dword [eax + 0x30]
test edi, eax
je 0x40534b
push eax
push str.Error_0x_08X_occurred_
call fcn.004085ae
pop ecx
jmp 0x4053de
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
lea edx, [ebp - 0x18]
push edx
push 0x46a6bc
call dword [eax]
test edi, eax
jne 0x40533a
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push str.HP_User_Data
call dword [eax + 0xc]
test edi, eax
je 0x40537b
push str.Failed_to_create_a_new_key_
jmp 0x405321
push dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
push str.Country_Code
call dword [eax + 0x24]
push dword [ebp - 0x48]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
push str.Email_Address
call dword [eax + 0x24]
push dword [ebp - 0x44]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
push str.First_Name
call dword [eax + 0x24]
push dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
push str.Last_Name
call dword [eax + 0x24]
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
test edi, eax
je 0x4053d4
push str.Failed_to_commit_changes_
jmp 0x405321
push str.user_reg_data_has_been_transferred.
call fcn.00408586
pop ecx
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 9
cmp ecx, ebx
je 0x4053f2
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 8
cmp ecx, ebx
je 0x405405
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 7
cmp ecx, ebx
je 0x405418
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004014ff
lea ecx, [ebp - 0x4c]
call fcn.00402489
lea ecx, [ebp]
call fcn.004179fc
lea ecx, [ebp + 0x98]
call fcn.004179fc
lea ecx, [ebp - 0x3c]
call fcn.0041b16e
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004014ff
lea ecx, [ebp - 0x2c]
call fcn.00401351
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.004014ff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x130]
xor ecx, ebp
call fcn.0043e999
add ebp, 0x134
leave
ret