Function at 0x8229a40
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x8246b14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x130]
push eax
xor ebx, ebx
push 0x20019
push ebx
push 0x8221f70
lea edx, [esi - 2]
push 0x80000002
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x128], 0x8221ee8
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x12c], 0x8221f70
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x8229ae8
push 0xffffffffffffffff
push 0x8221ee8
lea ecx, [esi - 1]
push ecx
push edi
call sub.msvcrt.dll_strncpy_s
add esp, 0x10
xor eax, eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], ebx
jmp 0x8229c40
lea edx, [ebp - 0x144]
push edx
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x138]
push ecx
push ebx
push 0x8221f68
push edx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x144], 4
mov dword [ebp - 0x138], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x8229b44
cmp dword [ebp - 0x138], 4
jne 0x8229b44
cmp dword [ebp - 0x140], ebx
setne al
mov dword [ebp - 0x118], eax
jmp 0x8229b4a
mov dword [ebp - 0x118], ebx
push 0x10d
lea ecx, [ebp - 0x114]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
dec eax
cmp eax, 0x10b
ja 0x8229c27
lea edx, [ebp - 0x114]
lea esi, [ebp - 0x130]
mov byte [ebp - 7], bl
mov dword [ebp - 0x128], edx
call fcn.08251fe3
test eax, eax
jne 0x8229c24
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x114]
dec ecx
add eax, ecx
lea edx, [ebp - 0x114]
cmp eax, edx
jb 0x8229be6
jmp 0x8229bb0
mov cl, byte [eax]
cmp cl, 0x5c
je 0x8229bc9
cmp cl, 0x2f
je 0x8229bc9
dec eax
lea ecx, [ebp - 0x114]
cmp eax, ecx
jae 0x8229bb0
jmp 0x8229be6
inc eax
lea edx, [ebp - 7]
cmp eax, edx
jae 0x8229be6
mov byte [eax], 0x2a
lea esi, [ebp - 0x130]
mov byte [eax + 1], bl
call fcn.08229870
cmp eax, ebx
jne 0x8229c24
lea esi, [ebp - 0x130]
mov dword [ebp - 0x128], 0x8221f60
call fcn.08229870
test eax, eax
jne 0x8229c24
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push 0x8221ee8
dec eax
push eax
push edi
mov dword [ebp - 0x128], 0x8221ee8
mov dword [ebp - 0x11c], ebx
call sub.msvcrt.dll_strncpy_s
add esp, 0x10
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x130], ebx
mov byte [edi + esi - 1], bl
cmp eax, ebx
je 0x8229c59
push esi
mov esi, edi
call fcn.08229960
add esp, 4
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x118]
cmp ecx, ebx
je 0x8229ca6
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x8221f54
call esi
mov edx, dword [ebp - 0x12c]
push edx
call esi
push 0x8221f50
call esi
mov eax, dword [ebp - 0x128]
push eax
call esi
push 0x8221f44
call esi
push edi
call esi
push 0x8221f40
call esi
mov ecx, dword [ebp - 0x118]
mov eax, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x13c]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x134]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.08241664
mov esp, ebp
pop ebp
ret