Function at 0x401000
Capabilities:
Delete file
Get common file path
Hide graphical window
Move file
Query or enumerate registry value
Set current directory
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x130
push esi
push edi
mov dword [0x41b978], eax
call fcn.00406b70
cmp byte [0x41abc8], 0
je 0x40105e
mov edi, dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
mov esi, 0x41abc8
lea ebx, [ebx]
movzx ecx, byte [esi]
push ecx
call edi
test eax, eax
je 0x401041
add esi, 2
xor al, al
jmp 0x40104f
cmp byte [esi], 0x5c
jne 0x40104a
mov al, 1
jmp 0x40104c
xor al, al
add esi, 1
cmp byte [esi], 0
jne 0x401030
test al, al
jne 0x40105e
mov byte [esi], 0x5c
mov byte [esi + 1], al
call fcn.00404d00
call fcn.004059a0
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x41abc8
call esi
call fcn.00405ab0
test al, al
je 0x401410
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x401410
push ebx
push 0
push 0x2000000
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x41b9ac], eax
call fcn.00405dc0
call fcn.00406b10
test al, al
je 0x40138a
mov eax, dword [esp + 0x148]
test eax, eax
je 0x4010cf
cmp byte [eax], 0x2a
jne 0x4010cf
add eax, 1
push eax
call esi
call fcn.00404e00
call fcn.00402950
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push 0x417f10
push 0x417e10
lea edx, [esp + 0x3c]
push str.Software_s_s
push edx
mov byte [0x41b984], 0
call ebx
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x40]
push ecx
push 0x80000001
mov dword [esp + 0x20], 0
mov byte [0x41b530], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
jne 0x40119c
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x41b530
lea eax, [esp + 0x1c]
push eax
push 0
push str.PATH
push ecx
mov dword [esp + 0x28], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401168
mov byte [0x41b530], 0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x41b530
call esi
test eax, eax
jle 0x40119c
push 0x41b530
push str._sInstall.log
push 0x41b300
call ebx
add esp, 0xc
call fcn.004027d0
mov byte [0x41b984], al
push 0x105
push 0x41acd0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x41acd0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, 0x41acd0
sub ecx, 1
cmp byte [eax + ecx], 0x5c
je 0x4011d3
push 0x41352c
push 0x41acd0
call edi
push 0x105
push 0x41b1f8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x41b1f8
call esi
mov edx, 0x41b1f8
sub edx, 1
cmp byte [eax + edx], 0x5c
je 0x401204
push 0x41352c
push 0x41b1f8
call edi
call fcn.00404d80
test al, al
jne 0x401224
movsx eax, byte [0x41acd0]
push eax
push str._c:Program_Files_
push 0x41b638
call ebx
add esp, 0xc
push 4
push 0x41acd0
push 0x41b740
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x417d10
push 0x413544
push 0x41aff0
call ebx
add esp, 0xc
push str.QueryCancelAutoPlay
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov ecx, dword [0x41b978]
push 0
push 0x401550
push 0
push 0x70
push ecx
mov dword [0x41b9a0], eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
push 5
push eax
mov dword [0x41b97c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
call esi
test eax, eax
je 0x4012e8
mov ebx, dword [sym.imp.USER32.dll_IsDialogMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebp
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ebx, [ebx]
mov ecx, dword [0x41b97c]
lea eax, [esp + 0x1c]
push eax
push ecx
call ebx
test eax, eax
jne 0x4012d0
lea edx, [esp + 0x1c]
push edx
call edi
lea eax, [esp + 0x1c]
push eax
call ebp
push 0
push 0
push 0
lea ecx, [esp + 0x28]
push ecx
call esi
test eax, eax
jne 0x4012b0
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
pop ebp
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, 0x41b518
mov eax, dword [esi - 0xc]
test eax, eax
je 0x40130a
mov edx, dword [0x41b9ac]
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esi]
test eax, eax
je 0x401313
push eax
call edi
add esi, 0x10
cmp esi, 0x41b538
jl 0x4012f3
mov eax, dword [0x41b98c]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x401338
push eax
mov eax, dword [0x41b9ac]
push 0
push eax
call esi
mov eax, dword [0x41b990]
test eax, eax
je 0x40134d
mov ecx, dword [0x41b9ac]
push eax
push 0
push ecx
call esi
mov eax, dword [0x41b994]
test eax, eax
je 0x401362
mov edx, dword [0x41b9ac]
push eax
push 0
push edx
call esi
mov eax, dword [0x41b9b0]
test eax, eax
je 0x40137e
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x41b9b0]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x41b9b0], 0
jmp 0x401396
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x41b980]
test eax, eax
je 0x4013ab
mov ecx, dword [0x41b9ac]
push eax
push 0
push ecx
call esi
call fcn.00405e20
mov edx, dword [0x41b9ac]
push edx
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0x41b0f0
push 0x41abc8
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401409
push 0x41aee8
push 0x41b0f0
lea eax, [esp + 0x3c]
push 0x413570
push eax
call ebx
add esp, 0x10
push 0x80
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 4
push 0
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
call dword [sym.imp.ole32.dll_CoUninitialize]
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x130
ret 0x10