Function at 0x421900
Capabilities:
Get common file path
Get startup folder
Persist via run registry key

Disassembly:
sub esp, 0xc3c
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0xc38], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x4400
xor ebx, ebx
lea eax, [esi + 0x4ae0]
push ebx
push eax
call fcn.00453450
add esp, 0xc
push ebx
push 0x104
lea ecx, [esi + 0x14]
push ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x8ee0], 0xffffffff
mov dword [esi + 0x2abc], ebx
mov dword [esi + 4], ebx
call fcn.0044a660
mov ecx, dword [esi + 0xc]
push 1
push 0x104
lea edx, [esi + 0x21c]
push edx
call fcn.0044a660
mov eax, dword [esi + 0xc]
add eax, 0x218
push eax
lea ecx, [esi + 0x424]
push 0x104
push ecx
call fcn.00453d84
mov edx, dword [esi + 0xc]
add edx, 0x420
push edx
lea edi, [esi + 0x62c]
push 0x104
push edi
call fcn.00453d84
add esp, 0x18
push 0x104
lea ebp, [esi + 0x834]
push ebp
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4219df
mov edx, ebp
mov eax, edi
sub edx, edi
jmp 0x4219d0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x4219d0
push ebp
push str.m_wszSysWow64Dir___s__n
call fcn.004454c0
mov ecx, dword [esi + 0xc]
add esp, 8
lea eax, [esi + 0xa3c]
push eax
call fcn.0044a7c0
lea ecx, [esi + 0xc44]
push ecx
mov ecx, dword [esi + 0xc]
call fcn.0044b540
lea edi, [esi + 0xe4c]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x421a22
sub eax, edx
sar eax, 1
mov ebp, 0x5c
cmp word [esi + eax*2 + 0xe4a], bp
jne 0x421a5e
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x421a45
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esi + eax*2 + 0xe4a], dx
lea edi, [esi + 0x1054]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x421a75
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 0x1052], bp
jne 0x421aac
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x421a93
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esi + eax*2 + 0x1052], cx
push 0x206
lea eax, [esp + 0x636]
xor edx, edx
push ebx
push eax
mov word [esp + 0x63c], dx
call fcn.00453450
push 0x206
lea edx, [esp + 0x84a]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x850], cx
call fcn.00453450
mov eax, dword [esi + 0xc]
add esp, 0x18
cmp byte [eax + 5], bl
je 0x421b9d
push 0x20019
lea edx, [esp + 0x224]
push edx
push str.Programs
xor ecx, ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocString
mov word [esp + 0x234], cx
call fcn.00451b90
mov ebx, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov ebp, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
add esp, 0x14
test eax, eax
jne 0x421b7d
lea eax, [esp + 0x14]
push eax
push 0xb
push 0
call ebp
test eax, eax
jne 0x421b7d
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x220]
push ecx
push edx
call ebx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x421b7d
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
nop
movzx ecx, word [esp + eax + 0x220]
mov word [esp + eax + 0xa40], cx
add eax, 2
test cx, cx
jne 0x421b80
jmp 0x421cfc
mov ebp, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [esp + 0x10]
push eax
push 2
push ebx
call ebp
mov ebx, dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x421bf6
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xa40]
push ecx
push edx
call ebx
mov edi, dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x421bfc
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x421bfc
mov edi, dword [sym.imp.SHELL32.dll_SHGetMalloc]
lea eax, [esp + 0x10]
push eax
push 0x17
push 0
call ebp
test eax, eax
jne 0x421c42
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x220]
push ecx
push edx
call ebx
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x421c42
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x10]
push eax
push 0x1a
push 0
call ebp
test eax, eax
jne 0x421c9d
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x630]
push ecx
push edx
call ebx
lea eax, [esp + 0x630]
push eax
push str.CSIDL_APPDATA___s__n
call fcn.004454c0
add esp, 8
lea ecx, [esp + 0x14]
push ecx
call edi
test eax, eax
jne 0x421c9d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x10]
push eax
push 0x23
push 0
call ebp
test eax, eax
jne 0x421cfc
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x838]
push ecx
push edx
call ebx
lea eax, [esp + 0x838]
push eax
push str.CSIDL_COMMON_APPDATA___s__n
call fcn.004454c0
add esp, 8
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x421cfc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x220]
push eax
lea ecx, [esi + 0x125c]
push ecx
call edi
lea edx, [esp + 0xa48]
push edx
lea eax, [esi + 0x1464]
push eax
call edi
lea ecx, [esp + 0x640]
push ecx
lea edx, [esi + 0x166c]
push edx
call edi
lea eax, [esp + 0x850]
push eax
lea ecx, [esi + 0x1874]
push ecx
call edi
mov edx, dword [esi + 0xc]
add esp, 0x20
cmp byte [edx + 5], 0
je 0x421d9e
push 0x20019
lea ecx, [esp + 0x1c]
push ecx
push str.Desktop
xor eax, eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocString
mov word [esp + 0x2c], ax
call fcn.00451b90
add esp, 0x14
test eax, eax
jne 0x421de5
lea edx, [esp + 0x14]
push edx
push eax
push eax
call ebp
test eax, eax
jne 0x421de5
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
call ebx
lea edx, [esp + 0x10]
push edx
jmp 0x421dbe
lea eax, [esp + 0x14]
push eax
push 0x19
push 0
call ebp
test eax, eax
jne 0x421de5
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
call ebx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x421de5
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0x1a7c]
push ecx
call edi
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x43a]
push eax
mov word [esp + 0x43c], dx
call fcn.00453450
mov ecx, dword [esi + 0xc]
add esp, 0x14
cmp byte [ecx + 5], 0
je 0x421e8e
push 0x20019
lea eax, [esp + 0x42c]
push eax
push str.Startup
xor edx, edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocString
mov word [esp + 0x2c], dx
call fcn.00451b90
add esp, 0x14
test eax, eax
jne 0x421ed8
lea ecx, [esp + 0x14]
push ecx
push 0xb
push eax
call ebp
test eax, eax
jne 0x421ed8
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x428]
push edx
push eax
call ebx
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x421ed8
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
jmp 0x421ecc
lea eax, [esp + 0x14]
push eax
push 0x18
push 0
call ebp
test eax, eax
jne 0x421ed8
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x428]
push ecx
push edx
call ebx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x421ed8
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x428]
push eax
lea ecx, [esi + 0x1c84]
push ecx
call edi
push 0x20019
lea eax, [esi + 0x24a4]
push eax
push str.SourcePath
xor edx, edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
mov word [eax], dx
call fcn.00451b90
xor eax, eax
lea edx, [esi + 0x26ac]
mov word [edx], ax
mov eax, 0x475e98
add esp, 0x1c
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x421f23
xor ecx, ecx
mov word [esi + 0x2ac8], cx
lea ecx, [esi + 0x4ac8]
mov dword [esi + 0x2ac4], 0
call fcn.00401b40
mov ecx, dword [esp + 0xc48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00453432
add esp, 0xc3c
ret