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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43888b
mov eax, dword fs:[0]
push eax
mov eax, 0x2034
call fcn.004327d0
mov eax, dword [0x447394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, edi
call fcn.00412dc6
push edi
call fcn.0041266e
xor ebx, ebx
cmp dword [edi + 0x44], ebx
jne 0x412490
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x2020]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [edi + 8]
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
cmp esi, ebx
je 0x412486
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 0x2014]
mov dword [edi + 0x44], eax
push dword [ebp - 0x2018]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push dword [edi + 0x44]
mov dword [edi + 0x48], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [edi + 8]
push esi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [edi + 0x44]
cmp eax, ebx
je 0x412490
mov dword [edi + 0x14], eax
lea esi, [edi + 0xcc]
mov eax, dword [esi]
mov eax, dword [eax + 0x2d8]
call fcn.0040bc6d
mov eax, dword [esi]
add eax, 0x2c0
push eax
push edi
call fcn.0040bcc5
xor eax, eax
push 0x1ffe
mov word [ebp - 0x2010], ax
lea eax, [ebp - 0x200e]
push ebx
push eax
call fcn.00427ce0
add esp, 0xc
lea eax, [ebp - 0x2030]
push eax
push 0x20019
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000001
mov dword [ebp - 0x2030], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412600
push str.374DE290_123F_4565_9164_39C4925E467B
lea esi, [ebp - 0x202c]
mov dword [ebp - 0x2034], ebx
mov dword [ebp - 0x2038], 0x2000
call fcn.004052d9
push 0x43cee0
push 3
push 1
mov eax, esi
push eax
mov dword [ebp - 4], ebx
call fcn.00407bf9
cmp dword [ebp - 0x2014], 8
mov eax, dword [ebp - 0x2028]
jae 0x412543
lea eax, [ebp - 0x2028]
lea ecx, [ebp - 0x2038]
push ecx
lea ecx, [ebp - 0x2010]
push ecx
lea ecx, [ebp - 0x2034]
push ecx
push ebx
push eax
push dword [ebp - 0x2030]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4125ee
lea eax, [ebp - 0x2010]
push eax
lea esi, [edi + 0xb0]
push esi
call fcn.00405302
push ebx
mov ebx, str._USERPROFILE_
push ebx
push esi
call fcn.0040a862
mov dword [ebp - 0x203c], eax
cmp eax, 0xffffffff
je 0x4125ec
push 0
push 0x28
lea eax, [ebp - 0x2010]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x2010]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push dword [ebp - 0x203c]
push esi
call fcn.00407bf9
cmp dword [esi + 0x18], 8
jb 0x4125d2
mov eax, dword [esi + 4]
jmp 0x4125d5
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4125e5
test al, 0x10
jne 0x4125ec
mov eax, esi
call fcn.00407b6b
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x202c]
call fcn.00405329
cmp dword [edi + 0xc4], ebx
jne 0x41262c
push ebx
push 0x10
lea eax, [ebp - 0x2010]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x2010]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.00405302
lea eax, [edi + 0xb0]
cmp dword [eax + 0x18], 8
jb 0x41263d
mov eax, dword [eax + 4]
jmp 0x412640
add eax, 4
mov edi, dword [edi + 8]
push eax
push 0xf
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422a42
leave
ret