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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e7a09
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
push ebx
push esi
push edi
mov eax, dword [0x64c874]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov edi, dword [ebp + 8]
mov dword [esp + 0xf0], eax
lea esi, [esp + 0x20]
mov eax, edi
call fcn.00474910
cmp dword [eax + 0x18], 8
jb 0x47008c
mov ebx, dword [eax + 4]
jmp 0x47008f
lea ebx, [eax + 4]
mov eax, dword [esp + 0x10]
test eax, eax
mov esi, dword [edi + 0x20]
je 0x4700a9
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 0x4700d7
cmp eax, 2
mov dword [esp + 0x14], eax
jne 0x4700db
push ebx
push esi
lea esi, [esp + 0x18]
call fcn.0043a420
jmp 0x4700e5
mov al, 1
jmp 0x4700e5
mov dword [esp + 0x10], 0
xor al, al
test al, al
sete bl
cmp dword [esp + 0x38], 8
jb 0x4700fe
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0059b877
add esp, 4
test bl, bl
je 0x470177
cmp dword [esp + 0x14], 5
je 0x470318
push 0
sub esp, 0x1c
mov edx, 0x6190bc
mov eax, esp
mov dword [esp + 0x38], esp
call fcn.004024d0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x58], esp
push 0
push edi
mov byte [esp + 0x134], 1
call fcn.00474790
mov edx, dword [esp + 0x50]
push 1
push edx
lea esi, [esp + 0xd4]
mov byte [esp + 0x134], 0
call fcn.0046fbc0
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xf4], 2
call fcn.00470340
push 0x62a71c
lea eax, [esp + 0x40]
push eax
call fcn.005bed88
cmp byte [edi + 0x40], 0
je 0x4701b8
lea esi, [esp + 0x20]
mov eax, edi
call fcn.00474910
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x470197
mov eax, dword [eax + 4]
jmp 0x47019a
add eax, 4
mov ecx, dword [edi + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [esp + 0x38], esi
jb 0x4701b8
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0059b877
add esp, 4
mov ecx, edi
mov dword [esp + 0x1c], 0
call fcn.00428ee0
test eax, eax
jbe 0x4702ad
mov dword [esp + 0x18], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x4701fc
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 0x470201
call fcn.005b8b18
mov ebx, dword [edi + 4]
add ebx, dword [esp + 0x18]
lea esi, [esp + 0x20]
cmp byte [ebx + 0x68], 0
mov eax, ebx
je 0x47024c
call fcn.0046bd30
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x470228
mov eax, dword [eax + 4]
jmp 0x47022b
add eax, 4
mov edx, dword [esp + 0x10]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x47023f
mov dword [esp + 0x14], eax
cmp dword [esp + 0x38], esi
jb 0x47028e
mov eax, dword [esp + 0x24]
push eax
jmp 0x470286
call fcn.0046bd30
mov byte [esp + 0xf0], 3
cmp dword [eax + 0x18], 8
jb 0x470264
mov eax, dword [eax + 4]
jmp 0x470267
add eax, 4
push ebx
push eax
lea ebx, [esp + 0x18]
call fcn.0043a470
mov byte [esp + 0xf0], 0
cmp dword [esp + 0x38], 8
jb 0x47028e
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0059b877
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.00428ee0
cmp esi, eax
jb 0x4701d7
cmp byte [ebp + 0xc], 0
je 0x470318
xor esi, esi
xor ebx, ebx
mov eax, dword [edi + 0x14]
test eax, eax
je 0x470318
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 0x470318
mov eax, dword [edi + 0x14]
test eax, eax
je 0x4702f9
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 0x4702fe
call fcn.005b8b18
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0x14]
push edx
add eax, ebx
push eax
call fcn.00470030
add esp, 8
add esi, 1
add ebx, 0x44
jmp 0x4702b7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x470327
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