Function at 0x101378e
Capabilities:
Check if file exists
Copy file
Get common file path
Query or enumerate registry key

Disassembly:
push 0x64c
mov eax, 0x102b18a
call fcn.01017f8b
xor ebx, ebx
push 0x100649c
lea ecx, [ebp - 0x648]
mov dword [ebp - 0x658], 0x104
mov dword [ebp - 0x654], ebx
call fcn.010135cf
mov esi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x420]
push eax
push ebx
push ebx
push 0x1a
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x62c], ebx
mov dword [ebp - 0x634], ebx
mov dword [ebp - 0x630], ebx
mov dword [ebp - 0x63c], ebx
mov dword [ebp - 0x638], ebx
mov dword [ebp - 0x644], ebx
mov dword [ebp - 0x640], ebx
call esi
test eax, eax
jl 0x1013878
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x10046e8
lea eax, [ebp - 0x420]
push eax
call edi
test eax, eax
je 0x1013878
push 0x1006464
lea eax, [ebp - 0x420]
push eax
call edi
test eax, eax
je 0x1013878
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1013878
lea eax, [ebp - 0x628]
push eax
push ebx
push ebx
push 0x1a
push ebx
call esi
test eax, eax
jl 0x1013878
push 0x100642c
lea eax, [ebp - 0x628]
push eax
call edi
test eax, eax
je 0x1013878
push ebx
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x62c]
push eax
push 0x20019
push ebx
push 0x10063b8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1013b4e
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x1013b38
mov esi, 0xf003f
inc dword [ebp - 0x654]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x650]
mov dword [ebp - 0x658], 0x104
call fcn.010135cf
mov eax, dword [ebp - 0x648]
push dword [eax - 0xc]
lea eax, [ebp - 0x64c]
push eax
lea ecx, [ebp - 0x650]
mov byte [ebp - 4], 1
call fcn.010120ef
push dword [ebp - 0x648]
mov byte [ebp - 4], 2
push dword [ebp - 0x64c]
call fcn.0101798c
test eax, eax
pop ecx
pop ecx
jne 0x1013aed
lea eax, [ebp - 0x634]
push eax
push esi
push ebx
lea eax, [ebp - 0x218]
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x101398b
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x62c]
call fcn.010286e2
test eax, eax
jne 0x1013a69
lea eax, [ebp - 0x634]
push eax
push esi
push ebx
lea eax, [ebp - 0x218]
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1013a69
lea eax, [ebp - 0x63c]
push eax
push esi
push ebx
push 0x100638c
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1013a69
lea eax, [ebp - 0x630]
push eax
push esi
push ebx
push 0x10046e8
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1013a69
push ebx
lea eax, [ebp - 0x638]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x1006370
push dword [ebp - 0x63c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1013a69
push ebx
lea eax, [ebp - 0x644]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x1006368
push dword [ebp - 0x638]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1013a69
push ebx
lea eax, [ebp - 0x640]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push 0x1006360
push dword [ebp - 0x638]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1013a69
push ebx
push dword [ebp - 0x644]
push 0x1006368
push dword [ebp - 0x630]
call dword [sym.imp.SHLWAPI.dll_SHCopyKeyW]
test eax, eax
jl 0x1013a69
push ebx
push dword [ebp - 0x640]
push 0x1006360
push dword [ebp - 0x630]
call dword [sym.imp.SHLWAPI.dll_SHCopyKeyW]
cmp dword [ebp - 0x640], ebx
je 0x1013a7f
push dword [ebp - 0x640]
call edi
mov dword [ebp - 0x640], ebx
cmp dword [ebp - 0x644], ebx
je 0x1013a95
push dword [ebp - 0x644]
call edi
mov dword [ebp - 0x644], ebx
cmp dword [ebp - 0x638], ebx
je 0x1013aab
push dword [ebp - 0x638]
call edi
mov dword [ebp - 0x638], ebx
cmp dword [ebp - 0x634], ebx
je 0x1013ac1
push dword [ebp - 0x634]
call edi
mov dword [ebp - 0x634], ebx
cmp dword [ebp - 0x63c], ebx
je 0x1013ad7
push dword [ebp - 0x63c]
call edi
mov dword [ebp - 0x63c], ebx
cmp dword [ebp - 0x630], ebx
je 0x1013aed
push dword [ebp - 0x630]
call edi
mov dword [ebp - 0x630], ebx
mov ecx, dword [ebp - 0x64c]
add ecx, 0xfffffff0
call fcn.0100fa45
mov ecx, dword [ebp - 0x650]
add ecx, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.0100fa45
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x654]
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10138cf
cmp dword [ebp - 0x62c], ebx
je 0x1013b4e
push dword [ebp - 0x62c]
call edi
mov dword [ebp - 0x62c], ebx
mov ecx, dword [ebp - 0x648]
add ecx, 0xfffffff0
call fcn.0100fa45
call fcn.01017fdf
ret