Function at 0x4a2ce0
Capabilities:
Get common file path
Get file size
Query or enumerate registry value
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1274
call fcn.0042e230
mov eax, dword [0x4c75d0]
xor eax, esp
mov dword [esp + 0x1270], eax
mov ecx, dword [0x4bcf00]
mov eax, dword [ebp + 8]
mov edx, dword [0x4bcf04]
mov dword [esp + 0x1c], ecx
mov cx, word [0x4bcf0c]
push ebx
push esi
mov word [esp + 0x30], cx
mov ecx, dword [0x4bcf18]
push edi
mov dword [esp + 0x40], ecx
mov ecx, 6
mov esi, 0x4bcf24
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x20], eax
mov eax, dword [0x4bcf08]
mov dword [esp + 0x2c], edx
mov edx, dword [0x4bcf10]
mov dword [esp + 0x30], eax
mov eax, dword [0x4bcf14]
xor ebx, ebx
push 0x800
mov dword [esp + 0x3c], edx
mov edx, dword [0x4bcf1c]
mov dword [esp + 0x40], eax
mov ax, word [0x4bcf20]
lea ecx, [esp + 0x27c]
push ebx
push ecx
mov dword [esp + 0x50], edx
mov word [esp + 0x54], ax
mov dword [esp + 0x24], ebx
movsw word es:[edi], word [esi]
mov dword [esp + 0x20], ebx
mov dword [0x4edfb8], 1
call fcn.0042e03c
add esp, 0xc
push 0x800
lea edx, [esp + 0xa7c]
push ebx
push edx
call fcn.0042e03c
lea eax, [esp + 0x34]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a2dc0
sub eax, edx
mov edi, eax
lea ecx, [esp + 0x28]
call fcn.004a26c0
test eax, eax
jne 0x4a2fac
lea eax, [esp + 0x68]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.Microsoft
lea ecx, [esp + 0x6c]
push ecx
call esi
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x6c]
push eax
call esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea ecx, [esp + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4a2fac
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea edx, [esp + 0x20]
push edx
mov edi, eax
push edi
lea eax, [esp + 0x284]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x20]
push ecx
push edx
mov edx, edi
lea ecx, [esp + 0x280]
call fcn.004a2840
add esp, 8
test eax, eax
jne 0x4a2fac
lea eax, [esp + 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a2e83
sub eax, edx
mov edi, eax
lea ecx, [esp + 0x38]
call fcn.004a26c0
test eax, eax
jne 0x4a2fac
lea eax, [esp + 0x170]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
push str.Microsoft
lea ecx, [esp + 0x174]
push ecx
call esi
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x174]
push eax
call esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea ecx, [esp + 0x188]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, 0xffffffff
je 0x4a2fac
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
lea edx, [esp + 0x20]
push edx
mov esi, eax
push esi
lea eax, [esp + 0xa84]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
mov edx, esi
lea ecx, [esp + 0xa80]
call fcn.004a2840
add esp, 8
test eax, eax
jne 0x4a2fac
lea esi, [eax + 0x17]
lea eax, [esp + 0x4c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a2f47
sub eax, edx
mov edi, eax
lea ecx, [esp + 0x4c]
call fcn.004a26c0
test eax, eax
jne 0x4a2fac
lea ecx, [esp + 0x14]
push ecx
push 1
push eax
lea edx, [esp + 0x58]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4a2fac
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x17]
push ecx
push 0
push 0
push str.Advanced
push edx
mov dword [esp + 0x3c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4a2fac
cmp byte [esp + 0x13], 1
je 0x4a2fae
xor esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4edfb8], esi
test ebx, ebx
je 0x4a2fc1
push ebx
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4a2fcc
push eax
call edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4a2fdb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.MSVCR100.dll_rand]
call edi
push 0x99
call dword [sym.imp.MSVCR100.dll_srand]
add esp, 4
call edi
mov ecx, dword [esp + 0x127c]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0042dbe7
mov esp, ebp
pop ebp
ret