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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
push ebx
push esi
push edi
mov dword [ebp - 0x210], 0
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
push 0
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42dc03
jmp 0x42dec2
mov dword [ebp - 8], 0
mov dword [ebp - 0x210], 0
cmp dword [ebp - 8], 0
jne 0x42deb5
mov byte [ebp - 0x53c], 0
mov dword [ebp - 4], 0x320
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x53c]
push eax
mov eax, dword [ebp - 0x210]
push eax
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 8], eax
inc dword [ebp - 0x210]
cmp dword [ebp - 8], 0
jne 0x42deb0
lea eax, [ebp - 0x218]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x53c]
push eax
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42deb0
push 0x478a74
push 0x200
lea eax, [ebp - 0x20c]
push eax
call fcn.00452660
add esp, 0xc
lea eax, [ebp - 0x540]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42dd0f
lea eax, [ebp - 0x540]
push eax
cmp dword [0x462284], 1
mov eax, 0
adc eax, 0xffffffff
and eax, 0x100
or eax, 0x20019
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42dd9b
push 0x478a94
push 0x200
lea eax, [ebp - 0x20c]
push eax
call fcn.00452660
add esp, 0xc
lea eax, [ebp - 0x540]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42dd9b
lea eax, [ebp - 0x540]
push eax
cmp dword [0x462284], 1
mov eax, 0
adc eax, 0xffffffff
and eax, 0x100
or eax, 0x20019
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42ddaa
jmp 0x42de96
mov dword [ebp - 0x21c], 0x200
lea eax, [ebp - 0x20c]
mov dword [eax], 0
mov dword [eax + 4], 0
mov word [eax + 8], 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x478ac0
mov eax, dword [ebp - 0x540]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0xc], eax
lea edi, [ebp - 0x20c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx - 1]
cmp eax, 5
jbe 0x42de72
mov edi, dword [ebp + 8]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x478acc]
mov dword [edi - 1], eax
lea edi, [ebp - 0x20c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, edi
mov ebx, ecx
mov edi, dword [ebp + 8]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov esi, edx
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x478ad0]
mov dword [edi - 1], eax
jmp 0x42de77
jmp 0x42de96
mov eax, dword [ebp - 0x540]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42deb5
mov eax, dword [ebp - 0x540]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42dc14
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret