Function at 0xf04e74f
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 [0xf062038]
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 0xf04ea68
cmp eax, ebx
je 0xf04ea68
cmp esi, ebx
je 0xf04ea68
cmp dword [esi], ebx
je 0xf04e7a7
cmp ecx, ebx
je 0xf04ea68
push edi
lea eax, [ebp - 0x120]
push eax
push 0x20019
push ebx
push 0xf003a2c
push 0x80000002
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x118], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf04ea43
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, 0xf003a1c
push edi
push dword [ebp - 0x120]
mov dword [ebp - 0x114], ebx
call esi
mov eax, dword [ebp - 0x114]
cmp eax, ebx
je 0xf04e900
cmp dword [ebp - 0x128], 7
jne 0xf04e900
inc eax
push eax
call fcn.0f0070c9
cmp eax, ebx
pop ecx
mov dword [ebp - 0x118], eax
je 0xf04e8e4
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 0xf04e900
cmp dword [ebp - 0x114], ebx
je 0xf04e900
mov esi, dword [ebp - 0x118]
cmp byte [esi], bl
je 0xf04e900
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0xf04e8a5
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 0xf04e8ab
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], eax
jmp 0xf04e8ab
mov dword [ebp - 0x110], esi
push dword [ebp - 0x110]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x124]
call fcn.0f04e428
test eax, eax
jne 0xf04e8f4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0xf04e8cb
sub eax, edx
lea esi, [esi + eax + 1]
cmp byte [esi], bl
mov dword [ebp - 0x110], ebx
jne 0xf04e871
jmp 0xf04e8f4
push 0x11
push ebx
push ebx
push 7
call fcn.0f034914
call fcn.0f034e04
cmp dword [ebp - 0x110], ebx
jne 0xf04e9dc
push 0x105
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 0x10c], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xf003a18
push dword [ebp - 0x124]
call fcn.0f01b697
test eax, eax
pop ecx
pop ecx
jne 0xf04e9b7
mov esi, dword [sym.imp.USER32.dll_GetKeyboardType]
push ebx
call esi
cmp eax, 7
jne 0xf04e9b7
push 1
call esi
cmp eax, 1
lea edi, [ebp - 0x10c]
jne 0xf04e95f
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf04e950
mov esi, 0xf003a0c
jmp 0xf04e987
cmp eax, 2
jne 0xf04e974
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf04e965
mov esi, 0xf003a00
jmp 0xf04e987
cmp eax, 3
jne 0xf04e98e
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf04e97a
mov esi, 0xf0039f4
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 0xf04e9d0
and eax, 0xff00
dec edi
cmp eax, 0x1200
jne 0xf04e9ad
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf04e99b
mov esi, 0xf0039e8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0xf04e9d0
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf04e9ad
jmp 0xf04e9c6
lea edi, [ebp - 0x10c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf04e9be
mov esi, 0xf0039d8
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 0xf04ea3d
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0xf04e9f5
mov edi, dword [ebp - 0x11c]
sub eax, edx
mov dword [ebp - 0x114], eax
je 0xf04ea2f
cmp eax, dword [edi]
jae 0xf04ea2f
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 0xf04ea1e
mov dword [edi], eax
xor edi, edi
inc edi
jmp 0xf04ea4f
push 0x7a
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0xf04ea4f
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 0xf04ea63
push dword [ebp - 0x118]
call fcn.0f0058e2
pop ecx
mov eax, edi
pop edi
jmp 0xf04ea72
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0f01b9b9
leave
ret 0x14