Function at 0x460bf5
Capabilities:
Delete file
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x47cd0e
call fcn.00467ed8
sub esp, 0xc8
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call fcn.00460348
test al, al
jne 0x460c27
call fcn.00460361
test al, al
mov eax, SysReAllocString
je 0x460c2c
mov eax, reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], ebx
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x49bea0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x460ea0
lea ecx, [ebp - 0x14]
call fcn.00403677
mov ecx, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x460ea0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], ebx
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x49be98
push ecx
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x460c94
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 1
pop eax
cmp ecx, eax
mov dword [ebp - 0x20], eax
jb 0x460e29
mov edi, 0x104
lea eax, [ebp - 0x22]
push ebx
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], 0x47e4b8
mov dword [ebp - 0x34], 0x47e4b0
call fcn.0040590e
lea eax, [ebp - 0x21]
push ebx
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x7c], 0x47e4b8
mov dword [ebp - 0x5c], 0x47e4b0
call fcn.0040590e
push dword [ebp - 0x20]
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], edi
push 0x49be90
push eax
mov dword [ebp - 0x2c], edi
call esi
add esp, 0xc
lea eax, [ebp - 0x9c]
push dword [ebp - 0x20]
push 0x49be84
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0x7c]
push edi
push eax
call fcn.00406c57
mov dword [ebp - 0x18], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 3
call fcn.00406617
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xd4]
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x460dc0
lea eax, [ebp - 0xb4]
push edi
push eax
lea ecx, [ebp - 0x54]
call fcn.00406c57
mov dword [ebp - 0x18], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 4
call fcn.00406617
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ecx + 8], eax
lea ecx, [ebp - 0x28]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x9c]
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
lea ecx, [ebp - 0xb4]
sete byte [ebp - 0xd]
mov byte [ebp - 4], 3
call fcn.00405d74
cmp byte [ebp - 0xd], bl
mov byte [ebp - 0xd], 1
jne 0x460dc3
mov byte [ebp - 0xd], bl
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.00405d74
cmp byte [ebp - 0xd], bl
je 0x460e03
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0xc]
call fcn.0041d77b
pop ecx
test al, al
pop ecx
lea eax, [ebp - 0x54]
push eax
jne 0x460ebb
push dword [ebp + 0xc]
call fcn.0041d77b
pop ecx
test al, al
pop ecx
jne 0x460f01
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00407d51
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00407d51
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], ecx
jbe 0x460cb0
inc ecx
lea eax, [ebp - 0xd4]
push ecx
push 0x49be90
push eax
call esi
mov eax, dword [ebp - 0x1c]
add esp, 0xc
inc eax
push eax
lea eax, [ebp - 0x9c]
push 0x49be84
push eax
call esi
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x9c]
push eax
call fcn.00406617
push eax
lea ecx, [ebp - 0x14]
call fcn.00458e7d
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xd4]
push eax
call fcn.00406617
push eax
lea ecx, [ebp - 0x14]
call fcn.00458e7d
mov eax, dword [ebp - 0x1c]
push 4
inc eax
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push ebx
push 0x49be98
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403677
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push dword [ebp + 8]
call fcn.0041d77b
pop ecx
test al, al
pop ecx
jne 0x460f28
lea ecx, [ebp - 0x54]
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 8]
call fcn.00406617
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
lea eax, [ebp - 0x9c]
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x460f28
lea ecx, [ebp - 0x54]
call fcn.00406617
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x9c]
push eax
call fcn.00406617
push eax
lea ecx, [ebp - 0x14]
call fcn.00458e7d
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00407d51
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00407d51
jmp 0x460ea0