Function at 0x4197a0
Capabilities:
Create process on windows
Delete file
Get common file path
Query or enumerate registry value
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5648e6
mov eax, dword fs:[0]
push eax
sub esp, 0xa84
mov eax, dword [0x5c0490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0xa24]
push str.Tool_DIASUninstallExec
push eax
call fcn.00401190
add esp, 0xc
push 0x208
lea ecx, [ebp - 0x218]
push ebx
push ecx
mov dword [ebp - 4], ebx
call fcn.00541d20
add esp, 0xc
push 0x800
lea edx, [ebp - 0xa18]
push ebx
push edx
call fcn.00541d20
add esp, 0xc
push 0x44
lea eax, [ebp - 0xa90]
push ebx
push eax
call fcn.00541d20
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xa44], eax
mov dword [ebp - 0xa40], eax
mov dword [ebp - 0xa3c], eax
mov dword [ebp - 0xa38], eax
mov dword [ebp - 0xa2c], ebx
call fcn.0041a280
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp word [ebp - 0x218], bx
jne 0x41987f
push 0x5988ec
lea edx, [ebp - 0xa24]
push 2
push edx
call fcn.00401410
add esp, 0xc
jmp 0x419b29
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4198ab
push 0x5958c8
lea ecx, [ebp - 0x218]
push ecx
call esi
push str.DiasUninst.EXE
lea edx, [ebp - 0x218]
push edx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
lea eax, [ebp - 0x218]
push eax
call edi
cmp eax, 0xffffffff
jne 0x4199d8
push 0x208
lea ecx, [ebp - 0x218]
push ebx
push ecx
mov dword [ebp - 0xa28], ebx
call fcn.00541d20
add esp, 0xc
lea edx, [ebp - 0xa28]
push edx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xa34], 1
mov dword [ebp - 0xa30], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4199bd
lea eax, [ebp - 0xa30]
push eax
mov eax, dword [ebp - 0xa28]
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0xa34]
push edx
push ebx
push str.SystemRoot
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0xa28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.System32_
lea edx, [ebp - 0x218]
push edx
call esi
push str.DiasUninst.EXE
lea eax, [ebp - 0x218]
push eax
call esi
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocString
lea ecx, [ebp - 0x218]
push ecx
call edi
cmp eax, 0xffffffff
jne 0x4199d8
push str.Cant_Found_DIASUninst.EXE
lea edx, [ebp - 0xa24]
push 2
push edx
call fcn.00401410
add esp, 0xc
jmp 0x419b29
push str.Case_Win9X_Me
lea eax, [ebp - 0xa24]
push 2
push eax
call fcn.00401410
add esp, 0xc
jmp 0x419b29
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0xa18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x5979b8
lea eax, [ebp - 0xa18]
push eax
call esi
lea edx, [ebp - 0xa44]
push edx
lea eax, [ebp - 0xa90]
push eax
push ebx
push ebx
push ebx
push ebx
xor ecx, ecx
push ebx
mov word [ebp - 0xa60], cx
push ebx
lea ecx, [ebp - 0xa18]
push ecx
push ebx
mov dword [ebp - 0xa90], 0x44
mov dword [ebp - 0xa64], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x419a61
push str.Cant_Execute_DIAS_Uninstaller
lea edx, [ebp - 0xa24]
push 2
push edx
call fcn.00401410
add esp, 0xc
jmp 0x419b29
mov eax, dword [ebp - 0xa40]
mov esi, dword [ebp - 0xa44]
push eax
call edi
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x419a8c
lea ecx, [ebp - 0xa2c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
call edi
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0xa1c]
call fcn.00404f00
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xa1c]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x20
push eax
call esi
mov ecx, dword [ebp - 0xa1c]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ecx
call edi
push str..INI
push str..EXE
lea ecx, [ebp - 0xa1c]
call fcn.00413060
mov edx, dword [ebp - 0xa1c]
push 0x20
push edx
call esi
mov eax, dword [ebp - 0xa1c]
push eax
call edi
push 0x5988ec
lea ecx, [ebp - 0xa24]
push 2
push ecx
call fcn.00401410
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0xa1c]
add eax, 0xfffffff0
add esp, 0xc
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x419b29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0xa24]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret