Function at 0x4016a0
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffee4
mov edi, str.regedit__s_c:_sysprep_sys_hide.reg
mov esi, eax
push esi
push edi
lea esi, [edi + 0x4f]
lea edi, [esp + 0xc4]
mov eax, edi
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
push esp
push 1
lea edx, [edi + 0x54]
push 0
push edx
push 0x80000003
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x40171f
mov dword [esp + 4], 0x20
lea ecx, [esp + 4]
lea edx, [edi + 0x79]
push ecx
lea eax, [esp + 0x20]
push eax
push 0
push 0
push edx
mov ecx, dword [esp + 0x14]
push ecx
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x401716
push 5
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0xc4]
push edx
call sub.KERNEL32.DLL_lstrcpynA
mov ecx, dword [esp]
push ecx
call sub.ADVAPI32.DLL_RegCloseKey
push esi
push edi
lea esi, [edi + 0x80]
lea edi, [esp + 0x44]
mov eax, edi
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea edx, [esp + 0x3c]
push edx
push 0x20
lea ecx, [esp + 0xe4]
push ecx
lea eax, [edi + 0xa4]
push eax
lea edx, [esp + 0xcc]
push edx
lea ecx, [edi + 0x94]
push ecx
call sub.KERNEL32.DLL_GetPrivateProfileStringA
push esi
push edi
xor eax, eax
lea edi, [esp + 0xe4]
or ecx, 0xffffffff
lea esi, [esp + 0x104]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
lea eax, [edi + 0xa6]
push eax
lea edx, [esp + 0x100]
push edx
call fcn.00444b50
add esp, 8
lea eax, [edi + 0xab]
lea ecx, [esp + 0x3c]
push ecx
push 0
push eax
lea edx, [esp + 0x108]
push edx
call sub.KERNEL32.DLL_GetPrivateProfileIntA
mov dword [esi + 0x1ac4], eax
mov ebx, 1
lea ebp, [esi + 0x1a74]
jmp 0x4018f3
push esi
push edi
lea esi, [edi + 0xaf]
lea edi, [esp + 0x10]
mov eax, edi
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0xa
lea edx, [esp + 0x18]
push edx
push ebx
call fcn.00447010
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea eax, [esp + 0xc]
push eax
call fcn.00444b50
add esp, 8
mov ecx, ebx
shl ecx, 8
lea eax, [edi + 0xb4]
lea edx, [esp + 0x3c]
add ecx, esi
push edx
add ecx, 0x2d0
push 0x100
push ecx
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x110]
push ecx
call sub.KERNEL32.DLL_GetPrivateProfileStringA
push esi
push edi
lea esi, [edi + 0xb6]
lea edi, [esp + 0x10]
mov eax, edi
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
push 0xa
lea edx, [esp + 0x18]
push edx
push ebx
call fcn.00447010
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea eax, [esp + 0xc]
push eax
call fcn.00444b50
add esp, 8
mov ecx, ebx
shl ecx, 5
lea eax, [edi + 0xbc]
lea edx, [esp + 0x3c]
add ecx, esi
push edx
add ecx, 0x17d0
push 0x20
push ecx
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x110]
push ecx
call sub.KERNEL32.DLL_GetPrivateProfileStringA
push esi
push edi
lea esi, [edi + 0xbe]
lea edi, [esp + 0x10]
mov eax, edi
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0xa
lea edx, [esp + 0x18]
push edx
push ebx
call fcn.00447010
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea eax, [esp + 0xc]
push eax
call fcn.00444b50
add esp, 8
lea edx, [esp + 0x3c]
push edx
push 0
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x108]
push eax
call sub.KERNEL32.DLL_GetPrivateProfileIntA
mov dword [ebp], eax
inc ebx
add ebp, 4
cmp ebx, dword [esi + 0x1ac4]
jle 0x4017d7
mov eax, dword [esi + 0x1ac4]
add esp, 0x11c
pop ebp
pop edi
pop esi
pop ebx
ret