Function at 0xf04e4e2
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 0xf04e7fb
cmp eax, ebx
je 0xf04e7fb
cmp esi, ebx
je 0xf04e7fb
cmp dword [esi], ebx
je 0xf04e53a
cmp ecx, ebx
je 0xf04e7fb
push edi
lea eax, [ebp - 0x120]
push eax
push 0x20019
push ebx
push 0xf0039f8
push 0x80000002
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x118], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf04e7d6
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, 0xf0039e8
push edi
push dword [ebp - 0x120]
mov dword [ebp - 0x114], ebx
call esi
mov eax, dword [ebp - 0x114]
cmp eax, ebx
je 0xf04e693
cmp dword [ebp - 0x128], 7
jne 0xf04e693
inc eax
push eax
call fcn.0f007089
cmp eax, ebx
pop ecx
mov dword [ebp - 0x118], eax
je 0xf04e677
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 0xf04e693
cmp dword [ebp - 0x114], ebx
je 0xf04e693
mov esi, dword [ebp - 0x118]
cmp byte [esi], bl
je 0xf04e693
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0xf04e638
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 0xf04e63e
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], eax
jmp 0xf04e63e
mov dword [ebp - 0x110], esi
push dword [ebp - 0x110]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x124]
call fcn.0f04e1bb
test eax, eax
jne 0xf04e687
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0xf04e65e
sub eax, edx
lea esi, [esi + eax + 1]
cmp byte [esi], bl
mov dword [ebp - 0x110], ebx
jne 0xf04e604
jmp 0xf04e687
push 0x11
push ebx
push ebx
push 7
call fcn.0f034721
call fcn.0f034c11
cmp dword [ebp - 0x110], ebx
jne 0xf04e76f
push 0x105
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 0x10c], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xf0039e4
push dword [ebp - 0x124]
call fcn.0f01b533
test eax, eax
pop ecx
pop ecx
jne 0xf04e74a
mov esi, dword [sym.imp.USER32.dll_GetKeyboardType]
push ebx
call esi
cmp eax, 7
jne 0xf04e74a
push 1
call esi
cmp eax, 1
lea edi, [ebp - 0x10c]
jne 0xf04e6f2
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf04e6e3
mov esi, 0xf0039d8
jmp 0xf04e71a
cmp eax, 2
jne 0xf04e707
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf04e6f8
mov esi, 0xf0039cc
jmp 0xf04e71a
cmp eax, 3
jne 0xf04e721
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf04e70d
mov esi, 0xf0039c0
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 0xf04e763
and eax, 0xff00
dec edi
cmp eax, 0x1200
jne 0xf04e740
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf04e72e
mov esi, 0xf0039b4
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0xf04e763
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf04e740
jmp 0xf04e759
lea edi, [ebp - 0x10c]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0xf04e751
mov esi, 0xf0039a4
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 0xf04e7d0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0xf04e788
mov edi, dword [ebp - 0x11c]
sub eax, edx
mov dword [ebp - 0x114], eax
je 0xf04e7c2
cmp eax, dword [edi]
jae 0xf04e7c2
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 0xf04e7b1
mov dword [edi], eax
xor edi, edi
inc edi
jmp 0xf04e7e2
push 0x7a
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
jmp 0xf04e7e2
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 0xf04e7f6
push dword [ebp - 0x118]
call fcn.0f0058a2
pop ecx
mov eax, edi
pop edi
jmp 0xf04e805
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0f01b780
leave
ret 0x14