Function at 0x4a2520
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x52ab3d
push eax
mov eax, 0x106c
mov dword fs:[0], esp
call fcn.004c79b0
mov al, byte [esp + 3]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
lea ecx, [esp + 0x58]
mov dword [esp + 0x18], ebp
mov byte [esp + 0x58], al
call fcn.0040d630
mov cl, byte [esp + 0x13]
push ebp
mov byte [esp + 0x20], cl
lea ecx, [esp + 0x20]
mov dword [esp + 0x1088], ebp
call fcn.0040d630
mov dl, byte [esp + 0x13]
push ebp
lea ecx, [esp + 0x48]
mov byte [esp + 0x1088], 1
mov byte [esp + 0x48], dl
call fcn.0040d630
mov edi, dword [esp + 0x108c]
lea eax, [esp + 0x13]
push eax
push edi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x108c], 2
call fcn.004a6030
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
push edi
mov byte [esp + 0x1088], 3
call ebx
add esp, 4
cmp word [edi + eax*2 - 2], 0x5c
je 0x4a2634
lea esi, [eax - 1]
cmp esi, ebp
jl 0x4a2634
lea eax, [edi + esi*2]
cmp word [eax], 0x5c
je 0x4a25e2
dec esi
sub eax, 2
cmp esi, ebp
jge 0x4a25d2
jmp 0x4a2634
lea edi, [edi + esi*2 + 2]
push edi
call ebx
add esp, 4
lea ecx, [esp + 0x54]
push eax
push edi
call fcn.0040fea0
push esi
lea ecx, [esp + 0x68]
push ebp
push ecx
lea ecx, [esp + 0x40]
call fcn.004a60f0
mov edx, dword [0x535110]
lea ecx, [esp + 0x34]
push edx
push ebp
push eax
mov byte [esp + 0x1090], 4
call fcn.0040fca0
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0x1088], 3
call fcn.0040d630
mov ebp, dword [esp + 0x38]
mov ebx, 0x535104
test ebp, ebp
je 0x4a2643
mov ebx, ebp
mov ax, word [ebx]
test ax, ax
je 0x4a265d
cmp ax, 0x5c
je 0x4a2675
mov ax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0x4a264b
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x1088], 2
call fcn.0040d630
jmp 0x4a287d
xor edi, edi
mov esi, 0x53a760
jmp 0x4a2682
mov ebp, dword [esp + 0x38]
test ebp, ebp
jne 0x4a268b
mov ebp, 0x535104
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esi]
push eax
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0x10
test eax, eax
je 0x4a26b4
add esi, 0xc
inc edi
cmp esi, 0x53a808
jb 0x4a267e
jmp 0x4a265d
lea esi, [ebx + 2]
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
call ebx
add esp, 4
lea ecx, [esp + 0x1c]
push eax
push esi
call fcn.0040fea0
lea esi, [edi + edi*2]
shl esi, 2
mov edi, dword [esi + 0x53a764]
push edi
call ebx
add esp, 4
lea ecx, [esp + 0x44]
push eax
push edi
call fcn.0040fea0
lea edx, [esp + 0x1c]
lea eax, [esp + 0x64]
push edx
push 0x5607a8
push eax
call fcn.00413d10
add esp, 0xc
mov ecx, dword [0x535110]
mov byte [esp + 0x1084], 5
push ecx
push 0
push eax
lea ecx, [esp + 0x50]
call fcn.004a7080
push 1
lea ecx, [esp + 0x68]
mov byte [esp + 0x1088], 3
call fcn.0040d630
mov esi, dword [esi + 0x53a768]
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x1088], 2
call fcn.0040d630
test esi, esi
je 0x4a287d
xor ebx, ebx
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x4a2760
mov eax, 0x535104
xor edx, edx
cmp ebx, 1
sete dl
push edx
push 1
push eax
lea ecx, [esp + 0x70]
call fcn.004a1d00
mov eax, dword [esp + 0x20]
mov byte [esp + 0x1084], 6
test eax, eax
mov dword [esp + 0x18], 0
jne 0x4a2792
mov eax, 0x535104
lea ecx, [esp + 0x18]
push ecx
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a286d
mov eax, dword [esp + 0x58]
mov dword [esp + 0x2c], 0x1000
test eax, eax
jne 0x4a27c0
mov eax, 0x535104
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x7c]
push edx
lea edx, [esp + 0x34]
push ecx
push edx
push 0
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebp, eax
test ebp, ebp
jne 0x4a2842
mov eax, dword [esp + 0x30]
cmp eax, 2
je 0x4a27f1
cmp eax, 1
jne 0x4a2842
lea ecx, [esp + 0x7c]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esp + 0x1094]
add esp, 4
mov edi, eax
push 1
push edi
call fcn.0040ff60
test al, al
je 0x4a283a
mov edx, dword [esp + 0x1090]
lea ecx, [esp + 0x7c]
push edi
push ecx
mov eax, dword [edx + 4]
push eax
call fcn.0040db00
mov ecx, dword [esp + 0x109c]
add esp, 0xc
push edi
call fcn.0040ff40
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x18]
push edx
call sym.SoftManager.exe__RegCloseKey360_4
cmp ebp, 5
jne 0x4a2874
lea ecx, [esp + 0x64]
mov byte [esp + 0x1084], 2
call fcn.004a1e60
inc ebx
cmp ebx, 2
jge 0x4a287d
jmp 0x4a2753
cmp eax, 5
jne 0x4a2874
jmp 0x4a2851
lea ecx, [esp + 0x64]
call fcn.004a1e60
push 1
lea ecx, [esp + 0x48]
mov byte [esp + 0x1088], 1
call fcn.0040d630
mov ecx, dword [esp + 0x20]
xor esi, esi
cmp ecx, esi
je 0x4a28b8
mov al, byte [ecx - 1]
test al, al
je 0x4a28ac
cmp al, 0xff
je 0x4a28ac
dec al
mov byte [ecx - 1], al
jmp 0x4a28b8
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
pop edi
cmp ecx, esi
pop esi
pop ebp
pop ebx
je 0x4a28ee
mov al, byte [ecx - 1]
test al, al
je 0x4a28e2
cmp al, 0xff
je 0x4a28e2
dec al
mov byte [ecx - 1], al
jmp 0x4a28ee
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x106c]
mov eax, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x1078
ret