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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x4c32cc]
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.004a3190
add esp, 0xc
mov dword [ebp - 0x634], 0x104
mov dword [ebp - 0x63c], ebx
cmp dword [0x4cd38c], ebx
je 0x488690
call fcn.0048fcc0
mov edx, dword [0x4c6444]
lea ecx, [ebp - 0x620]
push ecx
push edx
push ebx
push str.SoftwareBillP_StudiosWinPatrolRegOptions
push 0x80000001
mov dword [0x4cd38c], ebx
xor esi, esi
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x488a65
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 0x488a58
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 0x488a58
cmp eax, 0x103
je 0x488a58
cmp eax, ebx
jne 0x488721
mov ecx, dword [0x4c6444]
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 0x4887be
mov dword [ebp - 0x628], ebx
jmp 0x48885c
lea edx, [ebp - 0x110]
push edx
lea ecx, [ebp - 0x640]
call fcn.0048e500
add esp, 4
mov dword [ebp - 0x628], eax
cmp eax, 4
jne 0x488833
mov ecx, dword [0x4c6444]
lea eax, [ebp - 0x648]
push eax
push ecx
push ebx
push str.SoftwareBillP_StudiosWinPatrolRegOptions
push 0x80000001
call edi
test eax, eax
jne 0x48885c
lea edx, [ebp - 0x110]
push edx
lea esi, [ebp - 0x648]
call fcn.0048f5d0
add esp, 4
cmp eax, 0xffffffff
je 0x48885c
push eax
push 0x4b7c94
lea eax, [ebp - 0x410]
push 0x100
push eax
call fcn.00402830
add esp, 0x10
jmp 0x48885c
cmp eax, 1
jne 0x48885c
push 0x100
lea ecx, [ebp - 0x110]
push ecx
push str.SoftwareBillP_StudiosWinPatrolRegOptions
lea ecx, [ebp - 0x410]
mov edx, 0x80000001
call fcn.0048e050
add esp, 0xc
mov eax, dword [0x4c6444]
lea edx, [ebp - 0x61c]
push edx
push eax
push ebx
push str.SoftwareBillP_StudiosWinPatrolRegLock
push 0x80000001
call edi
test eax, eax
je 0x488882
mov dword [ebp - 0x624], ebx
jmp 0x4888e8
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 0x4888cf
mov eax, dword [ebp - 0x61c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x624], ebx
jmp 0x4888e8
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 0x48895a
lea ecx, [ecx]
cmp byte [ebp + esi - 0x110], 0x5c
je 0x48891a
lea ecx, [ebp - 0x110]
push ecx
inc esi
call edi
cmp esi, eax
jl 0x488900
jmp 0x48895a
lea edx, [ebp + esi - 0x10f]
push edx
mov edx, 0x7ffffffe
mov eax, 0xff
lea ecx, [ebp - 0x210]
call fcn.00401000
lea eax, [ebp - 0x110]
push eax
mov edx, 0x7ffffffe
mov eax, 0xff
lea ecx, [ebp - 0x510]
mov byte [ebp + esi - 0x110], bl
call fcn.00401000
lea ecx, [ebp - 0x210]
push ecx
call edi
cmp eax, ebx
jle 0x4889cd
jmp 0x488970
cmp byte [ebp + eax - 0x210], 0x5c
je 0x488981
dec eax
cmp eax, ebx
jg 0x488970
jmp 0x4889cd
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 0x4889b9
mov dl, byte [edi + ecx]
cmp dl, bl
je 0x4889b9
mov byte [ecx], dl
inc ecx
dec esi
jne 0x4889a0
jmp 0x4889bd
cmp esi, ebx
jne 0x4889be
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 0x4889f2
push 0xff
lea edx, [ebp - 0x310]
mov ecx, 0x52a
call fcn.00499890
add esp, 4
lea ecx, [ebp - 0x410]
push ecx
call edi
test eax, eax
jne 0x488a17
push 0x100
lea edx, [ebp - 0x410]
mov ecx, 0x52b
call fcn.00499890
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.0048f730
mov edi, dword [ebp - 0x64c]
mov esi, dword [ebp - 0x630]
add esp, 0x10
jmp 0x488721
mov eax, dword [ebp - 0x620]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [0x4cd38c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a01d6
mov esp, ebp
pop ebp
ret