Function at 0x100049c2
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x65c
mov eax, dword [0x10013010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
push 0x100017d4
mov dword [ebp - 0x620], ebx
mov dword [ebp - 0x624], ebx
mov dword [ebp - 0x62c], ebx
mov dword [ebp - 0x628], ebx
call fcn.10006a49
pop ecx
call fcn.1000654e
test eax, eax
jne 0x10004a2f
push 0x10001794
push ebx
push ebx
push 0x10001774
push 0x675
push 0x10001270
call fcn.10006b9b
add esp, 0x18
xor eax, eax
jmp 0x10004daf
push esi
cmp edi, ebx
jne 0x10004a59
push 0x10001750
push ebx
push ebx
mov edi, 0x10001774
push edi
push 0x67e
mov esi, 0x10001270
push esi
call fcn.10006b9b
add esp, 0x18
jmp 0x10004d10
lea eax, [ebp - 0x620]
push eax
push 0xf003f
push ebx
push 0x10001724
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x10004a8e
push ebx
push eax
push 0x1000134c
mov edi, 0x10001774
push edi
push 0x68c
jmp 0x10004a46
mov esi, 0x104
push esi
lea eax, [ebp - 0x61c]
push eax
push edi
call dword [sym.imp.ole32.dll_StringFromGUID2]
push ebx
push ebx
cmp eax, ebx
jne 0x10004aba
push 0x10001710
mov edi, 0x10001774
push edi
push 0x697
jmp 0x10004a46
push esi
lea ecx, [ebp - 0x20c]
push ecx
push eax
lea eax, [ebp - 0x61c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x10004af7
push 0x100016e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100016c8
mov edi, 0x10001774
push edi
push 0x6a0
jmp 0x10004a46
lea eax, [ebp - 0x658]
push eax
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x64c]
push eax
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x634]
push eax
push ebx
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edi, 0x10001774
mov esi, 0x10001270
cmp eax, ebx
je 0x10004b6a
push ebx
push eax
push 0x100016b4
push edi
push 0x6b6
jmp 0x10004a4b
mov eax, dword [ebp - 0x628]
cmp eax, dword [ebp - 0x634]
jae 0x10004c75
lea ecx, [ebp - 0x658]
push ecx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x630]
push ecx
lea ecx, [ebp - 0x108]
push ecx
push eax
push dword [ebp - 0x620]
mov dword [ebp - 0x630], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, ebx
jne 0x10004c8f
lea eax, [ebp - 0x624]
push eax
push 1
push ebx
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x10004ca8
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x638]
push eax
push ebx
push 0x100016ac
push dword [ebp - 0x624]
mov dword [ebp - 0x638], 1
mov dword [ebp - 0x630], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x10004cc2
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x10004c41
push ebx
push eax
push 0x100012e8
push edi
push 0x6f8
push esi
call fcn.10006b9b
add esp, 0x18
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x10004c63
mov dword [ebp - 0x62c], 1
inc dword [ebp - 0x628]
cmp dword [ebp - 0x62c], ebx
je 0x10004b6a
cmp dword [ebp - 0x62c], ebx
jne 0x10004cd4
push 0x10001694
push ebx
push ebx
push edi
push 0x70a
jmp 0x10004a4b
push dword [ebp - 0x628]
push 0x10001688
push eax
push 0x10001678
push edi
push 0x6d2
jmp 0x10004d07
lea ecx, [ebp - 0x108]
push ecx
push 0x10001670
push eax
push 0x1000134c
push edi
push 0x6e1
jmp 0x10004d07
push ebx
push eax
push 0x100012f8
push edi
push 0x6f3
jmp 0x10004a4b
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp eax, ebx
je 0x10004d7a
lea ecx, [ebp - 0x108]
push ecx
push 0x10001654
push eax
push 0x10001644
push edi
push 0x714
push esi
call fcn.10006b9b
add esp, 0x1c
cmp dword [ebp - 0x620], ebx
je 0x10004d3e
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x10004d3e
push ebx
push eax
push 0x100012e8
push edi
push 0x728
push esi
call fcn.10006b9b
add esp, 0x18
cmp dword [ebp - 0x624], ebx
je 0x10004d6c
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x10004d6c
push ebx
push eax
push 0x100012e8
push edi
push 0x72e
push esi
call fcn.10006b9b
add esp, 0x18
push 0x1000161c
call fcn.10006a49
xor eax, eax
jmp 0x10004dad
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x10004da0
push ebx
push eax
push 0x100012e8
push edi
push 0x71c
push esi
call fcn.10006b9b
add esp, 0x18
push 0x100015f0
call fcn.10006a49
xor eax, eax
inc eax
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.100072a1
leave
ret 8