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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x52aadf
push eax
mov eax, 0x20b0
mov dword fs:[0], esp
call fcn.004c79b0
mov edx, dword [esp + 0x20c4]
push ebx
push ebp
push esi
mov eax, dword [edx + 8]
mov ecx, dword [edx + 4]
push edi
push eax
xor ebx, ebx
push ecx
mov ecx, edx
mov dword [esp + 0x24], ebx
call fcn.004a6db0
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x54]
mov byte [esp + 0x54], al
call fcn.0040d630
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x34], cl
lea ecx, [esp + 0x34]
mov dword [esp + 0x20cc], ebx
call fcn.0040d630
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x44]
mov byte [esp + 0x20cc], 1
mov byte [esp + 0x44], dl
call fcn.0040d630
mov esi, dword [esp + 0x20d0]
lea eax, [esp + 0x13]
push eax
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x20d0], 2
call fcn.004a6030
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
mov byte [esp + 0x20cc], 3
call ebp
add esp, 4
cmp word [esi + eax*2 - 2], 0x5c
je 0x4a200a
lea edi, [eax - 1]
cmp edi, ebx
jl 0x4a200a
lea eax, [esi + edi*2]
cmp word [eax], 0x5c
je 0x4a1fb8
dec edi
sub eax, 2
cmp edi, ebx
jge 0x4a1fa8
jmp 0x4a200a
lea esi, [esi + edi*2 + 2]
push esi
call ebp
add esp, 4
lea ecx, [esp + 0x50]
push eax
push esi
call fcn.0040fea0
push edi
lea ecx, [esp + 0x64]
push ebx
push ecx
lea ecx, [esp + 0x2c]
call fcn.004a60f0
mov edx, dword [0x535110]
lea ecx, [esp + 0x20]
push edx
push ebx
push eax
mov byte [esp + 0x20d4], 4
call fcn.0040fca0
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x20cc], 3
call fcn.0040d630
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
mov ebx, 0x535104
je 0x4a2019
mov ebx, ecx
mov ax, word [ebx]
test ax, ax
je 0x4a2033
cmp ax, 0x5c
je 0x4a204b
mov ax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x4a2021
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x20cc], 2
call fcn.0040d630
jmp 0x4a248f
xor edi, edi
mov esi, 0x53a760
jmp 0x4a2058
mov ecx, dword [esp + 0x24]
test ecx, ecx
mov dword [esp + 0x14], 0x535104
je 0x4a2068
mov dword [esp + 0x14], ecx
mov eax, dword [esi]
push eax
call ebp
mov ecx, dword [esi]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0x10
test eax, eax
je 0x4a2091
add esi, 0xc
inc edi
cmp esi, 0x53a808
jb 0x4a2054
jmp 0x4a2033
lea esi, [ebx + 2]
push esi
call ebp
add esp, 4
lea ecx, [esp + 0x30]
push eax
push esi
call fcn.0040fea0
lea esi, [edi + edi*2]
shl esi, 2
mov edi, dword [esi + 0x53a764]
push edi
call ebp
add esp, 4
lea ecx, [esp + 0x40]
push eax
push edi
call fcn.0040fea0
lea eax, [esp + 0x30]
lea ecx, [esp + 0x60]
push eax
push 0x5607a8
push ecx
call fcn.00413d10
add esp, 0xc
mov edx, dword [0x535110]
lea ecx, [esp + 0x40]
push edx
push 0
push eax
mov byte [esp + 0x20d4], 5
call fcn.004a7080
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x20cc], 3
call fcn.0040d630
mov ebx, dword [esi + 0x53a768]
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x20cc], 2
call fcn.0040d630
test ebx, ebx
je 0x4a248f
xor esi, esi
xor ebp, ebp
cmp dword [esp + 0x58], esi
jne 0x4a21a5
mov eax, dword [esp + 0x44]
cmp eax, esi
jne 0x4a213f
mov eax, 0x535104
xor ecx, ecx
cmp ebp, 1
sete cl
push ecx
push 8
push eax
lea ecx, [esp + 0x8c]
call fcn.004a1d00
mov eax, dword [esp + 0x34]
mov byte [esp + 0x20c8], 6
cmp eax, esi
mov dword [esp + 0x18], esi
jne 0x4a2170
mov eax, 0x535104
lea edx, [esp + 0x18]
push edx
push 8
push esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x4a22d1
cmp eax, 5
jne 0x4a23a3
mov byte [esp + 0x20c8], 2
lea ecx, [esp + 0x80]
jmp 0x4a22bb
lea eax, [esp + 0x40]
push 0x5607a8
lea ecx, [esp + 0xb4]
push eax
push ecx
call fcn.00413ae0
lea edx, [esp + 0x5c]
mov byte [esp + 0x20d4], 8
push edx
push eax
lea eax, [esp + 0x74]
push eax
call fcn.00413bf0
add esp, 0x18
mov eax, dword [eax + 4]
mov byte [esp + 0x20c8], 9
cmp eax, esi
jne 0x4a21eb
mov eax, 0x535104
xor ecx, ecx
cmp ebp, 1
sete cl
push ecx
push 1
push eax
lea ecx, [esp + 0xa4]
call fcn.004a1d00
push 1
lea ecx, [esp + 0x64]
mov byte [esp + 0x20cc], 0xc
call fcn.0040d630
push 1
lea ecx, [esp + 0xb4]
mov byte [esp + 0x20cc], 0xb
call fcn.0040d630
lea edx, [esp + 0x30]
push 0x5607a8
lea eax, [esp + 0x74]
push edx
push eax
mov dword [esp + 0x20], esi
call fcn.00413ae0
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x2c]
push ecx
push eax
push edx
mov byte [esp + 0x20e0], 0xd
call fcn.00413bf0
mov eax, dword [eax + 4]
add esp, 0x18
cmp eax, esi
jne 0x4a226b
mov eax, 0x535104
lea ecx, [esp + 0x14]
push ecx
push 1
push esi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 1
lea ecx, [esp + 0x24]
mov edi, eax
call fcn.0040d630
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x20cc], 0xb
call fcn.0040d630
cmp edi, esi
je 0x4a23af
cmp edi, 5
jne 0x4a2483
mov byte [esp + 0x20c8], 2
lea ecx, [esp + 0x98]
call fcn.004a1e60
inc ebp
cmp ebp, 2
jge 0x4a248f
xor esi, esi
jmp 0x4a212c
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
lea edx, [esp + 0x20]
push esi
lea eax, [esp + 0xd0]
push edx
push eax
mov ebp, 0x1000
push esi
push ecx
mov dword [esp + 0x34], ebp
call edi
test eax, eax
jne 0x4a2391
mov bl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], bl
call fcn.0040d630
lea edx, [esp + 0xc0]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0x20]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.0040fea0
mov ecx, dword [esp + 0x20d4]
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x20cc], 7
mov eax, dword [ecx + 8]
push eax
call fcn.004a6c00
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x20cc], 6
call fcn.0040d630
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0xd0]
inc esi
push eax
push ecx
push esi
push edx
mov dword [esp + 0x34], ebp
call edi
test eax, eax
je 0x4a2305
mov eax, dword [esp + 0x18]
push eax
call sym.SoftManager.exe__RegCloseKey360_4
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x80]
jmp 0x4a248a
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push esi
push esi
push esi
lea ecx, [esp + 0x24]
push esi
lea edx, [esp + 0xd0]
push ecx
push edx
mov ebp, 0x1000
push esi
push eax
mov dword [esp + 0x38], ebp
call edi
test eax, eax
jne 0x4a2471
mov bl, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x24], bl
call fcn.0040d630
lea ecx, [esp + 0xc0]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea edx, [esp + 0xc0]
lea ecx, [esp + 0x20]
push eax
push edx
call fcn.0040fea0
mov ecx, dword [esp + 0x20d4]
lea edx, [esp + 0x20]
push edx
push 1
mov eax, dword [ecx + 8]
mov byte [esp + 0x20d0], 0xe
push eax
call fcn.004a76e0
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x20cc], 0xb
call fcn.0040d630
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
lea eax, [esp + 0x24]
push 0
lea ecx, [esp + 0xd0]
inc esi
push eax
push ecx
push esi
push edx
mov dword [esp + 0x38], ebp
call edi
test eax, eax
je 0x4a23e3
mov eax, dword [esp + 0x14]
push eax
call sym.SoftManager.exe__RegCloseKey360_4
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x98]
call fcn.004a1e60
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x20cc], 1
call fcn.0040d630
mov ecx, dword [esp + 0x34]
xor esi, esi
cmp ecx, esi
je 0x4a24ca
mov al, byte [ecx - 1]
test al, al
je 0x4a24be
cmp al, 0xff
je 0x4a24be
dec al
mov byte [ecx - 1], al
jmp 0x4a24ca
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
pop edi
cmp ecx, esi
pop esi
pop ebp
pop ebx
je 0x4a2500
mov al, byte [ecx - 1]
test al, al
je 0x4a24f4
cmp al, 0xff
je 0x4a24f4
dec al
mov byte [ecx - 1], al
jmp 0x4a2500
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x20b0]
mov eax, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x20bc
ret