Function at 0x422350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454914
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x46c664]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x88], eax
mov edi, ecx
mov dword [ebp - 0xa0], ebx
push eax
call fcn.00421760
mov dword [ebp - 4], ebx
mov eax, 1
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x98], 0xffffffff
mov dword [ebp - 0x94], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], ebx
xor eax, eax
mov word [ebp - 0x50], ax
push 0x1b
mov eax, str.SOFTWARESAPSAPSetupTrace
lea esi, [ebp - 0x50]
call fcn.0040e990
mov byte [ebp - 4], 2
mov ecx, esi
push ecx
mov edx, 0x80000001
call fcn.0041cbf0
add esp, 4
test al, al
je 0x4228dd
mov byte [ebp - 4], 3
push 0x80000001
mov edi, esi
lea ecx, [ebp - 0x90]
call fcn.0041c980
add esp, 4
mov byte [ebp - 4], 4
mov edi, eax
lea eax, [ebp - 0x98]
call fcn.0041d1c0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x90]
call fcn.0041d190
mov dword [ebp - 4], 2
jmp 0x42244a
mov edi, dword [ebp - 0x98]
cmp edi, 0xffffffff
je 0x422966
cmp edi, ebx
je 0x422966
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
xor eax, eax
mov word [ebp - 0x34], ax
push 5
mov eax, str.Level
lea esi, [ebp - 0x34]
call fcn.0040e990
mov byte [ebp - 4], 9
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x42248f
mov eax, esi
lea ecx, [ebp - 0x9c]
push ecx
push ebx
lea edx, [ebp - 0x8c]
push edx
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x4224b8
cmp eax, ebx
mov byte [ebp - 0x81], bl
jne 0x4224bf
mov byte [ebp - 0x81], 1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], 8
jb 0x4224d5
mov eax, dword [ebp - 0x34]
push eax
call fcn.0043266a
add esp, 4
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
xor ecx, ecx
mov word [ebp - 0x34], cx
cmp byte [ebp - 0x81], bl
je 0x422576
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
xor edx, edx
mov word [ebp - 0x34], dx
push 5
mov eax, str.Level
lea esi, [ebp - 0x34]
call fcn.0040e990
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x80]
push eax
mov edx, esi
mov ecx, edi
call fcn.0041ccc0
add esp, 4
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x20], 8
jb 0x42253a
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0043266a
add esp, 4
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
xor edx, edx
mov word [ebp - 0x34], dx
cmp dword [ebp - 0x54], 4
jne 0x422569
lea eax, [ebp - 0x80]
push eax
call fcn.0041d410
lea ecx, [eax - 1]
cmp ecx, 2
ja 0x422569
mov edx, dword [ebp - 0x88]
mov dword [edx], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x80]
push eax
call fcn.00405050
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
xor ecx, ecx
mov word [ebp - 0x34], cx
push 5
mov eax, str.Flush
lea esi, [ebp - 0x34]
call fcn.0040e990
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x4225a4
mov eax, esi
lea edx, [ebp - 0x8c]
push edx
push ebx
lea ecx, [ebp - 0x9c]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x4225cd
cmp eax, ebx
mov byte [ebp - 0x81], bl
jne 0x4225d4
mov byte [ebp - 0x81], 1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], 8
jb 0x4225ea
mov edx, dword [ebp - 0x34]
push edx
call fcn.0043266a
add esp, 4
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
xor eax, eax
mov word [ebp - 0x34], ax
cmp byte [ebp - 0x81], bl
je 0x422689
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
xor ecx, ecx
mov word [ebp - 0x34], cx
push 5
mov eax, str.Flush
lea esi, [ebp - 0x34]
call fcn.0040e990
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x80]
push edx
mov edx, esi
mov ecx, edi
call fcn.0041ccc0
add esp, 4
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x20], 8
jb 0x42264f
mov eax, dword [ebp - 0x34]
push eax
call fcn.0043266a
add esp, 4
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
xor ecx, ecx
mov word [ebp - 0x34], cx
cmp dword [ebp - 0x54], 4
jne 0x42267c
lea edx, [ebp - 0x80]
push edx
call fcn.0041d410
cmp eax, ebx
setne al
mov ecx, dword [ebp - 0x88]
mov byte [ecx + 0x5d], al
mov byte [ebp - 4], 2
lea edx, [ebp - 0x80]
push edx
call fcn.00405050
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
xor eax, eax
mov word [ebp - 0x34], ax
push 9
mov eax, str.MaxBackup
lea esi, [ebp - 0x34]
call fcn.0040e990
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x4226b7
mov eax, esi
lea ecx, [ebp - 0x8c]
push ecx
push ebx
lea edx, [ebp - 0x9c]
push edx
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x4226e0
cmp eax, ebx
mov byte [ebp - 0x81], bl
jne 0x4226e7
mov byte [ebp - 0x81], 1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], 8
jb 0x4226fd
mov eax, dword [ebp - 0x34]
push eax
call fcn.0043266a
add esp, 4
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
xor ecx, ecx
mov word [ebp - 0x34], cx
cmp byte [ebp - 0x81], bl
je 0x42279e
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
xor edx, edx
mov word [ebp - 0x34], dx
push 9
mov eax, str.MaxBackup
lea esi, [ebp - 0x34]
call fcn.0040e990
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x80]
push eax
mov edx, esi
mov ecx, edi
call fcn.0041ccc0
add esp, 4
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x20], 8
jb 0x422762
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0043266a
add esp, 4
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
xor edx, edx
mov word [ebp - 0x34], dx
cmp dword [ebp - 0x54], 4
jne 0x422791
lea eax, [ebp - 0x80]
push eax
call fcn.0041d410
cmp eax, 0xff
ja 0x422791
mov ecx, dword [ebp - 0x88]
mov dword [ecx + 4], eax
mov byte [ebp - 4], 2
lea edx, [ebp - 0x80]
push edx
call fcn.00405050
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
xor eax, eax
mov word [ebp - 0x34], ax
push 9
mov eax, str.TargetDir
lea esi, [ebp - 0x34]
call fcn.0040e990
mov byte [ebp - 4], 0x15
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x4227cc
mov eax, esi
lea ecx, [ebp - 0x8c]
push ecx
push ebx
lea edx, [ebp - 0x9c]
push edx
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
je 0x4227f5
cmp eax, ebx
mov byte [ebp - 0x81], bl
jne 0x4227fc
mov byte [ebp - 0x81], 1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], 8
jb 0x422812
mov eax, dword [ebp - 0x34]
push eax
call fcn.0043266a
add esp, 4
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
xor ecx, ecx
mov word [ebp - 0x34], cx
cmp byte [ebp - 0x81], bl
je 0x422966
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
xor edx, edx
mov word [ebp - 0x34], dx
push 9
mov eax, str.TargetDir
lea esi, [ebp - 0x34]
call fcn.0040e990
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x80]
push eax
mov edx, esi
mov ecx, edi
call fcn.0041ccc0
add esp, 4
mov byte [ebp - 4], 0x18
cmp dword [ebp - 0x20], 8
jb 0x422877
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0043266a
add esp, 4
mov esi, 7
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
xor edx, edx
mov word [ebp - 0x34], dx
cmp dword [ebp - 0x54], 1
jne 0x422945
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.0041d320
mov byte [ebp - 4], 0x19
push ebx
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x88]
add ecx, 0x40
or eax, 0xffffffff
call fcn.00401a90
mov byte [ebp - 4], 0x18
cmp dword [ebp - 0x20], 8
jb 0x4228cf
mov eax, dword [ebp - 0x34]
push eax
call fcn.0043266a
add esp, 4
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
xor ecx, ecx
mov word [ebp - 0x34], cx
jmp 0x422959
lea edx, [ebp - 0x50]
push edx
mov edx, 0x80000002
call fcn.0041cbf0
add esp, 4
test al, al
je 0x422966
mov byte [ebp - 4], 6
push 0x80000002
lea edi, [ebp - 0x50]
lea ecx, [ebp - 0x90]
call fcn.0041c980
add esp, 4
mov byte [ebp - 4], 7
mov edi, eax
lea eax, [ebp - 0x98]
call fcn.0041d1c0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x90]
call fcn.0041d190
mov dword [ebp - 4], 2
jmp 0x42244a
push ebx
mov esi, dword [ebp - 0x88]
add esi, 0x40
mov eax, 0x45d498
call fcn.0040e990
mov byte [ebp - 4], 2
lea edx, [ebp - 0x80]
push edx
call fcn.00405050
mov eax, dword [ebp - 0x88]
cmp dword [eax + 0x50], ebx
je 0x4229b1
mov esi, eax
add esi, 0x40
mov ecx, esi
lea edx, [ebp - 0x34]
call fcn.0041b360
mov byte [ebp - 4], 0x1a
mov edi, eax
call fcn.0040b350
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], 8
jb 0x4229a1
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.0043266a
add esp, 4
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], ebx
xor edx, edx
mov word [ebp - 0x34], dx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x3c], 8
jb 0x4229c7
mov eax, dword [ebp - 0x50]
push eax
call fcn.0043266a
add esp, 4
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], ebx
xor ecx, ecx
mov word [ebp - 0x50], cx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x94]
cmp eax, ebx
je 0x422a02
dec dword [eax]
jne 0x422a02
lea esi, [ebp - 0x98]
call fcn.0041d200
mov edx, dword [ebp - 0x94]
push edx
call fcn.0043266a
add esp, 4
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00432675
mov esp, ebp
pop ebp
ret