Function at 0x4811e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x4ecbf8]
sub esp, 0x14
push esi
xor esi, esi
cmp eax, esi
je 0x481227
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48121e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48121e
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.004c5432
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.00481ec0
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 0x48126d
mov eax, dword [esp + 8]
cmp eax, esi
je 0x481265
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 [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x48129c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x48129c
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [0x4d9540]
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 0x4812be
cmp dword [eax - 4], ecx
jge 0x481316
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x4812c7
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x481318
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 [0x4d9544]
cmp ebx, eax
je 0x481312
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x481312
push ebx
call fcn.004c5432
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.00401380
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 0x4813b3
mov esi, dword [esp + 0x2c]
mov edx, dword [esi]
cmp edx, eax
je 0x4813b3
mov ebx, dword [edx - 0xc]
test ebx, ebx
jge 0x481386
mov ebx, dword [0x4d9544]
add edx, 0xfffffff4
cmp edx, ebx
jne 0x48138d
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x481398
push eax
push ecx
mov ecx, esi
call fcn.00401630
jmp 0x4813af
mov ecx, esi
call fcn.0040e950
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 [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4813de
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4813de
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00405b30
lea ecx, [esp + 0x28]
call fcn.004014c0
mov eax, edi
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret 8