Function at 0x411b30
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a62d
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x4611f4]
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 dword [ebp - 0x438], 0
call fcn.0041d280
test eax, eax
lea eax, [ebp - 0x438]
push eax
je 0x411b81
push 0x20119
jmp 0x411b86
push 0x20019
push 0
push str.CLSID16076CC1_DE6A_4EB5_9356_201305201800InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411ed9
mov dword [ebp - 0x43c], eax
lea eax, [ebp - 0x440]
push eax
lea ebx, [edi + 0x50]
push ebx
lea eax, [ebp - 0x43c]
push eax
push 0
push 0
push dword [ebp - 0x438]
mov dword [ebp - 0x440], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411ed9
push 0x4564d8
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push ebx
call esi
test eax, eax
je 0x411ed9
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.bfAppStore_
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
je 0x411ed9
push 0x104
lea eax, [ebp - 0x218]
push eax
lea eax, [edi + 0x2a4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x42c], 0
lea eax, [ebp - 0x42c]
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00411f00
test eax, eax
js 0x411ec2
mov ebx, dword [ebp - 0x42c]
push ebx
lea ecx, [ebp - 0x428]
call fcn.0041a670
mov byte [ebp - 4], 1
cmp dword [ebp - 0x428], 0
jne 0x411cd7
xor esi, esi
push ebx
mov ecx, edi
mov dword [ebp - 0x42c], esi
call fcn.00412470
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x411ec8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x411ec8
mov dword [edi + 0x258], 0
mov dword [ebp - 0x424], 0
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
mov eax, dword [ebx]
push ecx
push ebx
call dword [eax + 0x20]
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x411d51
mov dword [ebp - 0x430], 0
lea edx, [ebp - 0x430]
mov byte [ebp - 4], 3
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x411d3d
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov dword [edi + 0x258], eax
mov eax, dword [ebp - 0x430]
mov byte [ebp - 4], 2
test eax, eax
je 0x411d4b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x424]
mov byte [ebp - 4], 1
test eax, eax
je 0x411d5f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x411d73
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor esi, esi
push ebx
mov ecx, edi
mov dword [ebp - 0x42c], esi
call fcn.00412470
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [edi + 0x50]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.bfDesktopAPI.dll
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x424], esi
lea eax, [ebp - 0x424]
push eax
sub esp, 0xc
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 5
call fcn.0040aa90
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x411e87
mov ecx, dword [eax]
push 0x454da8
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x411e57
push dword [ebp - 0x424]
lea ecx, [ebp - 0x428]
call fcn.0041a670
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x411e43
mov ecx, dword [eax]
push 0x454d98
push eax
call dword [ecx + 0x28]
mov eax, dword [ebp - 0x428]
dec dword [edi + 0x258]
mov byte [ebp - 4], 5
test eax, eax
je 0x411e57
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x424]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x411e87
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x424], eax
test ecx, ecx
je 0x411e87
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x424]
mov ecx, dword [ebp - 0x434]
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
test ecx, ecx
je 0x411eb2
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x424]
mov byte [ebp - 4], 4
test eax, eax
je 0x411ec8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x411ec8
mov esi, dword [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x411ed9
mov eax, dword [esi]
push esi
call dword [eax + 8]
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.00431c68
mov esp, ebp
pop ebp
ret