Function at 0x41d520
Capabilities:
Delete file

Disassembly:
mov eax, 0x1250
call fcn.004ad150
push ebx
push esi
mov esi, dword [esp + 0x125c]
xor ebx, ebx
push 1
push esi
mov dword [esp + 0x10], ebx
call fcn.00428370
add esp, 8
test eax, eax
je 0x41d867
push ebx
lea eax, [esp + 0xc]
push esi
push eax
call fcn.004611c0
add esp, 0xc
cmp eax, 1
je 0x41d867
mov eax, dword [esp + 8]
cmp eax, ebx
je 0x41d867
push ebx
push str.Count
push str.UpdateExt
push eax
call fcn.004617c0
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0xc], eax
jbe 0x41d851
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov dx, word [0x4da9a0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], dx
mov word [esp + 0x220], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x222]
mov word [esp + 0x1058], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x105a]
mov word [esp + 0xe50], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe52]
push ebx
rep stosd dword es:[edi], eax
push str.Name_d
lea ecx, [esp + 0xe58]
push 0x103
push ecx
stosw word es:[edi], ax
call esi
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x28]
push 0x103
lea eax, [esp + 0xe64]
push edx
push eax
push str.UpdateExt
push ecx
call fcn.00461670
mov dx, word [0x4da9a0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x85e]
mov word [esp + 0x85c], dx
add esp, 0x24
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push str.File_d
lea eax, [esp + 0x840]
push 0x103
push eax
call esi
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x230]
push 0x103
lea edx, [esp + 0x84c]
push ecx
push edx
push str.UpdateExt
push eax
call fcn.00461670
mov cx, word [0x4da9a0]
xor eax, eax
mov word [esp + 0xa64], cx
mov ecx, 0x81
lea edi, [esp + 0xa66]
add esp, 0x24
rep stosd dword es:[edi], eax
push ebx
push str.Version_d
lea edx, [esp + 0xa48]
push 0x103
push edx
stosw word es:[edi], ax
call esi
lea eax, [esp + 0x1068]
push 0x103
push eax
lea ecx, [esp + 0xa58]
mov edx, dword [esp + 0x28]
push ecx
push str.UpdateExt
push edx
call fcn.00461670
mov dx, word [0x4da9a0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xc6e]
mov word [esp + 0xc6c], dx
mov word [esp + 0x654], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x656]
mov word [esp + 0x44c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x44e]
push 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x5b36fc]
push 0x104
stosw word es:[edi], ax
lea eax, [esp + 0x65c]
push eax
push ecx
call fcn.00428380
add esp, 0x34
lea edx, [esp + 0x18]
lea eax, [esp + 0x630]
lea ecx, [esp + 0xc48]
push edx
push str.Extensions
push eax
push str._s_s_s_
push 0x103
push ecx
call esi
add esp, 0x18
lea edx, [esp + 0x18]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x630]
push edx
push eax
push str.Extensions
push ecx
push str._s_s_s_s.dll
lea edx, [esp + 0x43c]
push 0x103
push edx
call esi
lea eax, [esp + 0x444]
push 1
push eax
call fcn.00428370
add esp, 0x24
test eax, eax
je 0x41d807
mov eax, dword [0x5aad58]
test eax, eax
jne 0x41d807
xor edi, edi
lea ecx, [esp + 0x428]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41d7fd
push 0xa
call ebp
inc edi
cmp edi, 0x64
jl 0x41d7df
jmp 0x41d807
mov dword [0x5aad58], 1
lea edx, [esp + 0xc48]
lea eax, [esp + 0x220]
push edx
push eax
call fcn.004ac100
add esp, 8
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jb 0x41d59e
mov esi, dword [esp + 0x1264]
pop edi
pop ebp
lea eax, [esp + 8]
push 0
push eax
call fcn.004613c0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebx
add esp, 0x1250
ret 4