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

Disassembly:
push ebp
sub esp, 0x2fc
lea ebp, [esp - 4]
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp + 0x2fc], eax
push 0x34
mov eax, 0x503f59
call fcn.004d9fe8
push 0x2e
pop edi
push 1
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
xor eax, eax
lea ecx, [ebp + 0x308]
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], edi
call fcn.0040f5c1
push eax
push ebx
lea eax, [ebp + 0x308]
push eax
lea esi, [ebp + 0x1c]
call fcn.0040f593
push 1
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 1
xor eax, eax
lea ecx, [ebp + 0x308]
mov dword [ebp - 0x14], edi
call fcn.0040f5c1
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp + 0x308]
push eax
lea esi, [ebp + 0x38]
call fcn.0040f593
push 1
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
xor eax, eax
lea ecx, [ebp + 0x308]
mov dword [ebp - 0x14], edi
call fcn.0040f5c1
push eax
mov eax, esi
push ebx
push eax
lea esi, [ebp + 0xa8]
call fcn.0040f593
mov esi, eax
lea edi, [ebp + 0x38]
mov byte [ebp - 4], 3
call fcn.004035c0
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp + 0xa8]
mov byte [ebp - 4], 2
call fcn.0040476f
cmp dword [ebp + 0x30], 8
mov eax, dword [ebp + 0x1c]
jae 0x42b65e
lea eax, [ebp + 0x1c]
push eax
call fcn.004d8a4b
cmp dword [ebp + 0x4c], 8
mov esi, eax
mov eax, dword [ebp + 0x38]
pop ecx
mov dword [ebp - 0x34], esi
jae 0x42b676
lea eax, [ebp + 0x38]
push eax
call fcn.004d8a4b
add esi, 0xfffffffe
pop ecx
mov dword [ebp - 0x38], eax
cmp esi, 2
ja 0x42bb29
xor eax, eax
push 0x530420
lea ecx, [ebp + 0x54]
mov dword [ebp + 0x68], 7
mov dword [ebp + 0x64], ebx
mov word [ebp + 0x54], ax
call fcn.00404441
mov byte [ebp - 4], 4
cmp dword [ebp + 0x68], 8
mov eax, dword [ebp + 0x54]
jae 0x42b6b9
lea eax, [ebp + 0x54]
lea ecx, [ebp - 0x3c]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42baf6
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x40]
push eax
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x3c]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x42baf6
push 0x1fe
mov word [ebp + 0xfc], ax
lea eax, [ebp + 0xfe]
push ebx
push eax
call fcn.004d9310
add esp, 0xc
mov dword [ebp - 0x14], 0x100
mov dword [ebp - 0x20], ebx
cmp dword [ebp - 0x28], ebx
jbe 0x42baf6
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xfc]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x42ba9a
mov word [ebp + 0x70], ax
lea eax, [ebp + 0xfc]
push eax
lea ecx, [ebp + 0x70]
mov dword [ebp + 0x84], 7
mov dword [ebp + 0x80], ebx
call fcn.00404441
push edi
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 5
xor eax, eax
lea ecx, [ebp + 0x70]
mov dword [ebp - 0x24], 0x2e
call fcn.0040f5c1
dec eax
push eax
push edi
lea eax, [ebp + 0x70]
push eax
lea esi, [ebp + 0x8c]
call fcn.0040f593
push 0x53041c
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.0041257e
test eax, eax
je 0x42b7d8
push str.344
mov ecx, esi
call fcn.0041257e
test eax, eax
je 0x42b7d8
push 0x53047c
mov ecx, esi
call fcn.0041257e
test eax, eax
jne 0x42ba7c
lea eax, [ebp + 0xc4]
push 0x530480
push eax
lea ebx, [ebp + 0x54]
call fcn.0041237a
lea ecx, [ebp + 0x70]
push ecx
lea ecx, [ebp + 0xa8]
push ecx
mov ecx, eax
mov byte [ebp - 4], 7
call fcn.004123e8
add esp, 0x10
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp + 0xc4]
mov byte [ebp - 4], 9
call fcn.0040476f
push 0x530484
lea ecx, [ebp + 0x8c]
call fcn.0041257e
test eax, eax
jne 0x42b864
lea eax, [ebp + 0xe0]
push 0x530488
push eax
lea ebx, [ebp + 0xa8]
call fcn.0041237a
pop ecx
pop ecx
mov esi, eax
mov edi, ebx
mov byte [ebp - 4], 0xa
call fcn.004035c0
push 0
push 1
lea ecx, [ebp + 0xe0]
call fcn.0040476f
xor ebx, ebx
cmp dword [ebp + 0xbc], 8
mov eax, dword [ebp + 0xa8]
jae 0x42b879
lea eax, [ebp + 0xa8]
lea ecx, [ebp - 0x2c]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42ba6c
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.Install
push dword [ebp - 0x2c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], esi
call edi
test eax, eax
jne 0x42ba6c
cmp dword [ebp - 0x18], esi
je 0x42b8d7
cmp dword [ebp - 0x18], 5
jne 0x42ba6c
cmp dword [ebp - 0x24], 1
jne 0x42ba6c
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp + 0xf4], 7
mov dword [ebp + 0xf0], ebx
mov word [ebp + 0xe0], ax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x5304a4
mov byte [ebp - 4], 0xb
push dword [ebp - 0x2c]
call edi
test eax, eax
jne 0x42ba5e
mov edi, dword [ebp - 0x1c]
cmp edi, dword [ebp + 0xf0]
ja 0x42b93b
push 0xffffffffffffffff
push edi
lea ecx, [ebp + 0xe0]
call fcn.004044a0
jmp 0x42b94d
sub edi, dword [ebp + 0xf0]
push ebx
lea esi, [ebp + 0xe0]
call fcn.00427364
cmp dword [ebp + 0xf4], 8
mov eax, dword [ebp + 0xe0]
jae 0x42b962
lea eax, [ebp + 0xe0]
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x5304b4
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42ba5e
push 0x2e
pop edi
push 1
lea eax, [ebp - 0x30]
push eax
xor eax, eax
lea ecx, [ebp + 0xe0]
mov dword [ebp - 0x30], edi
call fcn.0040f5c1
push 0xffffffffffffffff
inc eax
push eax
lea eax, [ebp + 0xe0]
push eax
lea esi, [ebp + 0xc4]
call fcn.0040f593
push 1
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 0xc
xor eax, eax
mov ecx, esi
mov dword [ebp - 0x30], edi
call fcn.0040f5c1
push eax
mov eax, esi
push ebx
push eax
lea esi, [ebp]
call fcn.0040f593
mov esi, eax
lea edi, [ebp + 0xc4]
mov byte [ebp - 4], 0xd
call fcn.004035c0
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp]
mov byte [ebp - 4], 0xc
call fcn.0040476f
cmp dword [ebp + 0xa0], 8
mov eax, dword [ebp + 0x8c]
jae 0x42ba0b
lea eax, [ebp + 0x8c]
push eax
call fcn.004d8a4b
cmp dword [ebp + 0xd8], 8
mov edi, eax
mov eax, dword [ebp + 0xc4]
pop ecx
jae 0x42ba29
lea eax, [ebp + 0xc4]
push eax
call fcn.004d8a4b
pop ecx
cmp edi, 4
jge 0x42ba44
cmp dword [ebp - 0x34], edi
jl 0x42bab2
jne 0x42ba41
cmp dword [ebp - 0x38], eax
jle 0x42bab2
cmp edi, 4
jne 0x42ba51
cmp dword [ebp - 0x34], 4
jne 0x42ba51
cmp dword [ebp - 0x38], eax
jle 0x42bab2
push ebx
push esi
lea ecx, [ebp + 0xc4]
call fcn.0040476f
push ebx
push 1
lea ecx, [ebp + 0xe0]
call fcn.0040476f
push ebx
push 1
lea ecx, [ebp + 0xa8]
call fcn.0040476f
xor ebx, ebx
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp + 0x8c]
call fcn.0040476f
push ebx
push edi
lea ecx, [ebp + 0x70]
mov byte [ebp - 4], 4
call fcn.0040476f
inc dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], 0x100
cmp eax, dword [ebp - 0x28]
jb 0x42b72e
jmp 0x42baf6
push ebx
push esi
lea ecx, [ebp + 0xc4]
mov byte [ebp - 0xd], 1
call fcn.0040476f
push ebx
push esi
lea ecx, [ebp + 0xe0]
call fcn.0040476f
push ebx
push esi
lea ecx, [ebp + 0xa8]
call fcn.0040476f
push ebx
push esi
lea ecx, [ebp + 0x8c]
call fcn.0040476f
push ebx
push esi
lea ecx, [ebp + 0x70]
call fcn.0040476f
xor ebx, ebx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x54]
call fcn.0040476f
push ebx
push esi
lea ecx, [ebp + 0x38]
call fcn.0040476f
push ebx
push esi
lea ecx, [ebp + 0x1c]
call fcn.0040476f
push ebx
push esi
lea ecx, [ebp + 0x308]
call fcn.0040476f
mov al, byte [ebp - 0xd]
jmp 0x42bb4c
push ebx
push edi
lea ecx, [ebp + 0x38]
call fcn.0040476f
push ebx
push edi
lea ecx, [ebp + 0x1c]
call fcn.0040476f
push ebx
push edi
lea ecx, [ebp + 0x308]
call fcn.0040476f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2fc]
xor ecx, ebp
call fcn.004d5e0b
add ebp, 0x300
leave
ret