Function at 0x10004ad0
Capabilities:
Print debug messages
Query or enumerate registry value
Read .ini file

Disassembly:
sub esp, 0x50c
push ebx
push ebp
mov ebp, dword [esp + 0x51c]
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
xor ebx, ebx
push 0x100
push eax
push ebx
mov byte [ebp], 0
mov dword [esp + 0x1c], 0x100
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10004c09
lea ecx, [esp + 0x1c]
push 0x5c
push ecx
call fcn.100f0c40
add esp, 8
test eax, eax
je 0x10004b36
cmp byte [eax], 0
je 0x10004b36
mov byte [eax], bl
mov edi, str.Registry.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x120]
push str.query_registry:_Look_for_ini_file___:_s_n
push ecx
call fcn.100f0f37
add esp, 0xc
lea edx, [esp + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x524]
lea edx, [esp + 0x20]
push ecx
push edx
push 0x102dbcec
push eax
push str.Environments
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x10004c09
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x524]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push str.query_registry:_Value__:_s___s_n
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x128]
push ecx
call fcn.100f0f37
add esp, 0x10
lea edx, [esp + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x10004cc1
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.SOFTWARESDI
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004c8e
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x524]
lea eax, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10004c7f
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, 1
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x10004cc6
mov edx, dword [esp + 0x520]
push edx
call fcn.100f162f
add esp, 4
test eax, eax
je 0x10004cc6
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, 1
mov cl, byte [ebp]
xor eax, eax
test cl, cl
je 0x10004cec
cmp byte [eax + ebp], 0x5c
jne 0x10004ce3
cmp byte [eax + ebp + 1], 0x5c
je 0x10004ce2
mov byte [eax + ebp], 0x2f
jmp 0x10004ce3
inc eax
mov cl, byte [eax + ebp + 1]
inc eax
test cl, cl
jne 0x10004ccf
mov ecx, dword [esp + 0x520]
push ebp
push ecx
lea edx, [esp + 0x124]
push str.query_registry:_e_:_s:_s:_n
push edx
call fcn.100f0f37
add esp, 0x10
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x50c
ret