Function at 0x40a950
Capabilities:
Delete file
Delete registry key
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x427a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], esi
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x10]
mov dword [esp + 0x5c], edi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 1
call sub.MFC42.DLL_CFileFind::CFileFind
add esi, 0x70
push str.INIwallet00.ocx
lea eax, [esp + 0x38]
mov bl, 2
push esi
push eax
mov byte [esp + 0x68], bl
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push edi
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::FindFile
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40aa30
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 1
call sub.MFC42.DLL_CFileFind::Close
mov edx, dword [esp + 0x10]
push edx
call ebp
mov edi, eax
test edi, edi
je 0x40aa21
push str.DllUnregisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40aa1a
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call edi
jmp 0x40aa36
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.INIwallet01.ocx
lea ecx, [esp + 0x38]
push esi
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
push 0
push edx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40aabe
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 1
call sub.MFC42.DLL_CFileFind::Close
mov eax, dword [esp + 0x10]
push eax
call ebp
mov edi, eax
test edi, edi
je 0x40aaad
push str.DllUnregisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40aaa6
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.INIwallet00.inf
lea edx, [esp + 0x38]
push esi
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40ab16
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 1
call sub.MFC42.DLL_CFileFind::Close
mov ecx, dword [esp + 0x10]
push ecx
call edi
push str.INIwallet01.inf
lea edx, [esp + 0x38]
push esi
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
mov esi, 1
je 0x40ab6f
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_CFileFind::Close
mov ecx, dword [esp + 0x10]
push ecx
call edi
push 0x104
push 0x104
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.Downloaded_Program_Files
lea ecx, [esp + 0x1c]
call fcn.00426a0a
lea edx, [esp + 0x18]
push str.INIwallet00.ocx
lea eax, [esp + 0x38]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push 0
push ecx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40ac25
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_CFileFind::Close
mov edx, dword [esp + 0x10]
push edx
call ebp
mov esi, eax
test esi, esi
je 0x40ac19
push str.DllUnregisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ac12
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
push eax
call edi
mov esi, 1
lea ecx, [esp + 0x18]
push str.INIwallet01.ocx
lea edx, [esp + 0x38]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 8
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40aca8
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_CFileFind::Close
mov ecx, dword [esp + 0x10]
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x40ac9c
push str.DllUnregisterServer
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ac95
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [esp + 0x10]
push edx
call edi
mov esi, 1
lea eax, [esp + 0x18]
push str.INIwallet00.inf
lea ecx, [esp + 0x38]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 9
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
push 0
push edx
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40ad00
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_CFileFind::Close
mov eax, dword [esp + 0x10]
push eax
call edi
lea ecx, [esp + 0x18]
push str.INIwallet01inf
lea edx, [esp + 0x38]
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x60], 0xa
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40ad58
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_CFileFind::Close
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 0x30]
push edx
push 0x20019
push 0
push str.SOFTWARE
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x40ae9e
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
push eax
push 0x20019
push 0
push str.Microsoft
push ecx
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40ae97
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x28]
push edx
push 0x20019
push 0
push str.Code_Store_Database
push eax
call esi
test eax, eax
jne 0x40ae90
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push eax
push str.Distribution_Units
push edx
call esi
test eax, eax
jne 0x40ae89
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push 0x2001f
push 0
push str.BE068095_EEF1_485C_AA1B_288860ACFAED
push ecx
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40ae3c
mov edx, dword [esp + 0x20]
push edx
call edi
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x6c]
cmp eax, 3
jge 0x40ae30
test eax, eax
jl 0x40ae30
mov ecx, dword [esp + 0x1c]
push str.BE068095_EEF1_485C_AA1B_288860ACFAED
push ecx
call ebp
jmp 0x40ae3c
mov edx, dword [esp + 0x1c]
push str.BE068095_EEF1_485C_AA1B_288860ACFAED
push edx
call ebx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push 0x2001f
push 0
push str.C320CD4A_7977_4fd2_BBB7_9E6CC61837C5
push ecx
call esi
test eax, eax
jne 0x40ae89
mov edx, dword [esp + 0x20]
push edx
call edi
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x6c]
cmp eax, 3
jge 0x40ae7d
test eax, eax
jl 0x40ae7d
mov ecx, dword [esp + 0x1c]
push str.C320CD4A_7977_4fd2_BBB7_9E6CC61837C5
push ecx
call ebp
jmp 0x40ae89
mov edx, dword [esp + 0x1c]
push str.C320CD4A_7977_4fd2_BBB7_9E6CC61837C5
push edx
call ebx
mov eax, dword [esp + 0x28]
push eax
call edi
mov ecx, dword [esp + 0x2c]
push ecx
call edi
mov edx, dword [esp + 0x30]
push edx
call edi
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 1
call fcn.00426a64
lea ecx, [esp + 0x10]
mov byte [esp + 0x5c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret