Function at 0x42e54d
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, 0x3ec
push ebx
push esi
push edi
mov edx, ecx
push 0xb
mov esi, 0x44dbc4
pop ecx
lea edi, [ebp - 0x1e4]
rep movsd dword es:[edi], dword [esi]
push 0x36
xor eax, eax
pop ecx
lea edi, [ebp - 0x1b8]
rep stosd dword es:[edi], eax
mov al, byte [0x450eb0]
push 0x40
mov byte [ebp - 0x2e8], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x2e7]
rep stosd dword es:[edi], eax
cmp word [edx + 0x16], 0x32
mov dword [ebp - 0x18], edx
stosw word es:[edi], ax
stosb byte es:[edi], al
jae 0x42e67c
lea eax, [ebp - 8]
xor ebx, ebx
push eax
lea eax, [ebp - 0x1e4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x42e5cb
lea ecx, [ebp - 4]
jmp 0x42e652
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x1e4]
push eax
call edi
mov esi, 0x104
mov ecx, esi
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1e4]
push eax
mov dword [ebp - 0x14], ecx
call edi
lea eax, [ebp + eax - 0x1e4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push 0x44dbb8
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x42e5c3
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1e4]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42e5c3
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
lea eax, [ebp - 0x2e8]
push eax
push ebx
push ebx
push 0x44dbb0
push dword [ebp - 4]
call edi
test eax, eax
lea ecx, [ebp - 4]
je 0x42e664
call fcn.00429bd1
lea ecx, [ebp - 8]
call fcn.00429bd1
jmp 0x42e91b
call fcn.00429bd1
lea ecx, [ebp - 8]
call fcn.00429bd1
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42e8aa
push 0x18
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x7b]
mov byte [ebp - 0x7c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
or dword [ebp - 0xc], 0xffffffff
push 0x104
stosb byte es:[edi], al
lea eax, [ebp - 0x3ec]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x3ec]
push 0x44dba4
push eax
call edi
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x3ec]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x42e6e6
mov dword [ebp - 0xc], eax
push ebx
push ebx
push ebx
push 2
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
je 0x42e6fc
mov dword [ebp - 8], eax
push ebx
push ebx
push ebx
push 4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x42e711
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push 0x44db78
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42e7fa
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x64
push eax
lea eax, [ebp - 0xe0]
push eax
push ebx
push ebx
push 0x44dbb8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42e7fa
cmp byte [ebp - 0xe0], bl
lea esi, [ebp - 0xe0]
je 0x42e78c
cmp byte [esi], 0x20
jne 0x42e777
lea eax, [ebp - 0x7c]
push 0x44db74
push eax
call edi
jmp 0x42e787
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esi]
mov byte [ebp + eax - 0x7c], cl
inc esi
cmp byte [esi], bl
jne 0x42e765
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push 0x44db64
add edi, dword [ebp - 0x10]
push edi
push dword [ebp - 0x10]
call fcn.0042deac
add esp, 0xc
cmp eax, ebx
mov esi, 0x44db54
je 0x42e7e9
lea ecx, [ebp - 0x7c]
push ecx
push edi
push eax
call fcn.0042deac
add esp, 0xc
cmp eax, ebx
je 0x42e7e9
lea ecx, [ebp - 0x7c]
inc eax
push ecx
push edi
push eax
call fcn.0042deac
add esp, 0xc
cmp eax, ebx
je 0x42e7e9
push esi
push edi
push eax
call fcn.0042deac
add esp, 0xc
cmp eax, ebx
jne 0x42e850
push esi
push edi
push dword [ebp - 0x10]
call fcn.0042deac
add esp, 0xc
cmp eax, ebx
jne 0x42e850
cmp dword [ebp - 0x10], ebx
je 0x42e80d
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, ebx
je 0x42e80d
push dword [ebp - 0x10]
call eax
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x42e821
cmp esi, ebx
je 0x42e821
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], 0xffffffff
je 0x42e830
cmp esi, ebx
je 0x42e830
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 4], ebx
je 0x42e91b
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x42e91b
push dword [ebp - 4]
call eax
jmp 0x42e91b
add eax, 0x10
push eax
lea eax, [ebp - 0x2e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x10], ebx
je 0x42e874
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp eax, ebx
je 0x42e874
push dword [ebp - 0x10]
call eax
cmp dword [ebp - 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x42e888
cmp esi, ebx
je 0x42e888
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], 0xffffffff
je 0x42e897
cmp esi, ebx
je 0x42e897
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 4], ebx
je 0x42e8aa
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x42e8aa
push dword [ebp - 4]
call eax
lea eax, [ebp - 0x2e8]
push 0x44db48
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x2e8]
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x42e91b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 4], eax
call fcn.00432c57
pop ecx
mov ecx, dword [ebp - 0x18]
push ebx
mov dword [ecx + 0x10], eax
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42e914
mov ecx, dword [ebp - 0x18]
call fcn.0042ec1d
cmp esi, ebx
je 0x42e91b
push edi
call esi
pop edi
pop esi
pop ebx
leave
ret