Function at 0x4a2910
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x52ab92
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 ebx, ebx
push edi
push ebx
lea ecx, [esp + 0x58]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x58], al
call fcn.0040d630
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x30], cl
lea ecx, [esp + 0x30]
mov dword [esp + 0x1088], ebx
call fcn.0040d630
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x48]
mov byte [esp + 0x1088], 1
mov byte [esp + 0x48], dl
call fcn.0040d630
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x1088], 2
mov byte [esp + 0x20], al
call fcn.0040d630
mov esi, dword [esp + 0x108c]
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
push esi
call ebp
add esp, 4
lea ecx, [esp + 0x1c]
push eax
push esi
call fcn.0040fea0
push esi
mov byte [esp + 0x1088], 3
call ebp
add esp, 4
cmp word [esi + eax*2 - 2], 0x5c
je 0x4a2a38
lea edi, [eax - 1]
cmp edi, ebx
jl 0x4a2a38
lea eax, [esi + edi*2]
cmp word [eax], 0x5c
je 0x4a29e6
dec edi
sub eax, 2
cmp edi, ebx
jge 0x4a29d6
jmp 0x4a2a38
lea esi, [esi + edi*2 + 2]
push esi
call ebp
add esp, 4
lea ecx, [esp + 0x54]
push eax
push esi
call fcn.0040fea0
push edi
lea ecx, [esp + 0x68]
push ebx
push ecx
lea ecx, [esp + 0x28]
call fcn.004a60f0
mov edx, dword [0x535110]
lea ecx, [esp + 0x1c]
push edx
push ebx
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 ebx, dword [esp + 0x20]
test ebx, ebx
jne 0x4a2a4b
mov ecx, 0x535104
mov dword [esp + 0x14], ecx
jmp 0x4a2a51
mov dword [esp + 0x14], ebx
mov ecx, ebx
mov ax, word [ecx]
test ax, ax
je 0x4a2a6f
cmp ax, 0x5c
je 0x4a2a87
mov ax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x4a2a59
mov dword [esp + 0x14], ecx
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x1088], 2
call fcn.0040d630
jmp 0x4a2c38
mov dword [esp + 0x14], ecx
xor edi, edi
mov esi, 0x53a760
jmp 0x4a2a98
mov ebx, dword [esp + 0x20]
test ebx, ebx
jne 0x4a2aa1
mov ebx, 0x535104
mov eax, dword [esi]
push eax
call ebp
mov ecx, dword [esi]
push eax
push ecx
push ebx
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0x10
test eax, eax
je 0x4a2ac6
add esi, 0xc
inc edi
cmp esi, 0x53a808
jb 0x4a2a94
jmp 0x4a2a6f
mov edx, dword [esp + 0x14]
lea esi, [edx + 2]
push esi
call ebp
add esp, 4
lea ecx, [esp + 0x2c]
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 + 0x44]
push eax
push edi
call fcn.0040fea0
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x64]
push eax
push 0x5607a8
push ecx
call fcn.00413d10
add esp, 0xc
mov edx, dword [0x535110]
lea ecx, [esp + 0x44]
push edx
push 0
push eax
mov byte [esp + 0x1090], 5
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 + 0x20]
mov byte [esp + 0x1088], 2
call fcn.0040d630
test esi, esi
je 0x4a2c38
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x4a2b76
mov eax, 0x535104
xor ecx, ecx
cmp ebx, 1
sete cl
push ecx
push 1
push eax
lea ecx, [esp + 0x70]
call fcn.004a1d00
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], 0
test eax, eax
jne 0x4a2ba0
mov eax, 0x535104
lea edx, [esp + 0x14]
push edx
push 1
push 0
push eax
push esi
call ebp
test eax, eax
jne 0x4a2c28
mov eax, dword [esp + 0x58]
mov dword [esp + 0x3c], 0x1000
test eax, eax
jne 0x4a2bc6
mov eax, 0x535104
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x1c]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x4a2c05
cmp dword [esp + 0x40], 4
jne 0x4a2c05
mov ecx, dword [esp + 0x1090]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], 1
mov dword [ecx], eax
mov edx, dword [esp + 0x14]
push edx
call sym.SoftManager.exe__RegCloseKey360_4
cmp edi, 5
jne 0x4a2c2f
lea ecx, [esp + 0x64]
call fcn.004a1e60
inc ebx
cmp ebx, 2
jge 0x4a2c38
jmp 0x4a2b69
cmp eax, 5
jne 0x4a2c2f
jmp 0x4a2c14
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 + 0x30]
xor esi, esi
cmp ecx, esi
je 0x4a2c73
mov al, byte [ecx - 1]
test al, al
je 0x4a2c67
cmp al, 0xff
je 0x4a2c67
dec al
mov byte [ecx - 1], al
jmp 0x4a2c73
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
pop edi
cmp ecx, esi
pop esi
pop ebp
pop ebx
je 0x4a2ca9
mov al, byte [ecx - 1]
test al, al
je 0x4a2c9d
cmp al, 0xff
je 0x4a2c9d
dec al
mov byte [ecx - 1], al
jmp 0x4a2ca9
add ecx, 0xfffffffe
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x106c]
mov eax, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x1078
ret