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

Disassembly:
mov eax, 0x47a21a
call fcn.00465b54
sub esp, 0xc8
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call fcn.0045e386
test al, al
jne 0x45ec65
call fcn.0045e39f
test al, al
mov eax, SysReAllocString
je 0x45ec6a
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 0x497b18
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x45eede
lea ecx, [ebp - 0x14]
call fcn.004036d7
mov ecx, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x45eede
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 0x497b10
push ecx
mov dword [ebp - 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
je 0x45ecd2
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 0x45ee67
mov edi, 0x104
lea eax, [ebp - 0x22]
push ebx
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], 0x47b4b8
mov dword [ebp - 0x34], 0x47b4b0
call fcn.0040580f
lea eax, [ebp - 0x21]
push ebx
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x7c], 0x47b4b8
mov dword [ebp - 0x5c], 0x47b4b0
call fcn.0040580f
push dword [ebp - 0x20]
lea eax, [ebp - 0xd4]
mov byte [ebp - 4], 2
mov dword [ebp - 0x28], edi
push 0x497b08
push eax
mov dword [ebp - 0x2c], edi
call esi
add esp, 0xc
lea eax, [ebp - 0x9c]
push dword [ebp - 0x20]
push 0x497afc
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0xa8]
lea ecx, [ebp - 0x7c]
push edi
push eax
call fcn.00406e9d
mov dword [ebp - 0x18], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 3
call fcn.0040650f
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 0x45edfe
lea eax, [ebp - 0xb4]
push edi
push eax
lea ecx, [ebp - 0x54]
call fcn.00406e9d
mov dword [ebp - 0x18], eax
mov ecx, dword [eax]
mov byte [ebp - 4], 4
call fcn.0040650f
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.00405c43
cmp byte [ebp - 0xd], bl
mov byte [ebp - 0xd], 1
jne 0x45ee01
mov byte [ebp - 0xd], bl
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 2
call fcn.00405c43
cmp byte [ebp - 0xd], bl
je 0x45ee41
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0xc]
call fcn.0041d11d
pop ecx
test al, al
pop ecx
lea eax, [ebp - 0x54]
push eax
jne 0x45eef9
push dword [ebp + 0xc]
call fcn.0041d11d
pop ecx
test al, al
pop ecx
jne 0x45ef3f
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00407f77
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00407f77
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], ecx
jbe 0x45ecee
inc ecx
lea eax, [ebp - 0xd4]
push ecx
push 0x497b08
push eax
call esi
mov eax, dword [ebp - 0x1c]
add esp, 0xc
inc eax
push eax
lea eax, [ebp - 0x9c]
push 0x497afc
push eax
call esi
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x9c]
push eax
call fcn.0040650f
push eax
lea ecx, [ebp - 0x14]
call fcn.004570c6
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0xd4]
push eax
call fcn.0040650f
push eax
lea ecx, [ebp - 0x14]
call fcn.004570c6
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 0x497b10
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004036d7
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push dword [ebp + 8]
call fcn.0041d11d
pop ecx
test al, al
pop ecx
jne 0x45ef66
lea ecx, [ebp - 0x54]
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 8]
call fcn.0040650f
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 0x45ef66
lea ecx, [ebp - 0x54]
call fcn.0040650f
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x9c]
push eax
call fcn.0040650f
push eax
lea ecx, [ebp - 0x14]
call fcn.004570c6
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.00407f77
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], bl
call fcn.00407f77
jmp 0x45eede