Function at 0xf0952fd
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 [0xf0ad034]
mov ecx, dword [ebp + 0x14]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x18]
xor ebx, ebx
cmp word [ebp + 0x10], bx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x21c], esi
je 0xf095616
cmp eax, ebx
je 0xf095616
cmp esi, ebx
je 0xf095616
cmp dword [esi], ebx
je 0xf095355
cmp ecx, ebx
je 0xf095616
push edi
lea eax, [ebp - 0x220]
push eax
push 0x20019
push ebx
push 0xf006fb0
push 0x80000002
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x218], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf0955f1
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, 0xf006fa0
push edi
push dword [ebp - 0x220]
mov dword [ebp - 0x214], ebx
call esi
mov eax, dword [ebp - 0x214]
cmp eax, ebx
je 0xf0954ae
cmp dword [ebp - 0x228], 7
jne 0xf0954ae
inc eax
push eax
call fcn.0f009d40
cmp eax, ebx
pop ecx
mov dword [ebp - 0x218], eax
je 0xf095492
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 0xf0954ae
cmp dword [ebp - 0x214], ebx
je 0xf0954ae
mov esi, dword [ebp - 0x218]
cmp byte [esi], bl
je 0xf0954ae
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0xf095453
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x208
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0xf095459
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], eax
jmp 0xf095459
mov dword [ebp - 0x210], esi
push dword [ebp - 0x210]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x224]
call fcn.0f094fd6
test eax, eax
jne 0xf0954a2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0xf095479
sub eax, edx
lea esi, [esi + eax + 1]
cmp byte [esi], bl
mov dword [ebp - 0x210], ebx
jne 0xf09541f
jmp 0xf0954a2
push 0x11
push ebx
push ebx
push 7
call fcn.0f03db09
call fcn.0f03e381
cmp dword [ebp - 0x210], ebx
jne 0xf09558a
push 0x208
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x20c], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xf006f9c
push dword [ebp - 0x224]
call fcn.0f01df40
test eax, eax
pop ecx
pop ecx
jne 0xf095565
mov esi, dword [sym.imp.USER32.dll_GetKeyboardType]
push ebx
call esi
cmp eax, 7
jne 0xf095565
push 1
call esi
cmp eax, 1
lea edi, [ebp - 0x20c]
jne 0xf09550d
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf0954fe
mov esi, 0xf006f90
jmp 0xf095535
cmp eax, 2
jne 0xf095522
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf095513
mov esi, 0xf006f84
jmp 0xf095535
cmp eax, 3
jne 0xf09553c
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf095528
mov esi, 0xf006f78
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0xf09557e
and eax, 0xff00
dec edi
cmp eax, 0x1200
jne 0xf09555b
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf095549
mov esi, 0xf006f6c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0xf09557e
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf09555b
jmp 0xf095574
lea edi, [ebp - 0x20c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf09556c
mov esi, 0xf006f5c
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x20c]
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 0xf0955eb
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0xf0955a3
mov edi, dword [ebp - 0x21c]
sub eax, edx
mov dword [ebp - 0x214], eax
je 0xf0955dd
cmp eax, dword [edi]
jae 0xf0955dd
mov ecx, dword [ebp - 0x210]
mov esi, dword [ebp - 0x22c]
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
cmp dl, bl
jne 0xf0955cc
mov dword [edi], eax
xor edi, edi
inc edi
jmp 0xf0955fd
push 0x7a
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0xf0955fd
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 0xf095611
push dword [ebp - 0x218]
call fcn.0f008a60
pop ecx
mov eax, edi
pop edi
jmp 0xf095620
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0f01dda0
leave
ret 0x14