Function at 0x4209a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x3c
mov eax, 0x47daf6
call fcn.004542d2
xor ebx, ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
call fcn.0040aa2d
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x38]
push dword [0x4a73dc]
push str.SYSTEMSoftware_sIcarusPending_Operations
push eax
call fcn.0040bd93
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push dword [ebp - 0x38]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420df6
mov ebx, dword [ebp - 0x1c]
mov esi, 0x100
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 1
test ebx, ebx
je 0x420bfb
lea ecx, [ebp - 0x10]
call fcn.0040aa2d
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov edi, eax
mov dword [ebp - 0x3c], eax
xor ecx, ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ecx
push eax
push ecx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], esi
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.0040a41f
push eax
xor eax, eax
push eax
jmp 0x420bc9
cmp dword [ebp - 0x30], 7
je 0x420a56
jmp 0x420b81
mov edx, dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x24], eax
mov ecx, ebx
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004206b1
add esp, 0xc
test eax, eax
jne 0x420b73
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], eax
call fcn.0040aa2d
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.0040aa2d
mov byte [ebp - 4], 5
xor edx, edx
mov edi, dword [ebp - 0x24]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x420a9f
sub edi, ecx
sar edi, 1
je 0x420b52
mov ebx, dword [ebp - 0x24]
mov ecx, edi
call fcn.004230d5
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a41f
mov ecx, edi
mov esi, eax
call fcn.004230d5
push eax
lea ecx, [ebp - 0x18]
call fcn.0040a41f
mov ecx, dword [ebp - 0x20]
push esi
push eax
add ecx, ebx
push str._MoveFile__________
push ecx
call fcn.0041b9fe
add esp, 0xc
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0040d63e
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040d63e
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx + edi*2]
add ecx, 2
mov dword [ebp - 0x20], ecx
cmp esi, 2
jne 0x420b32
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x420b32
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x420b32
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00420729
mov ecx, dword [ebp - 0x20]
lea edi, [ecx + ebx]
xor edx, edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x420b3a
sub edi, ecx
sar edi, 1
jne 0x420ab7
mov ebx, dword [ebp - 0x44]
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov edi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x420b81
push eax
call fcn.0045d3d7
pop ecx
xor eax, eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040aa0b
lea ecx, [ebp - 0x10]
call fcn.0040aa2d
mov byte [ebp - 4], 1
xor ecx, ecx
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ecx
push eax
push ecx
lea eax, [ebp - 0x30]
mov edx, 0x100
push eax
push ecx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], edx
push eax
mov esi, edi
lea ecx, [ebp - 0x10]
inc edi
push edx
mov dword [ebp - 0x3c], edi
call fcn.0040a41f
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push ecx
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0040d63e
test esi, esi
je 0x420a4b
xor eax, eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov ebx, dword [ebp - 0x1c]
mov esi, 0x100
lea eax, [ebp - 0x28]
push eax
push 0x20019
xor eax, eax
push eax
push str.Protected
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x420df6
mov edi, dword [ebp - 0x28]
mov dword [ebp - 0x44], edi
test edi, edi
je 0x420e05
lea ecx, [ebp - 0x10]
call fcn.0040aa2d
mov byte [ebp - 4], 9
xor ebx, ebx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
push eax
push ebx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], esi
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.0040a41f
push eax
push ebx
jmp 0x420dce
cmp dword [ebp - 0x30], 7
je 0x420c66
jmp 0x420d87
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], ebx
push eax
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.004206b1
mov ebx, dword [ebp - 0x3c]
add esp, 0xc
test eax, eax
jne 0x420d7a
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x24], eax
call fcn.0040aa2d
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x18]
call fcn.0040aa2d
mov byte [ebp - 4], 0xd
mov edi, ebx
xor edx, edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x420cb1
jmp 0x420d4f
mov ecx, edi
call fcn.004230d5
push eax
lea ecx, [ebp - 0x18]
call fcn.0040a41f
mov ecx, edi
mov esi, eax
call fcn.004230d5
push eax
lea ecx, [ebp - 0x14]
call fcn.0040a41f
mov ecx, dword [ebp - 0x24]
push esi
push eax
add ecx, ebx
push str._MoveFile__________
push ecx
call fcn.0041b9fe
add esp, 0xc
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.0040d63e
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040d63e
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx + edi*2]
add ecx, 2
mov dword [ebp - 0x24], ecx
cmp esi, 2
jne 0x420d3c
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x420d3c
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
je 0x420d3c
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.00420729
mov ecx, dword [ebp - 0x24]
lea edi, [ecx + ebx]
xor edx, edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x420d44
sub edi, ecx
sar edi, 1
jne 0x420cc1
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov edi, dword [ebp - 0x44]
test ebx, ebx
je 0x420d85
push ebx
call fcn.0045d3d7
pop ecx
xor ebx, ebx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040aa0b
lea ecx, [ebp - 0x10]
call fcn.0040aa2d
mov byte [ebp - 4], 9
mov ecx, 0x100
mov eax, dword [ebp - 0x40]
mov esi, eax
inc eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], ebx
push eax
push ebx
lea eax, [ebp - 0x2c]
push eax
push ecx
lea ecx, [ebp - 0x10]
call fcn.0040a41f
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push ecx
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0040d63e
test esi, esi
je 0x420c5b
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
cmp dword [ebp - 0x28], 0
je 0x420e05
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0
je 0x420e14
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x38]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
xor eax, eax
call fcn.004542a0
ret