Function at 0x46d700
Capabilities:
Delete registry key
Delete registry value
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x768
mov eax, dword [0x53ba20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x50e510
push reloc.ACLUI.dll_CreateSecurityPage
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x4848
push 0
push 0x550f70
call fcn.004c52c0
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
add esp, 0xc
mov dword [0x550f78], 1
push 0x60
push dword [0x5408f0]
push 0x32
call ebx
push 0x60
push dword [0x5408f0]
mov dword [0x550f90], eax
push 0x28a
call ebx
push 0x60
push dword [0x5408ec]
mov dword [0x550f98], eax
push 0x64
call ebx
push 0x60
push dword [0x5408ec]
mov dword [0x550f8c], eax
push 0x384
call ebx
push 0x60
push dword [0x5408f0]
mov dword [0x550f94], eax
push 0x96
mov dword [0x550f70], 0x2c
call ebx
push 0x60
push dword [0x5408ec]
mov dword [0x550fbc], eax
push 0x96
call ebx
push 0x60
push dword [0x5408f0]
mov dword [0x550fb8], eax
push 0x28
mov dword [0x550f9c], 0x2c
call ebx
push 0x60
push dword [0x5408ec]
mov dword [0x550fe8], eax
push 0x28
call ebx
push 0x60
push dword [0x5408f0]
mov dword [0x550fe4], eax
push 0x28
mov dword [0x550fc8], 0x2c
call ebx
push 0x60
push dword [0x5408ec]
mov dword [0x551014], eax
push 0x28
call ebx
push 0x60
push dword [0x5408f0]
mov dword [0x551010], eax
push 0x28
mov dword [0x550ff4], 0x2c
call ebx
push 0x60
push dword [0x5408ec]
mov dword [0x551040], eax
push 0x28
call ebx
mov dword [0x55103c], eax
mov dword [0x551020], 0x2c
mov dword [0x555728], 0xffffffff
mov dword [0x555734], 0xffffffff
mov dword [0x555740], 0xffffffff
mov dword [0x55574c], 0xffffffff
xor esi, esi
mov dword [0x555758], 0xffffffff
mov dword [0x555764], 0xffffffff
mov dword [0x555770], 0xffffffff
mov dword [0x55577c], 0xffffffff
mov dword [0x555788], 0xffffffff
mov dword [0x5512fc], 6
nop word [eax + eax]
movzx eax, word [esi*4 + 0x537650]
push 0x60
push dword [0x5408ec]
mov dword [ebp + esi*4 - 0x5d4], eax
mov dword [esi*4 + 0x5513c0], eax
movzx eax, word [esi*4 + 0x537652]
push eax
call ebx
mov word [esi*2 + 0x551300], ax
inc esi
cmp esi, dword [0x5512fc]
jl 0x46d8c0
mov dword [0x55154c], 2
xor esi, esi
nop word [eax + eax]
movzx eax, word [esi*4 + 0x537668]
push 0x60
push dword [0x5408ec]
mov dword [esi*4 + 0x55165c], eax
movzx eax, word [esi*4 + 0x53766a]
push eax
call ebx
mov word [esi*2 + 0x551550], ax
inc esi
cmp esi, dword [0x55154c]
jl 0x46d910
mov dword [0x551618], 4
xor esi, esi
nop
movzx eax, word [esi*4 + 0x537670]
push 0x60
push dword [0x5408ec]
mov dword [esi*4 + 0x551590], eax
movzx eax, word [esi*4 + 0x537672]
push eax
call ebx
mov word [esi*2 + 0x55161c], ax
inc esi
cmp esi, dword [0x551618]
jl 0x46d950
lea eax, [ebp - 0x60]
push eax
push 0x5c
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0x48
push dword [0x5408f0]
mov dword [ebp - 0x50], 0x190
push 8
call ebx
neg eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], eax
lea esi, [ebp - 0x60]
mov ecx, 0x17
mov edi, 0x551078
rep movsd dword es:[edi], dword [esi]
push 0x50e568
call fcn.004c8c20
add esp, 4
mov dword [ebp - 0x768], eax
lea ecx, [ebp - 0x768]
push 0x537aa0
call fcn.00450b80
mov eax, dword [0x551078]
test eax, eax
jle 0x46da04
push 0x48
push dword [0x5408f0]
push eax
call ebx
neg eax
mov dword [0x551078], eax
lea eax, [ebp - 0x75c]
push eax
push 0x50e568
push reloc.ACLUI.dll_CreateSecurityPage
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x46dbb9
lea eax, [ebp - 0x760]
mov dword [ebp - 0x760], 0x6f8
push eax
lea eax, [ebp - 0x758]
push eax
push 0
push 0
push 0x50e5b8
push dword [ebp - 0x75c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46dbb9
mov eax, dword [ebp - 0x758]
add eax, 0xfffffe0b
cmp eax, 0x140
ja 0x46dbb9
mov edx, dword [ebp - 0x5d8]
xor ecx, ecx
mov esi, 0x7cf
test edx, edx
jle 0x46dadb
nop
mov ax, word [ebp + ecx*2 - 0x6c0]
dec ax
cmp ax, si
ja 0x46daa5
mov eax, dword [ebp + ecx*4 - 0x180]
dec eax
cmp eax, 0xa027
ja 0x46daa5
inc ecx
cmp ecx, edx
jl 0x46da80
jmp 0x46dadb
xor ecx, ecx
nop word [eax + eax]
mov ax, word [ebp + ecx*2 - 0x6c0]
dec ax
cmp ax, si
ja 0x46dbb9
mov eax, dword [ebp + ecx*4 - 0x5d4]
dec eax
cmp eax, 0xa027
ja 0x46dbb9
inc ecx
cmp ecx, edx
jl 0x46dab0
mov edx, dword [ebp - 0x554]
xor ecx, ecx
test edx, edx
jle 0x46db1b
nop word [eax + eax]
mov ax, word [ebp + ecx*2 - 0x640]
dec ax
cmp ax, si
ja 0x46dbb9
mov eax, dword [ebp + ecx*4 - 0x550]
dec eax
cmp eax, 0xa027
ja 0x46dbb9
inc ecx
cmp ecx, edx
jl 0x46daf0
mov edx, dword [ebp - 0x4d0]
xor ecx, ecx
test edx, edx
jle 0x46db53
nop word [eax + eax]
mov ax, word [ebp + ecx*2 - 0x680]
dec ax
cmp ax, si
ja 0x46dbb9
mov eax, dword [ebp + ecx*4 - 0x4cc]
dec eax
cmp eax, 0xa027
ja 0x46dbb9
inc ecx
cmp ecx, edx
jl 0x46db30
push dword [ebp - 0x760]
lea eax, [ebp - 0x758]
push eax
push 0x550f70
call fcn.004673b0
add esp, 0xc
push 0x50e5b8
push dword [ebp - 0x75c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x75c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x5552a4]
mov ecx, 0x64
test eax, eax
cmove eax, ecx
cmp dword [0x5513c0], 0
mov dword [0x5552a4], eax
jne 0x46dbb9
mov ecx, 0x20
lea esi, [ebp - 0x5d4]
mov edi, 0x5513c0
rep movsd dword es:[edi], dword [esi]
xor esi, esi
cmp dword [0x5512fc], esi
jle 0x46dc15
mov edi, 0x551300
mov ecx, 0x5513c0
nop dword [eax]
cmp dword [ecx], 3
lea ebx, [ecx + 4]
jne 0x46dc07
mov eax, dword [0x5512fc]
dec eax
mov dword [0x5512fc], eax
sub eax, esi
shl eax, 2
push eax
push ebx
push ecx
call fcn.004c4d40
mov eax, dword [0x5512fc]
sub eax, esi
add eax, eax
push eax
lea eax, [edi + 2]
push eax
push edi
call fcn.004c4d40
add esp, 0x18
inc esi
add edi, 2
mov ecx, ebx
cmp esi, dword [0x5512fc]
jl 0x46dbd0
xor esi, esi
or edi, 0xffffffff
cmp dword [0x5512fc], esi
jle 0x46dc93
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
nop dword [eax + eax]
cmp dword [esi*4 + 0x5513c0], 4
jne 0x46dc47
cmp byte [0x5552a2], 0
mov edi, esi
jne 0x46dc8e
jmp 0x46dc85
call fcn.0047d0f0
test al, al
jne 0x46dc85
cmp byte [0x5552a2], al
jne 0x46dc85
mov eax, dword [esi*4 + 0x5513c0]
sub eax, 0x649
cmp eax, 0x1b
ja 0x46dc85
push 0x30
push 0x4fc6f4
push 0x50e5d0
push 0
mov byte [0x5552a2], 1
call ebx
cmp edi, 0xffffffff
jne 0x46dcb1
inc esi
cmp esi, dword [0x5512fc]
jl 0x46dc30
cmp edi, 0xffffffff
jne 0x46dcb1
mov dword [esi*4 + 0x5513c0], 4
mov eax, 0xc8
mov word [esi*2 + 0x551300], ax
inc dword [0x5512fc]
xor esi, esi
cmp dword [0x5516e4], esi
jle 0x46dcdb
mov edi, 0x5516e8
push edi
push esi
push 0
call fcn.0046ae50
inc esi
add esp, 0xc
add edi, 0x5f4
cmp esi, dword [0x5516e4]
jl 0x46dcc0
cmp word [0x5554be], 0
jne 0x46dcfa
push 0x104
push 0x5554be
push 0x50e664
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push 0x551078
call ebx
mov dword [0x550f50], eax
lea edi, [ebp - 0x60]
lea eax, [ebp - 0x60]
mov ecx, 0x17
mov esi, 0x551078
rep movsd dword es:[edi], dword [esi]
push eax
mov byte [ebp - 0x4b], 1
call ebx
push dword [ebp - 0x768]
mov dword [0x550f54], eax
call fcn.004c8c7f
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004c3287
mov esp, ebp
pop ebp
ret