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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c4302
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
push ebx
push esi
push edi
mov eax, dword [0x4ea6c4]
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 0x418b87
cmp eax, 2
jne 0x418e64
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
lea esi, [esp + 0x20]
mov eax, edi
mov dword [esp + 0xf0], ecx
call fcn.0041c980
cmp dword [eax + 0x18], 8
jb 0x418bac
mov ebx, dword [eax + 4]
jmp 0x418baf
lea ebx, [eax + 4]
mov eax, dword [esp + 0x10]
test eax, eax
mov esi, dword [edi + 0x20]
je 0x418bc9
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
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x418bf9
cmp eax, 2
mov dword [esp + 0x14], eax
jne 0x418bfd
push 0
push ebx
push esi
lea esi, [esp + 0x1c]
call fcn.0040a180
jmp 0x418c07
mov al, 1
jmp 0x418c07
mov dword [esp + 0x10], 0
xor al, al
test al, al
sete bl
cmp dword [esp + 0x38], 8
jb 0x418c20
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004abbe4
add esp, 4
test bl, bl
je 0x418ca3
cmp dword [esp + 0x14], 5
je 0x419159
cmp byte [ebp + 0x10], 0
jne 0x419159
push 0
sub esp, 0x1c
mov edx, 0x4cb7f8
mov eax, esp
mov dword [esp + 0x38], esp
call fcn.004016b0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push 0
push edi
mov byte [esp + 0x134], 1
call fcn.0041c800
mov edx, dword [esp + 0x50]
push 1
push edx
lea esi, [esp + 0xd4]
mov byte [esp + 0x134], 0
call fcn.004186b0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xf4], 2
call fcn.00419180
push 0x4e0d4c
lea eax, [esp + 0x40]
push eax
call fcn.004ae5f3
cmp byte [edi + 0x40], 0
je 0x418ce4
lea esi, [esp + 0x20]
mov eax, edi
call fcn.0041c980
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x418cc3
mov ecx, dword [eax + 4]
jmp 0x418cc6
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 0x418ce4
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004abbe4
add esp, 4
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.00404240
test eax, eax
jbe 0x418dd7
mov dword [esp + 0x18], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x418d28
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 0x418d2d
call fcn.004ac22f
mov ebx, dword [edi + 4]
add ebx, dword [esp + 0x18]
lea esi, [esp + 0x20]
cmp byte [ebx + 0x68], 0
mov eax, ebx
je 0x418d75
call fcn.004253f0
cmp dword [eax + 0x18], 8
jb 0x418d50
mov eax, dword [eax + 4]
jmp 0x418d53
add eax, 4
mov edx, dword [esp + 0x10]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x418d67
mov dword [esp + 0x14], eax
cmp dword [esp + 0x38], 8
jb 0x418db8
mov eax, dword [esp + 0x24]
push eax
jmp 0x418db0
call fcn.004253f0
mov byte [esp + 0xf0], 3
cmp dword [eax + 0x18], 8
jb 0x418d8d
mov eax, dword [eax + 4]
jmp 0x418d90
add eax, 4
push ebx
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.0040a1e0
mov byte [esp + 0xf0], 0
cmp dword [esp + 0x38], 8
jb 0x418db8
mov edx, dword [esp + 0x24]
push edx
call fcn.004abbe4
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.00404240
cmp esi, eax
jb 0x418d03
cmp byte [ebp + 0xc], 0
je 0x418e4a
xor esi, esi
xor ebx, ebx
mov eax, dword [edi + 0x14]
test eax, eax
je 0x418e4a
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 0x418e4a
mov eax, dword [edi + 0x14]
test eax, eax
je 0x418e23
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 0x418e28
call fcn.004ac22f
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.00418b40
add esp, 0x10
add esi, 1
add ebx, 0x44
jmp 0x418de1
mov dword [esp + 0xf0], 0xffffffff
mov eax, dword [esp + 0x10]
test eax, eax
je 0x418e64
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x418e75
cmp eax, 2
jne 0x419168
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.0041c980
cmp dword [eax + 0x18], 8
jb 0x418ea0
mov ebx, dword [eax + 4]
jmp 0x418ea3
lea ebx, [eax + 4]
mov eax, dword [esp + 0x10]
test eax, eax
mov esi, dword [edi + 0x20]
je 0x418ebd
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
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x418eed
cmp eax, 2
mov dword [esp + 0x14], eax
jne 0x418ef1
push 1
push ebx
push esi
lea esi, [esp + 0x1c]
call fcn.0040a180
jmp 0x418efb
mov al, 1
jmp 0x418efb
mov dword [esp + 0x10], 0
xor al, al
test al, al
sete bl
cmp dword [esp + 0x38], 8
jb 0x418f14
mov edx, dword [esp + 0x24]
push edx
call fcn.004abbe4
add esp, 4
test bl, bl
je 0x418faa
cmp dword [esp + 0x14], 5
je 0x419159
cmp byte [ebp + 0x10], 0
jne 0x419159
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 0x4cb7f8
mov word [esi + 4], bx
call fcn.00401700
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push ebx
push edi
mov byte [esp + 0x134], 5
call fcn.0041c800
mov eax, dword [esp + 0x50]
push 1
push eax
lea esi, [esp + 0xd4]
mov byte [esp + 0x134], 4
call fcn.004186b0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xf4], 6
call fcn.00419180
push 0x4e0d4c
lea ecx, [esp + 0x40]
push ecx
call fcn.004ae5f3
cmp byte [edi + 0x40], 0
je 0x418feb
lea esi, [esp + 0x20]
mov eax, edi
call fcn.0041c980
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x418fca
mov ecx, dword [eax + 4]
jmp 0x418fcd
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 0x418feb
mov edx, dword [esp + 0x24]
push edx
call fcn.004abbe4
add esp, 4
mov ecx, edi
mov dword [esp + 0x18], 0
call fcn.00404240
test eax, eax
jbe 0x4190e4
mov dword [esp + 0x1c], 0
lea ebx, [ebx]
mov eax, dword [edi + 4]
test eax, eax
je 0x419035
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 0x41903a
call fcn.004ac22f
mov ebx, dword [edi + 4]
add ebx, dword [esp + 0x1c]
lea esi, [esp + 0x20]
cmp byte [ebx + 0x68], 0
mov eax, ebx
je 0x419082
call fcn.004253f0
cmp dword [eax + 0x18], 8
jb 0x41905d
mov eax, dword [eax + 4]
jmp 0x419060
add eax, 4
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x419074
mov dword [esp + 0x14], eax
cmp dword [esp + 0x38], 8
jb 0x4190c5
mov ecx, dword [esp + 0x24]
push ecx
jmp 0x4190bd
call fcn.004253f0
mov byte [esp + 0xf0], 7
cmp dword [eax + 0x18], 8
jb 0x41909a
mov eax, dword [eax + 4]
jmp 0x41909d
add eax, 4
push ebx
push eax
lea edx, [esp + 0x18]
push edx
call fcn.0040a1e0
mov byte [esp + 0xf0], 4
cmp dword [esp + 0x38], 8
jb 0x4190c5
mov eax, dword [esp + 0x24]
push eax
call fcn.004abbe4
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.00404240
cmp esi, eax
jb 0x419010
cmp byte [ebp + 0xc], 0
je 0x419159
xor esi, esi
xor ebx, ebx
mov edi, edi
mov eax, dword [edi + 0x14]
test eax, eax
je 0x419159
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 0x419159
mov eax, dword [edi + 0x14]
test eax, eax
je 0x419132
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 0x419137
call fcn.004ac22f
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.00418b40
add esp, 0x10
add esi, 1
add ebx, 0x44
jmp 0x4190f0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x419168
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