Function at 0x4021bd
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x413688
call fcn.00408cb8
sub esp, 0x164
push ebx
push esi
xor ebx, ebx
push edi
push ebx
mov esi, ecx
push ebx
push 0x1032
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebx
jle 0x4023e5
mov al, byte [ebp - 0xd]
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x2c], al
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov edi, 0x104
lea eax, [ebp - 0x170]
push edi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00408de0
add esp, 0xc
lea eax, [ebp - 0x170]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
push 0x1032
push dword [esi + 4]
call edi
mov dword [ebp - 0x1c], eax
mov al, byte [ebp - 0xd]
push ebx
lea ecx, [ebp - 0x3c]
mov byte [ebp - 0x3c], al
call fcn.00401189
or dword [ebp - 0x14], 0xffffffff
cmp dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], ebx
jle 0x4022fc
push 2
push dword [ebp - 0x14]
push 0x100c
push dword [esi + 4]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x4023cc
push 2
push eax
push 0x102c
push dword [esi + 4]
call edi
cmp eax, 2
jne 0x4022ed
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
push dword [ebp - 0x14]
call fcn.004026c4
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00402a66
add esp, 0xc
push dword [0x41449c]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
push ebx
push eax
call fcn.0040278a
push 1
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00401189
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x4022da
mov eax, 0x414290
lea ecx, [ebp - 0x2c]
push ecx
push 1
push ebx
push eax
push dword [ebp - 0x14]
lea ecx, [esi + 0xc]
call fcn.00404e78
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jl 0x40225a
mov al, byte [ebp - 0xd]
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x4c], al
call fcn.00401189
mov al, byte [ebp - 0xd]
push ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
mov byte [ebp - 0x5c], al
call fcn.00401189
mov edi, str.PowerLogger_Recoding_Files
mov byte [ebp - 4], 4
push edi
call fcn.00408e40
pop ecx
push eax
push edi
lea ecx, [ebp - 0x4c]
call fcn.00402858
mov edi, 0x41ec98
push edi
call fcn.00408e40
pop ecx
push eax
push edi
lea ecx, [ebp - 0x5c]
call fcn.00402858
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push ebx
push dword [esi + 8]
call edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00406af6
add esp, 0xc
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x28]
cmp eax, ebx
je 0x4023a9
mov ecx, dword [ebp - 0x24]
sub ecx, eax
sar ecx, 4
cmp dword [ebp - 0x18], ecx
jae 0x4023a9
mov ecx, dword [ebp - 0x14]
add eax, ecx
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x402399
mov eax, 0x414290
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
inc dword [ebp - 0x18]
add dword [ebp - 0x14], 0x10
jmp 0x402374
push 1
push dword [esi + 8]
call edi
push 1
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00401189
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00401189
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00401189
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402755
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret