Function at 0x48e120
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x55cee8]
sub esp, 0x14
push esi
xor esi, esi
cmp eax, esi
je 0x48e167
mov eax, dword [esp + 0x1c]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48e15e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48e15e
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
xor eax, eax
pop esi
add esp, 0x14
ret 8
lea eax, [esp + 0x10]
mov dword [esp + 8], esi
push eax
call fcn.0048ee00
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push esi
push eax
push SHChangeNotifyDeregister
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48e1ad
mov eax, dword [esp + 8]
cmp eax, esi
je 0x48e1a5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
mov dword [esp + 8], edx
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48e1dc
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48e1dc
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [0x546560]
push ebx
mov ecx, 0x400
mov dword [esp + 8], eax
lea ebx, [eax - 0xc]
mov dword [esp + 0x18], ecx
push ebp
push edi
cmp dword [ebx], 1
jg 0x48e1fe
cmp dword [eax - 4], ecx
jge 0x48e256
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x48e207
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x48e258
mov edi, dword [esp + 0x10]
lea ecx, [ebp + ebp + 2]
mov eax, ecx
lea esi, [ebx + 0xc]
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 + 0x10]
mov dword [ecx - 8], ebp
mov eax, dword [0x546564]
cmp ebx, eax
je 0x48e252
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48e252
push ebx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x10]
xor esi, esi
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
push esi
push ecx
push edx
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.004055c0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov word [edx + eax*2], si
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
cmp ecx, esi
je 0x48e2f3
mov esi, dword [esp + 0x2c]
mov edx, dword [esi]
cmp edx, eax
je 0x48e2f3
mov ebx, dword [edx - 0xc]
test ebx, ebx
jge 0x48e2c6
mov ebx, dword [0x546564]
add edx, 0xfffffff4
cmp edx, ebx
jne 0x48e2cd
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x48e2d8
push eax
push ecx
mov ecx, esi
call fcn.00405870
jmp 0x48e2ef
mov ecx, esi
call fcn.00412670
mov eax, dword [esp + 0x10]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48e31e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48e31e
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00409900
lea ecx, [esp + 0x28]
call fcn.00405700
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret 8