Function at 0x42275e
Capabilities:
Get common file path
Get file size
Query or enumerate registry value
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
mov al, byte [0x440140]
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
push 0x40
mov byte [ebp - 0x188], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x187]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x18
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x83]
mov byte [ebp - 0x84], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], ebx
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ebx
push eax
push 0x43ced8
push SysReAllocStringLen
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
mov esi, 0x104
jne 0x4227ec
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
lea eax, [ebp - 0x28c]
push eax
push ebx
push ebx
push 0x43ced0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4227fa
lea eax, [ebp - 0x28c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x28c]
push 0x43ceb8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x28c]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp dword [ebp - 0x10], esi
je 0x42283b
lea ecx, [ebp - 0x10]
call fcn.004054c7
mov dword [ebp - 0x10], esi
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
cmp dword [ebp - 4], esi
je 0x42285c
lea ecx, [ebp - 4]
call fcn.00408da5
mov dword [ebp - 4], esi
push ebx
push ebx
push ebx
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp dword [ebp - 8], esi
je 0x42287c
lea ecx, [ebp - 8]
call fcn.00423b5e
mov dword [ebp - 8], esi
mov esi, dword [ebp - 8]
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push 0x43cea8
add edi, esi
push edi
push esi
call fcn.00421c32
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x4228f9
add eax, 0xf
push eax
lea eax, [ebp - 0x84]
push eax
call esi
lea eax, [ebp - 0x84]
push eax
push edi
push dword [ebp - 0x20]
call fcn.00421c32
add esp, 0xc
cmp eax, ebx
je 0x4228f9
lea ecx, [ebp - 0x84]
inc eax
push ecx
push edi
push eax
call fcn.00421c32
add esp, 0xc
cmp eax, ebx
je 0x4228f9
push 0x43ce9c
push edi
push eax
call fcn.00421c32
add esp, 0xc
cmp eax, ebx
jne 0x422941
push 0x43ce9c
push edi
push dword [ebp - 0x1c]
call fcn.00421c32
add esp, 0xc
cmp eax, ebx
jne 0x422941
lea ecx, [ebp - 0xc]
call fcn.00423b44
lea ecx, [ebp - 8]
call fcn.00423b5e
cmp dword [ebp - 4], ebx
je 0x422934
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
je 0x422934
push dword [ebp - 4]
call eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x10]
call fcn.004054c7
jmp 0x422a45
add eax, 0xa
push eax
lea eax, [ebp - 0x188]
push eax
call esi
lea eax, [ebp - 0x188]
push 0x43cdf4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x188]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4229bb
cmp dword [ebp - 0xc], ebx
je 0x42299a
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x42299a
push dword [ebp - 0xc]
call eax
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 8], ebx
je 0x4229b0
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, ebx
je 0x4229b0
push dword [ebp - 8]
call eax
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x422a28
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00425dd7
pop ecx
mov ecx, dword [ebp - 0x14]
push ebx
mov dword [ecx + 0x10], eax
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4229ec
mov ecx, dword [ebp - 0x14]
call fcn.00422a4a
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x4229f9
push edi
call esi
cmp dword [ebp - 0xc], ebx
je 0x422a0f
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x422a0f
push dword [ebp - 0xc]
call eax
mov dword [ebp - 0xc], ebx
cmp dword [ebp - 8], ebx
je 0x422a25
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, ebx
je 0x422a25
push dword [ebp - 8]
call eax
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
je 0x422a36
cmp esi, ebx
je 0x422a36
push dword [ebp - 4]
call esi
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x10], 0xffffffff
je 0x422a45
cmp esi, ebx
je 0x422a45
push dword [ebp - 0x10]
call esi
pop edi
pop esi
pop ebx
leave
ret