Function at 0x458670
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x510492
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
push ebx
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
je 0x4586b7
cmp eax, 2
jne 0x4589a3
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
lea esi, [esp + 0x20]
mov eax, edi
mov dword [esp + 0xf0], ecx
call fcn.00457130
cmp dword [eax + 0x18], 8
jb 0x4586dc
mov ebx, dword [eax + 4]
jmp 0x4586df
lea ebx, [eax + 4]
mov eax, dword [esp + 0x10]
test eax, eax
mov esi, dword [edi + 0x20]
je 0x4586f9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push 0x2001f
push 0
push ebx
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x458731
cmp eax, 2
mov dword [esp + 0x14], eax
jne 0x458735
push 0
push ebx
push esi
lea esi, [esp + 0x1c]
call fcn.0043bfe0
jmp 0x45873f
mov al, 1
jmp 0x45873f
mov dword [esp + 0x10], 0
xor al, al
test al, al
sete bl
cmp dword [esp + 0x38], 8
jb 0x458758
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004e7d7e
add esp, 4
test bl, bl
je 0x4587db
cmp dword [esp + 0x14], 5
je 0x458c99
cmp byte [ebp + 0x10], 0
jne 0x458c99
push 0
sub esp, 0x1c
mov edx, 0x51a1d4
mov eax, esp
mov dword [esp + 0x38], esp
call fcn.00406ac0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push 0
push edi
mov byte [esp + 0x134], 1
call fcn.00456fb0
mov edx, dword [esp + 0x50]
push 1
push edx
lea esi, [esp + 0xd4]
mov byte [esp + 0x134], 0
call fcn.004581e0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xf4], 2
call fcn.00458cc0
push 0x538898
lea eax, [esp + 0x40]
push eax
call fcn.004ed8eb
cmp byte [edi + 0x40], 0
je 0x45881c
lea esi, [esp + 0x20]
mov eax, edi
call fcn.00457130
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x4587fb
mov ecx, dword [eax + 4]
jmp 0x4587fe
lea ecx, [eax + 4]
mov eax, dword [edi + 0x20]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [esp + 0x38], esi
jb 0x45881c
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004e7d7e
add esp, 4
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.004358e0
test eax, eax
jbe 0x458914
mov dword [esp + 0x18], 0
jmp 0x458840
mov eax, dword [edi + 4]
test eax, eax
je 0x458865
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x1c], eax
jb 0x45886a
call fcn.004e89bf
mov ebx, dword [edi + 4]
add ebx, dword [esp + 0x18]
lea esi, [esp + 0x20]
cmp byte [ebx + 0x68], 0
mov eax, ebx
je 0x4588b2
call fcn.004476d0
cmp dword [eax + 0x18], 8
jb 0x45888d
mov eax, dword [eax + 4]
jmp 0x458890
add eax, 4
mov edx, dword [esp + 0x10]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4588a4
mov dword [esp + 0x14], eax
cmp dword [esp + 0x38], 8
jb 0x4588f5
mov eax, dword [esp + 0x24]
push eax
jmp 0x4588ed
call fcn.004476d0
mov byte [esp + 0xf0], 3
cmp dword [eax + 0x18], 8
jb 0x4588ca
mov eax, dword [eax + 4]
jmp 0x4588cd
add eax, 4
push ebx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0043c0b0
mov byte [esp + 0xf0], 0
cmp dword [esp + 0x38], 8
jb 0x4588f5
mov edx, dword [esp + 0x24]
push edx
call fcn.004e7d7e
add esp, 4
mov esi, dword [esp + 0x1c]
add dword [esp + 0x18], 0x70
add esi, 1
mov ecx, edi
mov dword [esp + 0x1c], esi
call fcn.004358e0
cmp esi, eax
jb 0x458840
cmp byte [ebp + 0xc], 0
je 0x458989
xor esi, esi
xor ebx, ebx
mov edi, edi
mov eax, dword [edi + 0x14]
test eax, eax
je 0x458989
mov ecx, dword [edi + 0x18]
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x458989
mov eax, dword [edi + 0x14]
test eax, eax
je 0x458962
mov ecx, dword [edi + 0x18]
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x458967
call fcn.004e89bf
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [edi + 0x14]
push ecx
push edx
add eax, ebx
push eax
call fcn.00458670
add esp, 0x10
add esi, 1
add ebx, 0x44
jmp 0x458920
mov dword [esp + 0xf0], 0xffffffff
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4589a3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x4589b4
cmp eax, 2
jne 0x458ca8
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea esi, [esp + 0x20]
mov eax, edi
mov dword [esp + 0xf0], 4
call fcn.00457130
cmp dword [eax + 0x18], 8
jb 0x4589df
mov ebx, dword [eax + 4]
jmp 0x4589e2
lea ebx, [eax + 4]
mov eax, dword [esp + 0x10]
test eax, eax
mov esi, dword [edi + 0x20]
je 0x4589fc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x10]
push ecx
push 0x2011f
push 0
push ebx
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x458a34
cmp eax, 2
mov dword [esp + 0x14], eax
jne 0x458a38
push 1
push ebx
push esi
lea esi, [esp + 0x1c]
call fcn.0043bfe0
jmp 0x458a42
mov al, 1
jmp 0x458a42
mov dword [esp + 0x10], 0
xor al, al
test al, al
sete bl
cmp dword [esp + 0x38], 8
jb 0x458a5b
mov edx, dword [esp + 0x24]
push edx
call fcn.004e7d7e
add esp, 4
test bl, bl
je 0x458af1
cmp dword [esp + 0x14], 5
je 0x458c99
cmp byte [ebp + 0x10], 0
jne 0x458c99
xor ebx, ebx
push ebx
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x38], esp
push ebx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
push 0x51a1d4
mov word [esi + 4], bx
call fcn.00407330
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push ebx
push edi
mov byte [esp + 0x134], 5
call fcn.00456fb0
mov eax, dword [esp + 0x50]
push 1
push eax
lea esi, [esp + 0xd4]
mov byte [esp + 0x134], 4
call fcn.004581e0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xf4], 6
call fcn.00458cc0
push 0x538898
lea ecx, [esp + 0x40]
push ecx
call fcn.004ed8eb
cmp byte [edi + 0x40], 0
je 0x458b32
lea esi, [esp + 0x20]
mov eax, edi
call fcn.00457130
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x458b11
mov ecx, dword [eax + 4]
jmp 0x458b14
lea ecx, [eax + 4]
mov eax, dword [edi + 0x20]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [esp + 0x38], esi
jb 0x458b32
mov edx, dword [esp + 0x24]
push edx
call fcn.004e7d7e
add esp, 4
mov ecx, edi
mov dword [esp + 0x18], 0
call fcn.004358e0
test eax, eax
jbe 0x458c25
mov dword [esp + 0x1c], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x458b76
mov ecx, dword [edi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x18], eax
jb 0x458b7b
call fcn.004e89bf
mov ebx, dword [edi + 4]
add ebx, dword [esp + 0x1c]
lea esi, [esp + 0x20]
cmp byte [ebx + 0x68], 0
mov eax, ebx
je 0x458bc3
call fcn.004476d0
cmp dword [eax + 0x18], 8
jb 0x458b9e
mov eax, dword [eax + 4]
jmp 0x458ba1
add eax, 4
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x458bb5
mov dword [esp + 0x14], eax
cmp dword [esp + 0x38], 8
jb 0x458c06
mov ecx, dword [esp + 0x24]
push ecx
jmp 0x458bfe
call fcn.004476d0
mov byte [esp + 0xf0], 7
cmp dword [eax + 0x18], 8
jb 0x458bdb
mov eax, dword [eax + 4]
jmp 0x458bde
add eax, 4
push ebx
push eax
lea edx, [esp + 0x18]
push edx
call fcn.0043c0b0
mov byte [esp + 0xf0], 4
cmp dword [esp + 0x38], 8
jb 0x458c06
mov eax, dword [esp + 0x24]
push eax
call fcn.004e7d7e
add esp, 4
mov esi, dword [esp + 0x18]
add dword [esp + 0x1c], 0x70
add esi, 1
mov ecx, edi
mov dword [esp + 0x18], esi
call fcn.004358e0
cmp esi, eax
jb 0x458b51
cmp byte [ebp + 0xc], 0
je 0x458c99
xor esi, esi
xor ebx, ebx
nop
mov eax, dword [edi + 0x14]
test eax, eax
je 0x458c99
mov ecx, dword [edi + 0x18]
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x458c99
mov eax, dword [edi + 0x14]
test eax, eax
je 0x458c72
mov ecx, dword [edi + 0x18]
sub ecx, eax
mov eax, 0x78787879
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x458c77
call fcn.004e89bf
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [edi + 0x14]
push edx
push eax
add ecx, ebx
push ecx
call fcn.00458670
add esp, 0x10
add esi, 1
add ebx, 0x44
jmp 0x458c30
mov eax, dword [esp + 0x10]
test eax, eax
je 0x458ca8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret