Function at 0x4194e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x437118]
xor eax, ebp
push ebx
mov dword [esp + 0x23c], eax
mov eax, dword [0x437fd0]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
inc eax
mov dword [0x437fd0], eax
lea eax, [esp + 0x14]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push esi
push edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4196e0
push ebx
push ebx
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x28]
push ebx
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x54]
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4196d0
mov edx, dword [esp + 0x38]
dec edx
cmp edx, ebx
mov dword [esp + 0x10], edx
jl 0x4196c5
lea eax, [esp + 0x40]
sub eax, esi
mov dword [esp + 0x24], eax
jmp 0x419590
mov edx, dword [esp + 0x10]
jmp 0x419590
mov byte [esp + 0x140], bl
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x141]
rep stosd dword es:[edi], eax
push pe_nt_image_headers32
lea ecx, [esp + 0x144]
push ecx
push edx
mov edx, dword [esp + 0x20]
stosw word es:[edi], ax
push edx
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
xor eax, eax
mov byte [esp + 0x40], bl
mov ecx, 0x3f
lea edi, [esp + 0x41]
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 + 0x24]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4195e0
lea edi, [esp + 0x40]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x4195f3
mov ax, word [0x430100]
mov word [edi], ax
lea eax, [esp + 0x140]
mov esi, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x419610
lea edi, [esp + 0x40]
sub eax, esi
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x419620
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 [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push ebx
lea edx, [esp + 0x4c]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4196a2
push ebx
push ebx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x2c]
push ebx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x50]
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4196a2
cmp dword [esp + 0x34], ebx
je 0x419697
lea eax, [esp + 0x40]
push eax
push esi
call fcn.004194e0
add esp, 8
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x40]
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
dec eax
mov dword [esp + 0x10], eax
jns 0x419582
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x437fd0], ebx
jne 0x4196e0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [esp + 0x244]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040cd3e
mov esp, ebp
pop ebp
ret