Function at 0x419520
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [0x438148]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [0x438ff0]
push edi
mov dword [esp + 0x23c], eax
lea eax, [esp + 0x10]
push eax
push 0xf003f
inc esi
mov dword [0x438ff0], esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41970d
push ebx
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x24]
push ebx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4196fa
mov edx, dword [esp + 0x28]
dec edx
cmp edx, ebx
mov dword [esp + 0x14], edx
jl 0x4196ef
lea eax, [esp + 0x38]
sub eax, esi
mov dword [esp + 0x30], eax
jmp 0x4195c0
mov edx, dword [esp + 0x14]
mov edi, edi
xor eax, eax
mov byte [esp + 0x138], bl
mov ecx, 0x3f
lea edi, [esp + 0x139]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
stosw word es:[edi], ax
push 0x100
stosb byte es:[edi], al
lea eax, [esp + 0x13c]
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
xor eax, eax
mov byte [esp + 0x38], bl
mov ecx, 0x3f
lea edi, [esp + 0x39]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, esi
lea esp, [esp]
mov cl, byte [eax]
mov edx, dword [esp + 0x30]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x419610
lea edi, [esp + 0x38]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x419623
mov ax, word [0x431538]
mov word [edi], ax
lea eax, [esp + 0x138]
mov esi, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x419640
lea edi, [esp + 0x38]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x419650
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push ebx
lea edx, [esp + 0x44]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4196d1
push ebx
push ebx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x2c]
push ebx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4196d1
cmp dword [esp + 0x2c], ebx
je 0x4196c6
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00419520
add esp, 8
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x38]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x14]
mov esi, dword [ebp + 0xc]
dec eax
mov dword [esp + 0x14], eax
jns 0x4195ba
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x438ff0], ebx
jne 0x41970d
mov ecx, dword [ebp + 8]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0x23c]
xor eax, eax
call fcn.0040cf18
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret