Function at 0x413210
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
mov ecx, dword [ebx + 8]
push esi
push edi
push 0
mov esi, eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [ebx]
push 0
push ecx
push 0
push 0
push 0
push edx
push eax
call fcn.00412840
add esp, 0x24
test eax, eax
jne 0x4134f0
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x4132ec
cmp esi, 1
mov dword [ebx + 8], 1
mov dword [esp + 0x14], 0xffffffff
jne 0x413286
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push 0
push edx
jmp 0x4132a9
cmp esi, 2
jne 0x4132c9
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4132c9
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xa
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jne 0x4134f2
mov eax, 0xa
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 1
jne 0x4133fd
xor eax, eax
push eax
push eax
push eax
push eax
mov ecx, 0x41
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x28]
push eax
xor esi, esi
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x413369
lea ebx, [ebx]
cmp dword [ebp + 8], esi
je 0x41337f
xor eax, eax
push eax
push eax
push eax
push eax
mov ecx, 0x41
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
inc esi
push esi
push eax
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x413330
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
cmp eax, 0x104
jbe 0x4133a1
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xb
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, dword [esp + 0x10]
jae 0x4133bd
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0xb
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x4134e5
xor eax, eax
mov ecx, 0x41
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov edi, dword [ebx + 0x10]
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 2
jne 0x4134e5
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x14]
lea ecx, [eax + 0x10c]
push ecx
mov ecx, dword [esp + 0x10]
xor esi, esi
push esi
add eax, 0x108
push eax
push esi
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x413499
lea esp, [esp]
cmp dword [ebp + 8], esi
je 0x4134af
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x14]
lea edx, [eax + 0x10c]
push edx
mov edx, dword [esp + 0x10]
push 0
add eax, 0x108
push eax
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
push ecx
inc esi
push esi
push edx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x413450
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 9
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebx + 0x14]
test edi, edi
je 0x4134d8
xor eax, eax
mov ecx, 0x41
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov edi, dword [ebx + 0x14]
mov edx, ecx
shr ecx, 2
lea esi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [eax + 0x104], ecx
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret