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

Disassembly:
push 0xffffffffffffffff
push 0x4b2e68
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f2888]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0x5c]
xor ebp, ebp
push ebp
push ebp
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x40]
push edx
push ebp
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
push ecx
push ebp
push ebp
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebp
je 0x425dab
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x426054
test byte [esp + 0x60], 1
je 0x425ed4
push ebp
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov ecx, dword [esp + 0x20]
push ecx
push ebp
push eax
mov dword [esp + 0x5c], ebp
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [esp + 0x1c]
inc edx
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], esi
call fcn.0042d6ea
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
add esp, 4
mov esi, eax
xor edi, edi
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x5c]
inc eax
lea ecx, [esp + 0x40]
push ecx
push edx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x4c]
push eax
push 0
lea ecx, [esp + 0x28]
push ecx
push esi
push edi
push ebx
call ebp
test eax, eax
jne 0x425e85
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
push eax
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x60]
push esi
push eax
call edx
test eax, eax
jne 0x425e8c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0042d6f5
mov eax, dword [esp + 0x40]
add esp, 4
test eax, eax
je 0x425e73
mov ecx, dword [esp + 0x38]
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
xor eax, eax
jmp 0x426054
cmp eax, 0x103
je 0x425e9a
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], eax
inc edi
jmp 0x425e02
push esi
call fcn.0042d6f5
mov eax, dword [esp + 0x40]
add esp, 4
mov dword [esp + 0x50], 0xffffffff
test eax, eax
je 0x425ec1
push eax
mov eax, dword [esp + 0x3c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
mov edi, dword [esp + 0x14]
mov esi, ebx
xor ebp, ebp
mov edx, dword [esp + 0x24]
inc edx
push edx
call fcn.0042d6ea
mov ebx, eax
mov eax, dword [esp + 0x28]
add esp, 4
inc eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
push ecx
push ebx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, ebp
jne 0x426004
test byte [esp + 0x60], 2
je 0x425f29
mov ecx, dword [esp + 0x64]
mov eax, dword [edi]
mov edx, dword [eax + 8]
push ecx
push ebx
mov ecx, edi
call edx
test eax, eax
je 0x426014
lea eax, [esp + 0x2c]
push eax
push 0x20019
push ebp
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42600b
mov edi, dword [esp + 0x58]
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x425f50
sub eax, edx
mov edx, eax
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x425f60
sub eax, esi
lea ecx, [eax + edx + 2]
push ecx
call fcn.0042d6ea
mov ebp, eax
mov edx, ebp
add esp, 4
mov eax, edi
sub edx, edi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x425f80
mov edi, ebp
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x425f90
mov dx, word [0x4bb75c]
mov eax, ebx
mov word [edi], dx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x425fa6
mov edi, ebp
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x425fb4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x64]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x2c]
inc eax
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push ebp
call fcn.00425d40
test eax, eax
je 0x426021
push ebp
call fcn.0042d6f5
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x18]
add esp, 4
xor ebp, ebp
inc dword [esp + 0x18]
jmp 0x425ef1
cmp eax, 0x103
je 0x42603f
inc dword [esp + 0x18]
jmp 0x425ef1
push ebx
call fcn.0042d6f5
add esp, 4
xor eax, eax
jmp 0x426054
mov eax, dword [esp + 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0042d6f5
push ebp
call fcn.0042d6f5
add esp, 8
xor eax, eax
jmp 0x426054
push ebx
call fcn.0042d6f5
add esp, 4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x10