Function at 0x421c00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453f14
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x46b664]
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.00421010
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.0040eba0
mov byte [ebp - 4], 2
mov ecx, esi
push ecx
mov edx, 0x80000001
call fcn.0041c690
add esp, 4
test al, al
je 0x42218d
mov byte [ebp - 4], 3
push 0x80000001
mov edi, esi
lea ecx, [ebp - 0x90]
call fcn.0041c420
add esp, 4
mov byte [ebp - 4], 4
mov edi, eax
lea eax, [ebp - 0x98]
call fcn.0041cd70
mov byte [ebp - 4], 3
lea eax, [ebp - 0x90]
call fcn.0041cd40
mov dword [ebp - 4], 2
jmp 0x421cfa
mov edi, dword [ebp - 0x98]
cmp edi, 0xffffffff
je 0x422216
cmp edi, ebx
je 0x422216
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.0040eba0
mov byte [ebp - 4], 9
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x421d3f
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 0x421d68
cmp eax, ebx
mov byte [ebp - 0x81], bl
jne 0x421d6f
mov byte [ebp - 0x81], 1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], 8
jb 0x421d85
mov eax, dword [ebp - 0x34]
push eax
call fcn.00431dda
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 0x421e26
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.0040eba0
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x80]
push eax
mov edx, esi
mov ecx, edi
call fcn.0041c760
add esp, 4
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x20], 8
jb 0x421dea
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00431dda
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 0x421e19
lea eax, [ebp - 0x80]
push eax
call fcn.0041cfc0
lea ecx, [eax - 1]
cmp ecx, 2
ja 0x421e19
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.0040eba0
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x421e54
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 0x421e7d
cmp eax, ebx
mov byte [ebp - 0x81], bl
jne 0x421e84
mov byte [ebp - 0x81], 1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], 8
jb 0x421e9a
mov edx, dword [ebp - 0x34]
push edx
call fcn.00431dda
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 0x421f39
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.0040eba0
mov byte [ebp - 4], 0xe
lea edx, [ebp - 0x80]
push edx
mov edx, esi
mov ecx, edi
call fcn.0041c760
add esp, 4
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x20], 8
jb 0x421eff
mov eax, dword [ebp - 0x34]
push eax
call fcn.00431dda
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 0x421f2c
lea edx, [ebp - 0x80]
push edx
call fcn.0041cfc0
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.0040eba0
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x421f67
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 0x421f90
cmp eax, ebx
mov byte [ebp - 0x81], bl
jne 0x421f97
mov byte [ebp - 0x81], 1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], 8
jb 0x421fad
mov eax, dword [ebp - 0x34]
push eax
call fcn.00431dda
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 0x42204e
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.0040eba0
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x80]
push eax
mov edx, esi
mov ecx, edi
call fcn.0041c760
add esp, 4
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x20], 8
jb 0x422012
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00431dda
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 0x422041
lea eax, [ebp - 0x80]
push eax
call fcn.0041cfc0
cmp eax, 0xff
ja 0x422041
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.0040eba0
mov byte [ebp - 4], 0x15
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x42207c
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 0x4220a5
cmp eax, ebx
mov byte [ebp - 0x81], bl
jne 0x4220ac
mov byte [ebp - 0x81], 1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], 8
jb 0x4220c2
mov eax, dword [ebp - 0x34]
push eax
call fcn.00431dda
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 0x422216
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.0040eba0
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x80]
push eax
mov edx, esi
mov ecx, edi
call fcn.0041c760
add esp, 4
mov byte [ebp - 4], 0x18
cmp dword [ebp - 0x20], 8
jb 0x422127
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00431dda
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 0x4221f5
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x80]
push ecx
call fcn.0041ced0
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 0x42217f
mov eax, dword [ebp - 0x34]
push eax
call fcn.00431dda
add esp, 4
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
xor ecx, ecx
mov word [ebp - 0x34], cx
jmp 0x422209
lea edx, [ebp - 0x50]
push edx
mov edx, 0x80000002
call fcn.0041c690
add esp, 4
test al, al
je 0x422216
mov byte [ebp - 4], 6
push 0x80000002
lea edi, [ebp - 0x50]
lea ecx, [ebp - 0x90]
call fcn.0041c420
add esp, 4
mov byte [ebp - 4], 7
mov edi, eax
lea eax, [ebp - 0x98]
call fcn.0041cd70
mov byte [ebp - 4], 6
lea eax, [ebp - 0x90]
call fcn.0041cd40
mov dword [ebp - 4], 2
jmp 0x421cfa
push ebx
mov esi, dword [ebp - 0x88]
add esi, 0x40
mov eax, 0x45c490
call fcn.0040eba0
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 0x422261
mov esi, eax
add esi, 0x40
mov ecx, esi
lea edx, [ebp - 0x34]
call fcn.0041af50
mov byte [ebp - 4], 0x1a
mov edi, eax
call fcn.0040b5a0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x20], 8
jb 0x422251
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00431dda
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 0x422277
mov eax, dword [ebp - 0x50]
push eax
call fcn.00431dda
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 0x4222b2
dec dword [eax]
jne 0x4222b2
lea esi, [ebp - 0x98]
call fcn.0041cdb0
mov edx, dword [ebp - 0x94]
push edx
call fcn.00431dda
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.00431de5
mov esp, ebp
pop ebp
ret