Function at 0x423187
Capabilities:
Check if file exists
Create process on windows
Delete file
Get common file path
Move file
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x14f4], edi
jne 0x4231a5
push 1
call fcn.0041d72c
mov ecx, esi
call fcn.0042348f
mov ecx, esi
call fcn.0041e0c4
mov ecx, esi
call fcn.0041d028
mov ecx, esi
call fcn.0041d147
mov ecx, esi
call fcn.0041d55a
lea eax, [esi + 0x44]
push 0x465b5c
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 8]
push eax
call fcn.00418486
push dword [ebp - 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4231f3
push dword [ebp - 8]
call fcn.004244cb
pop ecx
lea eax, [ebp - 8]
push 0x465b48
push eax
lea eax, [ebp - 4]
push eax
call fcn.00418486
push dword [eax]
call fcn.004245e4
pop ecx
lea ecx, [ebp - 4]
call fcn.00404beb
lea eax, [ebp - 8]
push 0x465b34
push eax
lea eax, [ebp - 4]
push eax
call fcn.00418486
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 4]
call fcn.00404beb
push dword [esi + 0x4c]
call fcn.00407376
cmp dword [esi + 4], 0xa
pop ecx
jne 0x423252
push dword [esi + 0x48]
push 1
call fcn.0042a82e
pop ecx
pop ecx
mov ecx, esi
call fcn.0042371f
cmp dword [0x46a958], edi
je 0x423392
cmp dword [0x46a944], edi
je 0x423392
push ebx
mov ebx, 0x81
mov word [ebp - 0x45c], di
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x45a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
lea eax, [ebp - 0x45c]
push edi
push 0x25
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov word [ebp - 0x254], di
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x252]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x45c]
push eax
push 0x465b18
lea eax, [ebp - 0x254]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ax, word [0x467084]
mov ecx, ebx
mov word [ebp - 0x664], ax
xor eax, eax
lea edi, [ebp - 0x662]
add esp, 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x254]
push eax
push 0x465b0c
lea eax, [ebp - 0x664]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
push 0x3c
xor ebx, ebx
pop edi
lea eax, [ebp - 0x4c]
push edi
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x664]
add esp, 0x1c
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], str.open
mov dword [ebp - 0x3c], 0x465af0
mov dword [ebp - 0x30], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop ebx
je 0x423390
lea eax, [ebp - 0x254]
push eax
call fcn.0042740e
test eax, eax
pop ecx
je 0x423390
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x423390
push 0x4e20
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
cmp dword [esi + 0x1514], 1
jne 0x4233a2
mov ecx, esi
call fcn.00423562
cmp dword [esi + 0x1520], edi
jne 0x4233d2
cmp dword [esi + 0x1524], edi
je 0x4233d2
lea eax, [ebp - 4]
push 4
push eax
push 4
push 0x465ad0
push 0x465a8c
push SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x4659f8
lea eax, [ebp - 0xc]
push dword [ebp - 0x10]
push eax
call fcn.00418486
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x423409
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x423409
push 4
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0xc]
call fcn.00404beb
lea ecx, [ebp - 8]
call fcn.00404beb
pop edi
pop esi
leave
ret