Function at 0x4132f0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Query or enumerate registry value

Disassembly:
mov eax, 0x2018
call fcn.00436dc0
mov eax, dword [0x44a5d0]
xor eax, esp
mov dword [esp + 0x2014], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2024]
push esi
push edi
mov edi, ebp
call fcn.00413cf0
mov eax, ebp
call fcn.00413530
mov esi, ebp
call fcn.0040a4d0
mov eax, dword [ebp + 0x74]
mov eax, dword [eax + 0x1e8]
call fcn.0040a540
mov ecx, dword [ebp + 0x74]
add ecx, 0x1d0
push ecx
push ebp
call fcn.0040a5e0
push 0x1ffe
xor edi, edi
lea eax, [esp + 0x26]
xor edx, edx
push edi
push eax
mov word [esp + 0x2c], dx
call fcn.0042ad60
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000001
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413480
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
push str.374DE290_123F_4565_9164_39C4925E467B
push edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x413480
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4133c4
sub eax, edx
sar eax, 1
push eax
lea esi, [ebp + 0x58]
lea eax, [esp + 0x24]
call fcn.004085a0
mov eax, str._USERPROFILE_
lea edx, [eax + 2]
jmp 0x4133f0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4133f0
sub eax, edx
sar eax, 1
mov ebx, eax
push str._USERPROFILE_
xor eax, eax
mov edx, esi
call fcn.0040ab30
mov edi, eax
cmp edi, 0xffffffff
je 0x413480
push 0
push 0x28
lea eax, [esp + 0x28]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str._USERPROFILE_
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x20]
lea ebx, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x413440
sub ecx, ebx
sar ecx, 1
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
call fcn.00407010
cmp dword [esi + 0x18], 8
jb 0x413466
mov eax, dword [esi + 4]
jmp 0x413469
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413479
test al, 0x10
jne 0x413480
mov edi, esi
call fcn.004083d0
cmp dword [ebp + 0x6c], 0
jne 0x4134bc
push 0
push 0x10
lea edx, [esp + 0x28]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x20]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4134a0
sub eax, edx
sar eax, 1
push eax
lea esi, [ebp + 0x58]
lea eax, [esp + 0x24]
call fcn.004085a0
cmp dword [ebp + 0x70], 8
jb 0x4134c7
mov edi, dword [ebp + 0x5c]
jmp 0x4134ca
lea edi, [ebp + 0x5c]
mov ebp, dword [ebp + 8]
push 0xf
push ebp
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
mov esi, eax
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xffffbfff
or eax, 0x8000
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [esp + 0x2024]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00425821
add esp, 0x2018
ret 4