Function at 0x10046046
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100735d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x100462d5
lea eax, [ebp + 0x24]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
test eax, eax
je 0x100460d2
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x84], eax
push 1
mov ecx, dword [ebp - 0x84]
call fcn.1000fa89
mov ecx, dword [ebp - 0x58]
mov eax, dword [eax]
mov dword [ecx], eax
jmp 0x100462d3
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x3c], 0x16b1
cmp dword [ebp - 0x3c], 0x62a
jge 0x100462b1
mov dword [ebp - 0xa0], 0x71
mov dword [ebp - 0xb8], 0x237
mov dword [ebp - 0xa4], 0x72
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x10009138
call fcn.10059dcf
add esp, 0x10
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jge 0x10046136
push 0x10009144
call fcn.1005a0ff
pop ecx
and dword [ebp - 0x28], 0
and dword [ebp - 0x8c], 0
lea eax, [ebp - 0x8c]
push eax
push 0x237
lea ecx, [ebp - 0x9c]
call fcn.10052c7a
and dword [ebp - 4], 0
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0xd]
push eax
push 0x237
lea ecx, [ebp - 0xb4]
call fcn.100535bc
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x68], 0
je 0x10046284
lea eax, [ebp - 0x30]
push eax
push 0x10008a30
call fcn.10059dcf
pop ecx
pop ecx
mov eax, dword [ebp - 0x30]
add eax, 0x72
push eax
lea ecx, [ebp - 0x9c]
call fcn.1000fa89
mov eax, dword [eax]
cmp eax, dword [ebp - 0x2c]
jl 0x100461ba
jmp 0x10046178
mov eax, dword [ebp - 0x30]
add eax, 0x72
push eax
lea ecx, [ebp - 0x9c]
call fcn.1000fa89
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x30]
add eax, 0x71
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x1c], 0
je 0x1004627f
push dword [ebp - 0x14]
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xb4]
call fcn.1005363d
mov ecx, eax
call fcn.10053681
movzx eax, al
test eax, eax
je 0x1004621c
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
jmp 0x100461e6
push 1
push dword [ebp - 0x14]
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0xb4]
call fcn.1005363d
mov ecx, eax
call fcn.1005365c
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x20], eax
jmp 0x10046251
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x34]
cmp dword [ebp - 0x20], eax
jg 0x1004627a
push dword [ebp - 0x20]
lea ecx, [ebp - 0x9c]
call fcn.1000fa89
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
jmp 0x1004624a
jmp 0x100461e6
jmp 0x10046178
push dword [ebp - 0x28]
push 0x10008230
call fcn.100598a3
pop ecx
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb4]
call fcn.1005361d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.1000fa6d
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x44]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x10046348
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
test eax, eax
je 0x100462fd
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x10046348
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x1004632b
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 1
jge 0x10046348
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x74]
call fcn.1000fa89
mov dword [eax], 3
jmp 0x10046320
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret