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

Disassembly:
push 0xffffffffffffffff
push 0x452988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
mov eax, dword [0x45c050]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 2
push ecx
push edx
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x42c3df
push esi
lea ecx, [esp + 0x34]
push esi
mov edx, dword [esp + 0x1c]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push edx
mov dword [esp + 0x60], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [esp + 0x30]
inc eax
push eax
mov dword [esp + 0x34], eax
call fcn.0044560d
mov ebp, eax
add esp, 4
cmp ebp, esi
je 0x42c3d4
mov ecx, dword [esp + 0x30]
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x38]
and ecx, 3
mov dword [esp + 0x18], esi
rep stosb byte es:[edi], al
lea eax, [esp + 0x30]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ebp
push ecx
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [esp + 0x10]
mov ebx, eax
cmp dword [edi - 0xc], 1
jg 0x42c38d
cmp ebx, dword [edi - 4]
jle 0x42c3a8
lea ecx, [esp + 0x10]
call fcn.00425890
push ebx
lea ecx, [esp + 0x14]
call fcn.00425830
cmp eax, esi
je 0x42c3cb
mov edi, dword [esp + 0x10]
mov ecx, ebx
mov esi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
xor esi, esi
mov dword [eax - 8], ebx
mov ecx, dword [esp + 0x10]
mov byte [ebx + ecx], 0
push ebp
call fcn.004447ea
add esp, 4
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x2c]
mov edx, dword [eax - 0xc]
lea ecx, [eax - 0xc]
cmp edx, esi
jl 0x42c3fd
push ecx
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42c447
mov ecx, dword [0x45c050]
cmp eax, esi
mov dword [ebp], ecx
mov edi, eax
jne 0x42c410
xor ebx, ebx
jmp 0x42c419
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00425ae0
test eax, eax
je 0x42c447
mov ecx, ebx
mov esi, edi
mov edi, dword [ebp]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov dword [eax - 8], ebx
mov ecx, dword [ebp]
mov byte [ecx + ebx], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [0x45c054]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x42c478
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x42c478
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004447ea
add esp, 4
mov esi, dword [esp + 0x34]
mov eax, dword [0x45c054]
lea ecx, [esi - 0xc]
cmp ecx, eax
je 0x42c49b
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x42c49b
push esi
call fcn.004447ea
add esp, 4
mov esi, dword [esp + 0x38]
mov eax, dword [0x45c054]
lea edx, [esi - 0xc]
cmp edx, eax
je 0x42c4be
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x42c4be
push esi
call fcn.004447ea
add esp, 4
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret