Function at 0x499634
Capabilities:
Delete registry value

Disassembly:
push 0x40
mov eax, 0x4af2c1
call fcn.004a956e
mov edi, ecx
mov dword [ebp - 0x28], edi
mov eax, dword [0x4b70c8]
mov esi, dword [ebp + 8]
cmp eax, 0x4b70c8
je 0x499671
test byte [eax + 0x1c], 1
je 0x499671
cmp byte [eax + 0x19], 5
jb 0x499671
push 1
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x1b
pop ecx
call fcn.00498e15
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
push 0x4b8970
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00417475
push ebx
push 0xffffffffffffffff
push esi
push 0xffffffffffffffff
push 0x405b44
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
je 0x499a08
mov ecx, esi
call fcn.00417403
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.0041738c
lea ecx, [ebp - 0x10]
call fcn.00435b1a
push ebx
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0049acab
mov ebx, eax
mov edx, dword [0x4b70c8]
cmp edx, 0x4b70c8
je 0x499705
test byte [edx + 0x1c], 2
je 0x499705
cmp byte [edx + 0x19], 4
jb 0x499705
push ebx
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x4102dc
push 0x1c
pop ecx
call fcn.0041610f
mov edx, dword [0x4b70c8]
mov esi, dword [ebp - 0x10]
test ebx, ebx
jne 0x499a11
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.00495ed8
mov ebx, eax
mov dword [ebp - 0x24], eax
mov edx, dword [0x4b70c8]
cmp edx, 0x4b70c8
je 0x499754
test byte [edx + 0x1c], 2
je 0x499754
cmp byte [edx + 0x19], 4
jb 0x499754
push ebx
push esi
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x4102dc
push 0x1d
pop ecx
call fcn.00417794
mov edx, dword [0x4b70c8]
cmp ebx, 2
jne 0x49979a
mov ebx, 0x490
mov dword [ebp - 0x24], ebx
cmp edx, 0x4b70c8
je 0x499a47
test byte [edx + 0x1c], 2
je 0x499a11
cmp byte [edx + 0x19], 4
jb 0x499a11
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x4102dc
push 0x1e
pop ecx
call fcn.00416054
mov edx, dword [0x4b70c8]
test ebx, ebx
jne 0x499a11
push esi
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [0x4b70c8]
cmp ecx, 0x4b70c8
je 0x4997db
test byte [ecx + 0x1c], 2
je 0x4997db
cmp byte [ecx + 0x19], 4
jb 0x4997db
push eax
push esi
push dword [ecx + 0x14]
mov edx, 0x4102dc
push dword [ecx + 0x10]
push 0x1f
pop ecx
call fcn.00417794
mov eax, dword [edi]
cmp dword [eax + 0x2c], 0x41b410
mov eax, 0x4058b0
je 0x4997f0
mov eax, 0x4067a0
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041706d
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
push 0x2011f
push ecx
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x499838
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x499867
test byte [eax + 0x1c], 2
je 0x499867
cmp byte [eax + 0x19], 4
jb 0x499867
push edi
push dword [ebp - 0x1c]
mov edx, 0x4102dc
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x20
pop ecx
call fcn.00417794
test edi, edi
jne 0x49998d
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x4c]
call fcn.00495b62
mov edi, eax
mov ecx, dword [0x4b70c8]
cmp ecx, 0x4b70c8
je 0x4998aa
test byte [ecx + 0x1c], 2
je 0x4998aa
cmp byte [ecx + 0x19], 4
jb 0x4998aa
push edi
push dword [ecx + 0x14]
mov edx, 0x4102dc
push dword [ecx + 0x10]
push 0x21
pop ecx
call fcn.0041610f
test edi, edi
jne 0x49998d
cmp dword [ebp - 0x30], edi
jbe 0x49998d
mov ebx, dword [ebp - 0x4c]
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x34]
push edi
call fcn.00423367
and dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
push ecx
push 0x2011f
push 0
push dword [eax]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
jne 0x4998f5
and dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x499933
test byte [eax + 0x1c], 2
je 0x499933
cmp byte [eax + 0x19], 4
jb 0x499933
push edi
lea ecx, [ebp - 0x34]
call fcn.00423367
push dword [ebp - 0x14]
mov edx, 0x4102dc
push dword [eax]
mov eax, dword [0x4b70c8]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x22
pop ecx
call fcn.00417794
cmp dword [ebp - 0x14], 0
jne 0x499972
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ecx, dword [0x4b70c8]
cmp ecx, 0x4b70c8
je 0x499972
test byte [ecx + 0x1c], 2
je 0x499972
cmp byte [ecx + 0x19], 4
jb 0x499972
push eax
push esi
push dword [ecx + 0x14]
mov edx, 0x4102dc
push dword [ecx + 0x10]
push 0x23
pop ecx
call fcn.00417794
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x499980
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
cmp edi, dword [ebp - 0x30]
jb 0x4998be
mov ebx, dword [ebp - 0x24]
lea ecx, [ebp - 0x34]
call fcn.0042338c
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4999a3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.004174b0
mov eax, dword [ebp - 0x28]
push 0
push 0
push 0x3ea
mov eax, dword [eax]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [0x4bb544]
mov ecx, dword [ebp - 0x28]
call edi
mov edx, esi
mov ecx, eax
call fcn.0049c9d8
mov edx, dword [0x4b70c8]
cmp edx, 0x4b70c8
je 0x499a47
test byte [edx + 0x1c], 2
je 0x499a11
cmp byte [edx + 0x19], 4
jb 0x499a11
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x4102dc
push 0x24
pop ecx
call fcn.00416054
jmp 0x499a0b
mov esi, dword [ebp - 0x10]
mov edx, dword [0x4b70c8]
cmp edx, 0x4b70c8
je 0x499a47
test byte [edx + 0x1c], 1
je 0x499a47
movzx ecx, byte [edx + 0x19]
mov eax, ebx
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
cmp ecx, eax
jb 0x499a47
push ebx
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x4102dc
push 0x25
pop ecx
call fcn.0041610f
lea ecx, [esi - 0x10]
call fcn.004174b0
cmp dword [ebp - 0x40], 0
je 0x499a5e
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
call fcn.004a953c
ret 8