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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8d4
mov eax, dword [0x41a04c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x290], ax
xor ebx, ebx
lea eax, [ebp - 0x28e]
push ebx
push eax
call fcn.00408fc0
add esp, 0xc
xor eax, eax
push esi
mov word [ebp - 0x498], ax
lea eax, [ebp - 0x496]
push ebx
push eax
call fcn.00408fc0
add esp, 0xc
push 0x200
lea eax, [ebp - 0x698]
push ebx
push eax
xor edi, edi
call fcn.00408fc0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x498]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x698]
push eax
call fcn.00401a76
pop ecx
test eax, eax
je 0x402484
lea eax, [ebp - 0x290]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x510]
push eax
lea eax, [ebp - 0x290]
push esi
push eax
call fcn.00405522
add esp, 0xc
push 0x415fe4
lea eax, [ebp - 0x290]
push esi
push eax
call fcn.00405522
add esp, 0xc
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x4f0]
push eax
push 0x10
push 0x41c5a0
call fcn.004054b3
add esp, 0xc
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.004027a0
lea eax, [ebp - 0x4f0]
push eax
call fcn.00402850
xor ecx, ecx
inc ecx
add esp, 0xc
cmp eax, ecx
jne 0x40230a
mov dword [0x41c5c0], ecx
xor eax, eax
jmp 0x40253c
xor eax, eax
push 0x3e
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x46]
push ebx
push eax
call fcn.00408fc0
add esp, 0xc
xor eax, eax
push 0x3e
mov word [ebp - 0x88], ax
lea eax, [ebp - 0x86]
push ebx
push eax
call fcn.00408fc0
add esp, 0xc
xor eax, eax
movzx ecx, word [ebp + eax - 0x4f0]
mov word [ebp + eax - 0x48], cx
inc eax
inc eax
cmp cx, bx
jne 0x40233c
xor eax, eax
movzx ecx, word [ebp + eax - 0x4f0]
mov word [ebp + eax - 0x88], cx
inc eax
inc eax
cmp cx, bx
jne 0x402352
lea edi, [ebp - 0x88]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x402371
mov esi, 0x415ff0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x48]
push eax
movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_OpenEventW]
push ebx
mov edi, 0x20000
push edi
call esi
cmp eax, ebx
je 0x4023e7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x88]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x8d4], ebx
jmp 0x4023db
cmp dword [ebp - 0x8d4], 5
jge 0x4023e7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x8d4]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x48]
push eax
push ebx
push edi
call esi
cmp eax, ebx
jne 0x4023ba
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
movzx ecx, word [ebp + eax - 0x694]
mov word [eax + 0x41c470], cx
inc eax
inc eax
cmp cx, bx
jne 0x402401
xor eax, eax
movzx ecx, word [ebp + eax - 0x612]
mov word [eax + 0x41c3f0], cx
inc eax
inc eax
cmp cx, bx
jne 0x402419
xor eax, eax
movzx ecx, word [ebp + eax - 0x5f2]
mov word [eax + 0x41c4f8], cx
inc eax
inc eax
cmp cx, bx
jne 0x402431
mov ax, word [ebp - 0x614]
mov word [0x41c4f0], ax
mov ax, word [ebp - 0x572]
mov word [0x41c578], ax
mov eax, dword [ebp - 0x4d0]
mov dword [0x41c57c], eax
lea eax, [ebp - 0x510]
push eax
push 0x10
push 0x41c580
call fcn.004054b3
jmp 0x402534
push 0x236
lea eax, [ebp - 0x8d0]
push ebx
push eax
call fcn.00408fc0
lea eax, [ebp - 0x8d0]
add esp, 0xc
push eax
call fcn.00402ae0
pop ecx
test eax, eax
je 0x40253a
xor eax, eax
movzx ecx, word [ebp + eax - 0x7c2]
mov word [eax + 0x41c3f0], cx
inc eax
inc eax
cmp cx, bx
jne 0x4024b0
mov ax, word [ebp - 0x7c6]
push dword [ebp - 0x7ca]
mov word [0x41c4f0], ax
mov ax, word [ebp - 0x7cc]
push 0x41c470
mov word [0x41c578], ax
call fcn.00402f40
push dword [ebp - 0x7d0]
push 0x41c4f8
call fcn.00402f40
lea eax, [ebp - 0x7a2]
push eax
push 0x10
push 0x41c5a0
call fcn.004054b3
add esp, 0x1c
lea eax, [ebp - 0x782]
push eax
push 0x10
push 0x41c580
call fcn.004054b3
mov eax, dword [ebp - 0x8c8]
mov dword [0x41c57c], eax
xor edi, edi
add esp, 0xc
inc edi
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004054a4
leave
ret