Function at 0x48f070
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x55df9c]
sub esp, 0x14
push esi
xor esi, esi
cmp eax, esi
je 0x48f0b7
mov eax, dword [esp + 0x1c]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48f0ae
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48f0ae
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00532222
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.0048fd50
mov eax, dword [eax]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push esi
push eax
push SHChangeNotifyRegister
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48f0fd
mov eax, dword [esp + 8]
cmp eax, esi
je 0x48f0f5
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48f12c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48f12c
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [0x547570]
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 0x48f14e
cmp dword [eax - 4], ecx
jge 0x48f1a6
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x48f157
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x48f1a8
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 [0x547574]
cmp ebx, eax
je 0x48f1a2
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48f1a2
push ebx
call fcn.00532222
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 0x48f243
mov esi, dword [esp + 0x2c]
mov edx, dword [esi]
cmp edx, eax
je 0x48f243
mov ebx, dword [edx - 0xc]
test ebx, ebx
jge 0x48f216
mov ebx, dword [0x547574]
add edx, 0xfffffff4
cmp edx, ebx
jne 0x48f21d
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x48f228
push eax
push ecx
mov ecx, esi
call fcn.00405870
jmp 0x48f23f
mov ecx, esi
call fcn.004124c0
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48f26e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48f26e
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
lea ecx, [esp + 0x14]
call fcn.004098a0
lea ecx, [esp + 0x28]
call fcn.00405700
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret 8