Function at 0x4021e9
Capabilities:
Check if file exists
Get common file path
Get file size
Persist via run registry key
Query or enumerate registry value
Read file on windows
Set registry value
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3b8]
sub esp, 0x438
mov eax, dword [0x41b424]
xor eax, ebp
mov dword [ebp + 0x3b4], eax
push ebx
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp - 0x5c]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x2b0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.004015b1
lea ecx, [ebp - 0x6c]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push eax
mov dword [ebp - 0x68], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 0x103
lea eax, [ebp + 0xa9]
push ebx
push eax
mov byte [ebp + 0xa8], bl
call fcn.0040ff00
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0xa8]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
mov edi, str.PS_removal
push edi
push dword [ebp - 0x6c]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4022d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00405a2a
call fcn.00405a3c
push eax
push str.uninstaller
lea eax, [ebp + 0x2b0]
push eax
push str._s_s__d.exe
push esi
push eax
call fcn.00405899
call fcn.00405a3c
push eax
push edi
push str._s__d
lea eax, [ebp + 0x1ac]
push esi
push eax
call fcn.00405899
add esp, 0x30
jmp 0x4022f9
push esi
push str.uninstaller.exe
lea eax, [ebp + 0x2b0]
push eax
call dword [sym.imp.SHLWAPI.dll_StrNCatA]
push edi
push 0x41813c
lea eax, [ebp + 0x1ac]
push esi
push eax
call fcn.00405899
add esp, 0x10
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [ebp - 0x5c]
push eax
call edi
push ebx
push 0x80
push 2
push ebx
push 3
mov dword [ebp - 0x60], eax
push 0xc0000000
lea eax, [ebp + 0x2b0]
push eax
call edi
mov dword [ebp - 0x64], eax
cmp eax, 0xffffffff
jne 0x40234b
push dword [ebp - 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0xffffffffffffffff
jmp 0x40244c
push esi
push 0x418d1c
lea eax, [ebp + 0x2b0]
push eax
call dword [sym.imp.SHLWAPI.dll_StrNCatA]
lea eax, [ebp + 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp + 0x2b0]
push eax
push 1
push ebx
lea eax, [ebp + 0x1ac]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x6c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x68]
call esi
cmp dword [ebp - 0x60], 0xffffffff
je 0x40243e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40243e
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push dword [ebp - 0x60]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x70], esi
cmp esi, ebx
je 0x40243e
lea eax, [esi + 1]
push eax
push 8
push edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x68], edi
cmp edi, ebx
je 0x40243e
push ebx
lea eax, [ebp - 0x74]
push eax
push esi
push edi
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40243e
cmp dword [ebp - 0x74], ebx
jbe 0x40243e
push esi
mov ecx, edi
call fcn.00402190
pop ecx
cmp eax, ebx
je 0x402429
push 5
pop ecx
push dword [ebp - 0x70]
mov edi, eax
mov esi, str.asInvoker_
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x68]
movsb byte es:[edi], byte [esi]
call fcn.00402190
pop ecx
cmp eax, ebx
jne 0x402409
mov esi, dword [ebp - 0x70]
push ebx
lea eax, [ebp - 0x80]
push eax
push esi
push dword [ebp - 0x68]
mov dword [ebp - 0x80], ebx
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x64]
call esi
mov ecx, dword [ebp + 0x3b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040588a
add ebp, 0x3b8
leave
ret