Function at 0x460ce0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598a21
mov eax, dword fs:[0]
push eax
sub esp, 0x894
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x898], ecx
mov dword [ebp - 0x8a0], eax
test ecx, ecx
je 0x461302
test edx, edx
je 0x461302
mov ecx, edx
mov dword [ebp - 0x840], 0
xor eax, eax
mov dword [ebp - 0x83c], 7
mov word [ebp - 0x850], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460d55
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x850]
call fcn.0042daa0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x858], 0
mov dword [ebp - 0x854], 7
mov word [ebp - 0x868], ax
cmp dword [ebp - 0x83c], 8
lea edx, [ebp - 0x850]
mov ebx, dword [ebp - 0x840]
cmovae edx, dword [ebp - 0x850]
or esi, 0xffffffff
mov byte [ebp - 4], 1
test ebx, ebx
je 0x460de3
lea eax, [ebx - 1]
mov ecx, esi
cmp eax, esi
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea edi, [edx + ecx*2]
je 0x460ddd
mov edi, edi
cmp edi, edx
je 0x460de3
sub edi, 2
cmp word [edi], 0x5c
jne 0x460dd0
sub edi, edx
sar edi, 1
jmp 0x460de6
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x460df5
mov esi, 0x3f2
jmp 0x461265
lea ecx, [edi + 1]
mov dword [ebp - 0x14], 7
xor eax, eax
mov word [ebp - 0x28], ax
cmp ebx, ecx
jb 0x461323
sub ebx, ecx
lea eax, [ebp - 0x850]
cmp ebx, 0xffffffff
cmovb esi, ebx
cmp dword [ebp - 0x83c], 8
mov dword [ebp - 0x894], esi
cmovae eax, dword [ebp - 0x850]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x890], eax
cmp esi, 7
ja 0x460e68
mov dword [ebp - 0x18], esi
add esi, esi
push esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0054a880
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x888], eax
jmp 0x460ec8
cmp esi, 0x7ffffffe
ja 0x461328
mov ebx, esi
or ebx, 7
cmp ebx, 0x7ffffffe
jbe 0x460e88
mov ebx, 0x7ffffffe
jmp 0x460e92
mov eax, 0xa
cmp ebx, eax
cmovb ebx, eax
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.0042da40
add esi, esi
mov dword [ebp - 0x888], eax
push esi
push dword [ebp - 0x890]
push eax
call fcn.0054ae00
mov eax, dword [ebp - 0x888]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
mov esi, dword [ebp - 0x894]
mov edx, dword [ebp - 0x854]
cmp edx, 8
jb 0x460f08
mov ecx, dword [ebp - 0x868]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x460efe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46132d
push edx
push ecx
call fcn.00546044
add esp, 8
mov eax, dword [ebp - 0x888]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x868], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x864], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x860], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x85c], eax
xor eax, eax
cmp dword [ebp - 0x840], edi
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x850]
cmovb edi, dword [ebp - 0x840]
cmp dword [ebp - 0x83c], 8
push edi
cmovae eax, dword [ebp - 0x850]
push eax
mov dword [ebp - 0x858], esi
mov dword [ebp - 0x854], ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.0042daa0
mov edx, dword [ebp - 0x83c]
cmp edx, 8
jb 0x460fba
mov ecx, dword [ebp - 0x850]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x460fb0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46132d
push edx
push ecx
call fcn.00546044
add esp, 8
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x850]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x84c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x848], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x844], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x840], eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
mov dword [ebp - 0x83c], eax
lea eax, [ebp - 0x884]
push eax
push 0x2001f
push 0
cmovae ecx, edx
mov dword [ebp - 0x850], edx
push ecx
push dword [ebp - 0x898]
mov dword [ebp - 0x884], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x461265
push 0x800
push eax
lea eax, [ebp - 0x838]
push eax
call fcn.0054b380
add esp, 0xc
mov dword [ebp - 0x88c], esi
cmp dword [ebp - 0x854], 8
lea ecx, [ebp - 0x89c]
lea eax, [ebp - 0x868]
mov dword [ebp - 0x89c], 0x800
cmovae eax, dword [ebp - 0x868]
push ecx
lea ecx, [ebp - 0x838]
push ecx
lea ecx, [ebp - 0x88c]
push ecx
push esi
push eax
push dword [ebp - 0x884]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x46109e
push dword [ebp - 0x884]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x461265
xor eax, eax
mov dword [ebp - 0x870], 0
mov dword [ebp - 0x86c], 7
mov word [ebp - 0x880], ax
mov eax, dword [ebp - 0x88c]
mov byte [ebp - 4], 2
cmp eax, 4
jne 0x461108
push dword [ebp - 0x838]
xor eax, eax
push 0x5b11f0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x38]
push 0x13
push eax
call fcn.00461df0
add esp, 0x10
lea eax, [ebp - 0x38]
jmp 0x461118
cmp eax, 1
je 0x461112
cmp eax, 2
jne 0x461124
lea eax, [ebp - 0x838]
push eax
lea ecx, [ebp - 0x880]
call fcn.0045fd10
mov ebx, dword [ebp - 0x8a0]
lea eax, [ebp - 0x880]
push ebx
push eax
call fcn.004619e0
add esp, 8
test al, al
je 0x4611fe
mov eax, dword [ebx]
test eax, eax
jne 0x46116e
cmp dword [ebp - 0x854], 8
lea eax, [ebp - 0x868]
cmovae eax, dword [ebp - 0x868]
push eax
push dword [ebp - 0x884]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x4611fe
cmp eax, 1
jne 0x4611fe
mov edx, dword [ebp - 0x88c]
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x888], ecx
cmp edx, 4
jne 0x4611b9
cmp dword [ebx + 0x38], 8
lea eax, [ebx + 0x24]
jb 0x461197
mov eax, dword [eax]
push eax
call fcn.0055b3de
mov edx, dword [ebp - 0x88c]
lea ecx, [ebp - 0x888]
add esp, 4
mov dword [ebp - 0x888], eax
mov esi, 4
jmp 0x4611d8
cmp edx, 1
je 0x4611c3
cmp edx, 2
jne 0x4611d8
cmp dword [ebx + 0x38], 8
lea ecx, [ebx + 0x24]
jb 0x4611ce
mov ecx, dword [ecx]
mov eax, dword [ebx + 0x34]
lea esi, [eax*2 + 2]
cmp dword [ebp - 0x854], 8
lea eax, [ebp - 0x868]
push esi
cmovae eax, dword [ebp - 0x868]
push ecx
push edx
push 0
push eax
push dword [ebp - 0x884]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x884]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x86c]
xor esi, esi
cmp edx, 8
jb 0x46124c
mov ecx, dword [ebp - 0x880]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x461242
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46132d
push edx
push ecx
call fcn.00546044
add esp, 8
xor eax, eax
mov dword [ebp - 0x870], esi
mov dword [ebp - 0x86c], 7
mov word [ebp - 0x880], ax
mov edx, dword [ebp - 0x854]
cmp edx, 8
jb 0x4612a5
mov ecx, dword [ebp - 0x868]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46129b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46132d
push edx
push ecx
call fcn.00546044
add esp, 8
mov edx, dword [ebp - 0x83c]
xor eax, eax
mov dword [ebp - 0x858], 0
mov dword [ebp - 0x854], 7
mov word [ebp - 0x868], ax
cmp edx, 8
jb 0x4612fe
mov ecx, dword [ebp - 0x850]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4612f4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46132d
push edx
push ecx
call fcn.00546044
add esp, 8
mov eax, esi
jmp 0x461307
mov eax, 0x3f2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
call fcn.0043e8e0
call fcn.0042d9d0
call fcn.00555394
int3