Function at 0x401851
Capabilities:
Delete directory
Delete file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push ebx
push esi
push edi
lea eax, [ebp - 0x450]
xor edi, edi
push 0x104
mov ebx, ecx
push eax
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x450]
push 0xffffffffffffffff
push eax
call fcn.0040168c
pop ecx
mov dword [ebp - 0x34], eax
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], edi
call fcn.00406d13
mov ecx, eax
call fcn.00406c28
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x3c]
call fcn.004016cb
push dword [ebp - 0x40]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
lea ecx, [ebp - 0x30]
call fcn.004016cb
push dword [ebp - 0x34]
call esi
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0x34c]
push eax
push edi
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
call dword [sym.imp.ole32.dll_CoFreeAllLibraries]
cmp dword [ebx + 0xc8], edi
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x18], edi
jle 0x401976
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x248]
push 0x104
push eax
mov eax, dword [ebp - 0x20]
mov ax, word [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401961
lea eax, [ebp - 0x248]
push eax
call ebx
test eax, eax
jne 0x401961
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
cmp eax, 0x64
jge 0x401961
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40192e
inc dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
add dword [ebp - 0x20], 2
cmp ecx, dword [eax + 0xc8]
jl 0x401915
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push 0x40a180
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x104
push eax
lea eax, [ebp - 0x144]
push eax
push edi
push edi
push 0x40a170
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x144]
lea ecx, [ebp - 0x10]
push eax
call fcn.00401b83
push 0xffffffffffffffff
push 0x40a14c
call fcn.0040168c
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
pop ecx
pop ecx
mov dword [ebp - 4], eax
push eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040171c
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.00406c28
push eax
call ebx
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x144]
push 0xffffffffffffffff
push eax
call fcn.0040168c
push 0xffffffffffffffff
push 0x40a134
mov dword [ebp - 0x10], eax
call fcn.0040168c
add esp, 0x10
mov dword [ebp - 4], eax
push eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040171c
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.00406c28
push eax
call ebx
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x144]
push 0xffffffffffffffff
push eax
call fcn.0040168c
push 0xffffffffffffffff
push 0x40a11c
mov dword [ebp - 0x10], eax
call fcn.0040168c
add esp, 0x10
mov dword [ebp - 4], eax
push eax
call edi
push eax
push dword [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0040171c
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.00406c28
push eax
call ebx
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x144]
push 0xffffffffffffffff
push eax
call fcn.0040168c
push 0xffffffffffffffff
push 0x40a104
mov dword [ebp - 0x10], eax
call fcn.0040168c
add esp, 0x10
mov dword [ebp - 4], eax
push eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040171c
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.00406c28
push eax
call ebx
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x144]
push 0xffffffffffffffff
push eax
call fcn.0040168c
push 0xffffffffffffffff
push 0x40a0f4
mov dword [ebp - 0x10], eax
call fcn.0040168c
add esp, 0x10
mov dword [ebp - 4], eax
push eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040171c
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.00406c28
push eax
call ebx
lea ecx, [ebp - 0xc]
call fcn.004016cb
push dword [ebp - 0x10]
call esi
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x401b36
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x24], esi
pop edi
pop esi
pop ebx
je 0x401b47
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret