Function at 0xf04df0d
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, 0x12c
mov eax, dword [0xf061038]
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 - 0x124], eax
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x11c], esi
je 0xf04e226
cmp eax, ebx
je 0xf04e226
cmp esi, ebx
je 0xf04e226
cmp dword [esi], ebx
je 0xf04df65
cmp ecx, ebx
je 0xf04e226
push edi
lea eax, [ebp - 0x120]
push eax
push 0x20019
push ebx
push 0xf003964
push 0x80000002
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x118], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf04e201
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x128]
push eax
push ebx
mov edi, 0xf003954
push edi
push dword [ebp - 0x120]
mov dword [ebp - 0x114], ebx
call esi
mov eax, dword [ebp - 0x114]
cmp eax, ebx
je 0xf04e0be
cmp dword [ebp - 0x128], 7
jne 0xf04e0be
inc eax
push eax
call fcn.0f006f83
cmp eax, ebx
pop ecx
mov dword [ebp - 0x118], eax
je 0xf04e0a2
lea ecx, [ebp - 0x114]
push ecx
push eax
mov byte [eax], bl
lea eax, [ebp - 0x128]
push eax
push ebx
push edi
push dword [ebp - 0x120]
call esi
test eax, eax
jne 0xf04e0be
cmp dword [ebp - 0x114], ebx
je 0xf04e0be
mov esi, dword [ebp - 0x118]
cmp byte [esi], bl
je 0xf04e0be
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0xf04e063
push ebx
lea eax, [ebp - 0x10c]
push eax
push 0x105
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
je 0xf04e069
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], eax
jmp 0xf04e069
mov dword [ebp - 0x110], esi
push dword [ebp - 0x110]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x124]
call fcn.0f04dbe6
test eax, eax
jne 0xf04e0b2
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0xf04e089
sub eax, edx
lea esi, [esi + eax + 1]
cmp byte [esi], bl
mov dword [ebp - 0x110], ebx
jne 0xf04e02f
jmp 0xf04e0b2
push 0x11
push ebx
push ebx
push 7
call fcn.0f034370
call fcn.0f034856
cmp dword [ebp - 0x110], ebx
jne 0xf04e19a
push 0x105
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 0x10c], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xf003950
push dword [ebp - 0x124]
call fcn.0f01b1d6
test eax, eax
pop ecx
pop ecx
jne 0xf04e175
mov esi, dword [sym.imp.USER32.dll_GetKeyboardType]
push ebx
call esi
cmp eax, 7
jne 0xf04e175
push 1
call esi
cmp eax, 1
lea edi, [ebp - 0x10c]
jne 0xf04e11d
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf04e10e
mov esi, 0xf003944
jmp 0xf04e145
cmp eax, 2
jne 0xf04e132
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf04e123
mov esi, 0xf003938
jmp 0xf04e145
cmp eax, 3
jne 0xf04e14c
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf04e138
mov esi, 0xf00392c
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 0xf04e18e
and eax, 0xff00
dec edi
cmp eax, 0x1200
jne 0xf04e16b
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf04e159
mov esi, 0xf003920
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0xf04e18e
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf04e16b
jmp 0xf04e184
lea edi, [ebp - 0x10c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf04e17c
mov esi, 0xf003910
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 - 0x10c]
mov dword [ebp - 0x110], eax
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x110]
cmp eax, ebx
je 0xf04e1fb
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0xf04e1b3
mov edi, dword [ebp - 0x11c]
sub eax, edx
mov dword [ebp - 0x114], eax
je 0xf04e1ed
cmp eax, dword [edi]
jae 0xf04e1ed
mov ecx, dword [ebp - 0x110]
mov esi, dword [ebp - 0x12c]
sub esi, ecx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
cmp dl, bl
jne 0xf04e1dc
mov dword [edi], eax
xor edi, edi
inc edi
jmp 0xf04e20d
push 0x7a
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0xf04e20d
mov esi, dword [ebp - 0x11c]
push 2
xor edi, edi
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x118], ebx
je 0xf04e221
push dword [ebp - 0x118]
call fcn.0f00579c
pop ecx
mov eax, edi
pop edi
jmp 0xf04e230
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0f01b45c
leave
ret 0x14