Function at 0x1004c77
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x1011660]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 0xf003f
mov esi, edx
xor edi, edi
push edi
mov ebx, ecx
push esi
push ebx
mov dword [ebp - 0x22c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x1004cc4
push eax
push esi
push ebx
push 0x10024b0
call fcn.010036a7
add esp, 0x10
jmp 0x1004d36
push edi
push edi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
je 0x1004d01
push eax
push 0x1002458
call fcn.010036a7
jmp 0x1004f5e
cmp dword [ebp - 0x218], edi
jne 0x1004d43
cmp dword [ebp - 0x214], edi
je 0x1004d2a
push dword [ebp - 0x214]
push dword [ebp - 0x218]
push 0x1002400
call fcn.010036a7
add esp, 0xc
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100524b
leave
ret
cmp dword [ebp - 0x214], edi
je 0x1004d11
add dword [ebp - 0x218], 0x20
mov eax, dword [ebp - 0x218]
add dword [ebp - 0x214], 0x20
add eax, eax
push eax
call fcn.0100598c
mov ebx, eax
cmp ebx, edi
pop ecx
mov dword [ebp - 0x220], ebx
jne 0x1004d91
mov eax, dword [ebp - 0x218]
add eax, eax
push eax
mov dword [0x1012208], 1
push 0x10023c0
jmp 0x1004cf7
push dword [ebp - 0x214]
call fcn.0100598c
cmp eax, edi
pop ecx
mov dword [ebp - 0x228], eax
jne 0x1004dcc
push dword [ebp - 0x214]
mov dword [0x1012208], 1
push 0x10023c0
call fcn.010036a7
push ebx
call fcn.0100582a
jmp 0x1004d27
cmp dword [ebp - 0x224], edi
mov dword [ebp - 0x21c], edi
jbe 0x1004edb
push edi
push edi
mov word [ebx], di
mov eax, dword [ebp - 0x218]
push edi
push edi
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x234]
push eax
push ebx
push dword [ebp - 0x21c]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, edi
jne 0x1004eba
cmp word [ebx], di
je 0x1004e89
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x230], eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x228]
lea eax, [ebp - 0x238]
push eax
push edi
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x1004ea3
mov ebx, dword [ebp - 0x228]
push 0x104
lea esi, [ebp - 0x20c]
call fcn.01004b9f
cmp word [ebp - 0x20c], di
je 0x1004e83
mov eax, esi
push eax
call fcn.01004109
cmp eax, 0xfffffc17
jne 0x1004e83
push dword [ebp - 0x220]
call fcn.0100425f
mov ebx, dword [ebp - 0x220]
inc dword [ebp - 0x21c]
mov eax, dword [ebp - 0x21c]
cmp eax, dword [ebp - 0x224]
jb 0x1004dde
jmp 0x1004edb
push eax
push dword [ebp - 0x214]
push ebx
push 0x1002358
call fcn.010036a7
add esp, 0x10
jmp 0x1004e89
cmp eax, 0x103
je 0x1004edb
push eax
push dword [ebp - 0x224]
push dword [ebp - 0x21c]
push 0x10022f0
call fcn.010036a7
add esp, 0x10
mov esi, dword [0x1012210]
cmp esi, edi
je 0x1004f47
push dword [esi]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, edi
je 0x1004f0f
push eax
push dword [esi]
push dword [ebp - 0x22c]
push 0x1002288
call fcn.010036a7
add esp, 0x10
jmp 0x1004f24
push dword [esi]
push dword [ebp - 0x22c]
push 0x1002248
call fcn.010036a7
add esp, 0xc
mov eax, dword [esi]
cmp eax, edi
mov ebx, dword [esi + 4]
je 0x1004f34
push eax
call fcn.0100582a
pop ecx
push esi
call fcn.0100582a
cmp ebx, edi
pop ecx
mov esi, ebx
jne 0x1004ee5
mov ebx, dword [ebp - 0x220]
push dword [ebp - 0x228]
mov dword [0x1012210], edi
call fcn.0100582a
push ebx
call fcn.0100582a
pop ecx
pop ecx
jmp 0x1004d2a