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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0xf072008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x18]
xor ebx, ebx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x21c], esi
cmp word [ebp + 0x10], bx
je 0xf053598
cmp eax, ebx
je 0xf053598
cmp esi, ebx
je 0xf053598
cmp dword [esi], ebx
je 0xf0532f8
cmp ecx, ebx
je 0xf053598
push edi
lea eax, [ebp - 0x220]
push eax
push 0x20019
push ebx
push 0xf0047e0
push 0x80000002
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x218], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf053573
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x214]
push eax
push ebx
lea eax, [ebp - 0x228]
push eax
push ebx
mov edi, 0xf0047d0
push edi
push dword [ebp - 0x220]
mov dword [ebp - 0x214], ebx
call esi
mov eax, dword [ebp - 0x214]
cmp eax, ebx
je 0xf053459
cmp dword [ebp - 0x228], 7
jne 0xf053459
inc eax
push eax
call fcn.0f005706
pop ecx
mov dword [ebp - 0x218], eax
cmp eax, ebx
je 0xf053436
lea ecx, [ebp - 0x214]
push ecx
push eax
mov byte [eax], bl
lea eax, [ebp - 0x228]
push eax
push ebx
push edi
push dword [ebp - 0x220]
call esi
test eax, eax
jne 0xf053459
cmp dword [ebp - 0x214], ebx
je 0xf053459
mov esi, dword [ebp - 0x218]
cmp byte [esi], bl
je 0xf053459
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, 0x208
cmp eax, 0xffffffff
jne 0xf0533f7
push ebx
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0xf0533fd
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], eax
jmp 0xf0533fd
mov dword [ebp - 0x210], esi
push dword [ebp - 0x210]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x224]
call fcn.0f052f61
test eax, eax
jne 0xf05344b
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0xf05341d
sub eax, edx
lea esi, [esi + eax + 1]
mov dword [ebp - 0x210], ebx
cmp byte [esi], bl
jne 0xf0533c2
jmp 0xf053446
push 0x11
push ebx
push ebx
push 7
call fcn.0f02c9f5
call fcn.0f02d021
mov edi, 0x208
cmp dword [ebp - 0x210], ebx
jne 0xf0534ff
jmp 0xf05345e
mov edi, 0x208
push edi
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x20c], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xf0047cc
push dword [ebp - 0x224]
call fcn.0f005cda
pop ecx
pop ecx
test eax, eax
jne 0xf0534de
mov esi, dword [sym.imp.USER32.dll_GetKeyboardType]
push ebx
call esi
cmp eax, 7
jne 0xf0534de
push 1
call esi
cmp eax, 1
jne 0xf0534a6
push 0xf0047c0
jmp 0xf0534e3
cmp eax, 2
jne 0xf0534b2
push 0xf0047b4
jmp 0xf0534e3
cmp eax, 3
jne 0xf0534be
push 0xf0047a8
jmp 0xf0534e3
and eax, 0xff00
cmp eax, 0x1200
lea eax, [ebp - 0x20c]
jne 0xf0534d7
push 0xf00479c
jmp 0xf0534e9
push 0xf00478c
jmp 0xf0534e9
push 0xf00478c
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0f00a2b3
lea eax, [ebp - 0x20c]
add esp, 0xc
mov dword [ebp - 0x210], eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0xf05356d
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0xf053518
mov esi, dword [ebp - 0x21c]
sub eax, edx
mov dword [ebp - 0x214], eax
je 0xf05355f
mov ecx, dword [esi]
cmp eax, ecx
jae 0xf05355f
cmp ecx, 0x104
jae 0xf05355f
push dword [ebp - 0x210]
push ecx
push dword [ebp - 0x22c]
call fcn.0f00a32c
mov eax, dword [ebp - 0x214]
xor edi, edi
add esp, 0xc
mov dword [esi], eax
inc edi
jmp 0xf05357f
push 0x7a
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0xf05357f
mov esi, dword [ebp - 0x21c]
push 2
xor edi, edi
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x218], ebx
je 0xf053593
push dword [ebp - 0x218]
call fcn.0f00996a
pop ecx
mov eax, edi
pop edi
jmp 0xf0535a2
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0f0057d5
leave
ret 0x14