Function at 0x488610
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x4f72bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x617]
push ebx
push eax
mov byte [ebp - 0x618], bl
call fcn.004d29c0
add esp, 0xc
mov dword [ebp - 0x634], 0x104
mov dword [ebp - 0x63c], ebx
cmp dword [0x505890], ebx
je 0x488660
call fcn.004c2580
mov edx, dword [0x4f8b78]
lea ecx, [ebp - 0x620]
push ecx
push edx
push ebx
push str.SoftwareBillP_StudiosWinPatrolRegOptions
push 0x80000001
mov dword [0x505890], ebx
xor esi, esi
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x488a35
lea eax, [ebp - 0x670]
push eax
lea ecx, [ebp - 0x664]
push ecx
lea edx, [ebp - 0x668]
push edx
lea eax, [ebp - 0x660]
push eax
lea ecx, [ebp - 0x62c]
push ecx
lea edx, [ebp - 0x658]
push edx
lea eax, [ebp - 0x65c]
push eax
lea ecx, [ebp - 0x63c]
push ecx
mov ecx, dword [ebp - 0x620]
push ebx
lea edx, [ebp - 0x634]
push edx
lea eax, [ebp - 0x618]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x62c], ebx
je 0x488a28
mov ecx, dword [ebp - 0x620]
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x638]
push edx
lea eax, [ebp - 0x110]
push eax
push esi
push ecx
mov dword [ebp - 0x638], 0xff
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edx, edi
inc esi
inc edi
mov dword [ebp - 0x630], esi
mov dword [ebp - 0x64c], edi
cmp edx, dword [ebp - 0x62c]
ja 0x488a28
cmp eax, 0x103
je 0x488a28
cmp eax, ebx
jne 0x4886f1
mov ecx, dword [0x4f8b78]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x640]
push eax
push ecx
push ebx
push str.SoftwareBillP_StudiosWinPatrolRegOptions
push 0x80000001
mov byte [ebp - 0x510], bl
mov byte [ebp - 0x210], bl
mov byte [ebp - 0x310], bl
mov byte [ebp - 0x410], bl
call edi
test eax, eax
je 0x48878e
mov dword [ebp - 0x628], ebx
jmp 0x48882c
lea edx, [ebp - 0x110]
push edx
lea ecx, [ebp - 0x640]
call fcn.004c03c0
add esp, 4
mov dword [ebp - 0x628], eax
cmp eax, 4
jne 0x488803
mov ecx, dword [0x4f8b78]
lea eax, [ebp - 0x648]
push eax
push ecx
push ebx
push str.SoftwareBillP_StudiosWinPatrolRegOptions
push 0x80000001
call edi
test eax, eax
jne 0x48882c
lea edx, [ebp - 0x110]
push edx
lea esi, [ebp - 0x648]
call fcn.004c1bf0
add esp, 4
cmp eax, 0xffffffff
je 0x48882c
push eax
push 0x4e8d64
lea eax, [ebp - 0x410]
push 0x100
push eax
call fcn.00402ee0
add esp, 0x10
jmp 0x48882c
cmp eax, 1
jne 0x48882c
push 0x100
lea ecx, [ebp - 0x110]
push ecx
push str.SoftwareBillP_StudiosWinPatrolRegOptions
lea ecx, [ebp - 0x410]
mov edx, 0x80000001
call fcn.004bff10
add esp, 0xc
mov eax, dword [0x4f8b78]
lea edx, [ebp - 0x61c]
push edx
push eax
push ebx
push str.SoftwareBillP_StudiosWinPatrolRegLock
push 0x80000001
call edi
test eax, eax
je 0x488852
mov dword [ebp - 0x624], ebx
jmp 0x4888b8
lea ecx, [ebp - 0x650]
push ecx
lea edx, [ebp - 0x644]
push edx
mov edx, dword [ebp - 0x61c]
lea eax, [ebp - 0x654]
push eax
push ebx
lea ecx, [ebp - 0x110]
push ecx
push edx
mov dword [ebp - 0x650], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x48889f
mov eax, dword [ebp - 0x61c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x624], ebx
jmp 0x4888b8
mov ecx, dword [ebp - 0x61c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x644]
mov dword [ebp - 0x624], edx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x110]
push eax
xor esi, esi
call edi
test eax, eax
jle 0x48892a
lea ecx, [ecx]
cmp byte [ebp + esi - 0x110], 0x5c
je 0x4888ea
lea ecx, [ebp - 0x110]
push ecx
inc esi
call edi
cmp esi, eax
jl 0x4888d0
jmp 0x48892a
lea edx, [ebp + esi - 0x10f]
push edx
mov edx, 0x7ffffffe
mov eax, 0xff
lea ecx, [ebp - 0x210]
call fcn.004010b0
lea eax, [ebp - 0x110]
push eax
mov edx, 0x7ffffffe
mov eax, 0xff
lea ecx, [ebp - 0x510]
mov byte [ebp + esi - 0x110], bl
call fcn.004010b0
lea ecx, [ebp - 0x210]
push ecx
call edi
cmp eax, ebx
jle 0x48899d
jmp 0x488940
cmp byte [ebp + eax - 0x210], 0x5c
je 0x488951
dec eax
cmp eax, ebx
jg 0x488940
jmp 0x48899d
lea ecx, [ebp - 0x310]
mov edi, ecx
mov edx, eax
sub edx, edi
mov esi, 0xff
lea edi, [ebp + edx - 0x20f]
lea esp, [esp]
lea edx, [esi + 0x7ffffeff]
test edx, edx
je 0x488989
mov dl, byte [edi + ecx]
cmp dl, bl
je 0x488989
mov byte [ecx], dl
inc ecx
dec esi
jne 0x488970
jmp 0x48898d
cmp esi, ebx
jne 0x48898e
dec ecx
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [ecx], bl
mov byte [ebp + eax - 0x210], bl
lea eax, [ebp - 0x310]
push eax
call edi
test eax, eax
jne 0x4889c2
push 0xff
lea edx, [ebp - 0x310]
mov ecx, 0x52a
call fcn.004ca1e0
add esp, 4
lea ecx, [ebp - 0x410]
push ecx
call edi
test eax, eax
jne 0x4889e7
push 0x100
lea edx, [ebp - 0x410]
mov ecx, 0x52b
call fcn.004ca1e0
add esp, 4
mov edx, dword [ebp - 0x628]
mov eax, dword [ebp - 0x624]
push edx
push eax
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x310]
push edx
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x510]
call fcn.004c1eb0
mov edi, dword [ebp - 0x64c]
mov esi, dword [ebp - 0x630]
add esp, 0x10
jmp 0x4886f1
mov eax, dword [ebp - 0x620]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [0x505890]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cf2b6
mov esp, ebp
pop ebp
ret