Function at 0x402163
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.004015ba
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.004074f6
mov ecx, eax
call fcn.0040740b
push eax
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x3c]
call fcn.00401d65
push dword [ebp - 0x40]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
lea ecx, [ebp - 0x30]
call fcn.00401d65
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 0x402288
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 0x402273
lea eax, [ebp - 0x248]
push eax
call ebx
test eax, eax
jne 0x402273
mov eax, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
cmp eax, 0x64
jge 0x402273
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402240
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 0x402227
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push 0x40b1f0
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 0x40b1e0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x144]
lea ecx, [ebp - 0x10]
push eax
call fcn.00402495
push 0xffffffffffffffff
push 0x40b1bc
call fcn.004015ba
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.0040202e
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.0040740b
push eax
call ebx
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x144]
push 0xffffffffffffffff
push eax
call fcn.004015ba
push 0xffffffffffffffff
push 0x40b1a4
mov dword [ebp - 0x10], eax
call fcn.004015ba
add esp, 0x10
mov dword [ebp - 4], eax
push eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040202e
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.0040740b
push eax
call ebx
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x144]
push 0xffffffffffffffff
push eax
call fcn.004015ba
push 0xffffffffffffffff
push 0x40b18c
mov dword [ebp - 0x10], eax
call fcn.004015ba
add esp, 0x10
mov dword [ebp - 4], eax
push eax
call edi
push eax
push dword [ebp - 4]
lea ecx, [ebp - 0x10]
call fcn.0040202e
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.0040740b
push eax
call ebx
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x144]
push 0xffffffffffffffff
push eax
call fcn.004015ba
push 0xffffffffffffffff
push 0x40b174
mov dword [ebp - 0x10], eax
call fcn.004015ba
add esp, 0x10
mov dword [ebp - 4], eax
push eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040202e
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.0040740b
push eax
call ebx
push dword [ebp - 0x10]
call esi
lea eax, [ebp - 0x144]
push 0xffffffffffffffff
push eax
call fcn.004015ba
push 0xffffffffffffffff
push 0x40b164
mov dword [ebp - 0x10], eax
call fcn.004015ba
add esp, 0x10
mov dword [ebp - 4], eax
push eax
call edi
push eax
lea ecx, [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040202e
push dword [ebp - 4]
call esi
lea ecx, [ebp - 0x10]
call fcn.0040740b
push eax
call ebx
lea ecx, [ebp - 0xc]
call fcn.00401d65
push dword [ebp - 0x10]
call esi
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x402448
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 0x402459
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret