Function at 0x48a4ee
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x4104]
mov eax, 0x4104
call fcn.004e66f0
push 0xffffffffffffffff
push 0x4f7561
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5466b0]
xor eax, ebp
mov dword [ebp + 0x4100], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410c]
mov edx, dword [ebp + 0x4118]
mov edi, dword [ebp + 0x4110]
xor ebx, ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x3c], 1
cmp eax, 8
jne 0x48a77c
push 0x54cfe0
push 0x20
call fcn.004cba2a
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x48a579
mov esi, eax
call fcn.00460b7c
jmp 0x48a57b
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 1
cmp eax, ebx
je 0x48a97a
cmp edi, ebx
je 0x48a743
cmp dword [ebp + 0x4114], 2
jb 0x48a743
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x18]
call fcn.004310b0
mov esi, dword [eax]
push str.HKCU
push esi
call fcn.004cd988
pop ecx
pop ecx
test eax, eax
je 0x48a5ca
call fcn.0048b325
mov dword [ebp - 0x14], eax
jmp 0x48a5d1
mov dword [ebp - 0x14], SysStringLen
lea eax, [ebp - 0x18]
call fcn.0042afc0
cmp dword [ebp + 0x4114], 3
mov byte [ebp - 4], 2
mov esi, 0x20019
jb 0x48a61e
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x24]
call fcn.004310b0
mov eax, dword [eax]
push str.64key
push eax
call fcn.004cd988
mov ebx, eax
neg ebx
pop ecx
sbb bl, bl
pop ecx
lea eax, [ebp - 0x24]
inc bl
call fcn.0042afc0
test bl, bl
je 0x48a61e
mov esi, 0x20119
mov edi, dword [edi + 0x10]
and dword [ebp - 0x1c], 0
lea edx, [ebp - 0x24]
mov ecx, edi
call fcn.004310b0
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
push esi
xor esi, esi
push esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
neg ebx
sbb bl, bl
lea eax, [ebp - 0x24]
inc bl
call fcn.0042afc0
test bl, bl
je 0x48a73c
mov edi, 0xff
push edi
lea eax, [ebp + 0x4000]
push esi
push eax
call fcn.004d7710
add esp, 0xc
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x14], esi
je 0x48a733
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x24], eax
jae 0x48a733
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x4000]
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0x18], edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, esi
jne 0x48a729
lea esi, [ebp - 0x38]
call fcn.0040e9e0
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x40], esi
mov byte [ebp - 4], 4
test esi, esi
je 0x48a6fb
and dword [esi], 0
lea ebx, [ebp + 0x4000]
call fcn.0040c040
jmp 0x48a6fd
xor esi, esi
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.0040ed50
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
lea edx, [ebp - 0x38]
push edx
call dword [eax + 0x10]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.os::script_shared_ptr_class__variant__.0
call fcn.0040ea60
inc dword [ebp - 0x24]
xor esi, esi
jmp 0x48a69a
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 1
push 0x54cfe0
push 0x10
call fcn.004cba2a
xor ebx, ebx
pop ecx
pop ecx
cmp eax, ebx
je 0x48a96f
mov ecx, dword [ebp - 0x20]
mov dword [eax + 8], ecx
mov dword [ebp - 0x20], ebx
mov dword [eax], 5
jmp 0x48a971
cmp eax, 9
jne 0x48a996
push 0x54cfe0
push 0x20
call fcn.004cba2a
pop ecx
pop ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 6
cmp eax, ebx
je 0x48a7aa
mov esi, eax
call fcn.00460b7c
jmp 0x48a7ac
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 7
cmp eax, ebx
je 0x48a97a
cmp edi, ebx
je 0x48a743
cmp dword [ebp + 0x4114], 2
jb 0x48a743
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x18]
call fcn.004310b0
mov esi, dword [eax]
push str.HKCU
push esi
call fcn.004cd988
pop ecx
pop ecx
test eax, eax
je 0x48a7f7
call fcn.0048b325
mov dword [ebp - 0x14], eax
jmp 0x48a7fe
mov dword [ebp - 0x14], SysStringLen
lea eax, [ebp - 0x18]
call fcn.0042afc0
cmp dword [ebp + 0x4114], 3
mov byte [ebp - 4], 8
mov esi, 0x20019
jb 0x48a84b
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x1c]
call fcn.004310b0
mov eax, dword [eax]
push str.64key
push eax
call fcn.004cd988
mov ebx, eax
neg ebx
pop ecx
sbb bl, bl
pop ecx
lea eax, [ebp - 0x1c]
inc bl
call fcn.0042afc0
test bl, bl
je 0x48a84b
mov esi, 0x20119
mov edi, dword [edi + 0x10]
and dword [ebp - 0x24], 0
lea edx, [ebp - 0x1c]
mov ecx, edi
call fcn.004310b0
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push esi
xor esi, esi
push esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
neg ebx
sbb bl, bl
lea eax, [ebp - 0x1c]
inc bl
call fcn.0042afc0
test bl, bl
je 0x48a956
push esi
push esi
push esi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 0x24]
mov edi, 0x3fff
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x14], esi
je 0x48a94d
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x14]
jae 0x48a94d
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], edi
push dword [ebp - 0x24]
mov byte [ebp], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, esi
jne 0x48a943
lea esi, [ebp - 0x38]
call fcn.0040e9e0
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 0xa
test esi, esi
je 0x48a915
and dword [esi], 0
lea ebx, [ebp]
call fcn.0040c040
jmp 0x48a917
xor esi, esi
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 9
call fcn.0040ed50
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
lea edx, [ebp - 0x38]
push edx
call dword [eax + 0x10]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.os::script_shared_ptr_class__variant__.0
call fcn.0040ea60
inc dword [ebp - 0x1c]
xor esi, esi
jmp 0x48a8b6
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 7
jmp 0x48a743
xor eax, eax
mov ecx, dword [ebp - 0x2c]
push eax
call fcn.0040ed50
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x48aeb2
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
push 1
call dword [eax + 8]
jmp 0x48aeb2
cmp eax, 0xb
jne 0x48abbb
cmp dword [ebp + 0x4114], 4
jb 0x48abb0
cmp edi, ebx
je 0x48abb0
mov ecx, dword [edi + 4]
cmp ecx, ebx
je 0x48abb0
lea edx, [ebp - 0x18]
call fcn.004310b0
mov esi, dword [eax]
push str.HKCU
push esi
call fcn.004cd988
pop ecx
pop ecx
test eax, eax
je 0x48a9e4
call fcn.0048b325
mov dword [ebp - 0x14], eax
jmp 0x48a9eb
mov dword [ebp - 0x14], SysStringLen
lea eax, [ebp - 0x18]
call fcn.0042afc0
cmp dword [ebp - 0x14], ebx
je 0x48abb0
cmp dword [ebp + 0x4114], 5
mov dword [ebp - 4], 0xc
mov esi, 0x20006
jb 0x48aa44
mov ecx, dword [edi + 0x34]
lea edx, [ebp - 0x1c]
call fcn.004310b0
mov eax, dword [eax]
push str.64key
push eax
call fcn.004cd988
mov ebx, eax
neg ebx
pop ecx
sbb bl, bl
pop ecx
lea eax, [ebp - 0x1c]
inc bl
call fcn.0042afc0
test bl, bl
je 0x48aa44
mov esi, 0x20106
mov ecx, dword [edi + 0x10]
and dword [ebp - 0x20], 0
lea edx, [ebp - 0x1c]
call fcn.004310b0
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push esi
push 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
neg ebx
sbb bl, bl
lea eax, [ebp - 0x1c]
inc bl
call fcn.0042afc0
test bl, bl
je 0x48abb0
mov ecx, dword [edi + 0x28]
cmp dword [ecx], 2
je 0x48ab47
cmp dword [ecx], 3
je 0x48ab47
xor esi, esi
inc esi
cmp dword [ecx], esi
jne 0x48aaff
mov eax, dword [ecx + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48aaa0
sub eax, edx
push 0x54cfe0
push 0x10
lea ebx, [eax + 1]
call fcn.004cba2a
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xe
test eax, eax
je 0x48ab98
mov eax, dword [edi + 0x28]
cmp dword [eax], esi
jne 0x48aad5
mov eax, dword [eax + 8]
jmp 0x48aad7
xor eax, eax
mov edi, dword [edi + 0x1c]
cmp dword [edi], esi
jne 0x48aae3
mov edi, dword [edi + 8]
jmp 0x48aae5
xor edi, edi
push ebx
push eax
push esi
push 0
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cdq
push edx
push eax
mov eax, dword [ebp - 0x18]
jmp 0x48ab91
cmp dword [ecx], 6
jne 0x48aba7
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x48aba7
mov esi, dword [ebx + 0xc]
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xf
test eax, eax
je 0x48ab98
mov edi, dword [edi + 0x1c]
cmp dword [edi], 1
mov ebx, dword [ebx + 4]
jne 0x48ab3f
mov edi, dword [edi + 8]
jmp 0x48ab41
xor edi, edi
push esi
push ebx
push 3
jmp 0x48aae8
call fcn.0040c5f0
push 0x54cfe0
push 0x10
mov dword [ebp - 0x18], eax
call fcn.004cba2a
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x48ab98
mov edi, dword [edi + 0x1c]
cmp dword [edi], 1
jne 0x48ab75
mov edi, dword [edi + 8]
jmp 0x48ab77
xor edi, edi
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push edi
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cdq
push edx
push eax
mov eax, dword [ebp - 0x14]
call fcn.00431050
jmp 0x48ab9a
xor eax, eax
mov ecx, dword [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xc
call fcn.0040ed50
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x48aeb2
cmp eax, 7
jne 0x48ad3c
cmp dword [ebp + 0x4114], 4
jb 0x48ad31
cmp edi, ebx
je 0x48ad31
mov ecx, dword [edi + 4]
cmp ecx, ebx
je 0x48ad31
lea edx, [ebp - 0x20]
call fcn.004310b0
mov esi, dword [eax]
push str.HKCU
push esi
call fcn.004cd988
pop ecx
pop ecx
test eax, eax
je 0x48ac09
call fcn.0048b325
mov dword [ebp - 0x14], eax
jmp 0x48ac10
mov dword [ebp - 0x14], SysStringLen
lea eax, [ebp - 0x20]
call fcn.0042afc0
cmp dword [ebp - 0x14], ebx
je 0x48ad31
cmp dword [ebp + 0x4114], 5
mov dword [ebp - 4], 0x11
mov esi, 0x20006
jb 0x48ac69
mov ecx, dword [edi + 0x34]
lea edx, [ebp - 0x28]
call fcn.004310b0
mov eax, dword [eax]
push str.64key
push eax
call fcn.004cd988
mov ebx, eax
neg ebx
pop ecx
sbb bl, bl
pop ecx
lea eax, [ebp - 0x28]
inc bl
call fcn.0042afc0
test bl, bl
je 0x48ac69
mov esi, 0x20106
mov ecx, dword [edi + 0x10]
and dword [ebp - 0x1c], 0
lea edx, [ebp - 0x28]
call fcn.004310b0
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
push esi
push 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
neg ebx
sbb bl, bl
lea eax, [ebp - 0x28]
inc bl
call fcn.0042afc0
test bl, bl
je 0x48ad31
mov eax, dword [edi + 0x28]
cmp dword [eax], 6
jne 0x48ad28
mov esi, dword [eax + 8]
test esi, esi
je 0x48ad28
mov ebx, dword [esi + 0xc]
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x12
test eax, eax
je 0x48ad08
mov edi, dword [edi + 0x1c]
lea edx, [ebp - 0x14]
mov ecx, edi
call fcn.004310b0
mov byte [ebp - 4], 0x13
mov esi, dword [esi + 4]
mov eax, dword [eax]
push ebx
push esi
push 3
push 0
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cdq
push edx
push eax
mov eax, dword [ebp - 0x28]
call fcn.00431050
jmp 0x48ad0a
xor eax, eax
mov ecx, dword [ebp - 0x2c]
push eax
mov dword [ebp - 4], 0x14
call fcn.0040ed50
test byte [ebp - 0x18], 1
je 0x48ad28
lea eax, [ebp - 0x14]
call fcn.0042afc0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x48aeb2
cmp eax, 0xc
jne 0x48aea1
cmp dword [ebp + 0x4114], 4
jb 0x48ae99
cmp edi, ebx
je 0x48ae99
mov ecx, dword [edi + 4]
cmp ecx, ebx
je 0x48ae99
lea edx, [ebp - 0x28]
call fcn.004310b0
mov esi, dword [eax]
push str.HKCU
push esi
call fcn.004cd988
pop ecx
pop ecx
test eax, eax
je 0x48ad8a
call fcn.0048b325
mov dword [ebp - 0x14], eax
jmp 0x48ad91
mov dword [ebp - 0x14], SysStringLen
lea eax, [ebp - 0x28]
call fcn.0042afc0
cmp dword [ebp - 0x14], ebx
je 0x48ae99
cmp dword [ebp + 0x4114], 5
mov dword [ebp - 4], 0x16
mov esi, 0x20006
jb 0x48adea
mov ecx, dword [edi + 0x34]
lea edx, [ebp - 0x18]
call fcn.004310b0
mov eax, dword [eax]
push str.64key
push eax
call fcn.004cd988
mov ebx, eax
neg ebx
pop ecx
sbb bl, bl
pop ecx
lea eax, [ebp - 0x18]
inc bl
call fcn.0042afc0
test bl, bl
je 0x48adea
mov esi, 0x20106
mov ecx, dword [edi + 0x10]
and dword [ebp - 0x24], 0
lea edx, [ebp - 0x18]
call fcn.004310b0
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push esi
push 0
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
neg ebx
sbb bl, bl
lea eax, [ebp - 0x18]
inc bl
call fcn.0042afc0
test bl, bl
je 0x48ae99
mov ecx, dword [edi + 0x28]
cmp dword [ecx], 2
je 0x48ae2d
cmp dword [ecx], 3
jne 0x48ae90
call fcn.0040c5f0
push 0x54cfe0
push 0x10
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
call fcn.004cba2a
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x17
test eax, eax
je 0x48ae81
mov edi, dword [edi + 0x1c]
cmp dword [edi], 1
jne 0x48ae5e
mov edi, dword [edi + 8]
jmp 0x48ae60
xor edi, edi
push 8
lea eax, [ebp - 0x44]
push eax
push 0xb
push 0
push edi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cdq
push edx
push eax
mov eax, dword [ebp - 0x28]
call fcn.00431080
jmp 0x48ae83
xor eax, eax
mov ecx, dword [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0x16
call fcn.0040ed50
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x48aeb2
push edx
push dword [ebp + 0x4114]
push edi
push eax
call fcn.0046626b
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x4100]
xor ecx, ebp
call fcn.004cb38b
add ebp, 0x4104
leave
ret 0x10