Function at 0x474810
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x1454
call fcn.004d4ce0
push ebx
lea eax, [esp + 4]
push reloc.DSOUND.dll_DirectSoundCreate
push eax
xor ebx, ebx
push str.Count
push str.UpdatePlugin
mov dword [esp + 0x14], ebx
call fcn.004af430
mov eax, dword [esp + 0x14]
add esp, 0x10
cmp eax, ebx
jbe 0x474b2c
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
push edi
mov dx, word [0x500df0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x836]
mov word [esp + 0x834], dx
mov word [esp + 0x14], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x125c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x125e]
mov word [esp + 0x1054], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1056]
push ebx
rep stosd dword es:[edi], eax
push str.Name_d
lea ecx, [esp + 0x105c]
push 0x103
push ecx
stosw word es:[edi], ax
call esi
push reloc.DSOUND.dll_DirectSoundCreate
lea edx, [esp + 0x848]
push 0x104
lea eax, [esp + 0x106c]
push edx
push eax
push str.UpdatePlugin
call fcn.004af1b0
mov cx, word [0x500df0]
xor eax, eax
mov word [esp + 0x650], cx
mov ecx, 0x81
lea edi, [esp + 0x652]
add esp, 0x24
rep stosd dword es:[edi], eax
push ebx
push str.File_d
lea edx, [esp + 0x634]
push 0x103
push edx
stosw word es:[edi], ax
call esi
push reloc.DSOUND.dll_DirectSoundCreate
lea eax, [esp + 0x28]
push 0x104
lea ecx, [esp + 0x644]
push eax
push ecx
push str.UpdatePlugin
call fcn.004af1b0
mov dx, word [0x500df0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xc6a]
mov word [esp + 0xc68], dx
add esp, 0x24
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
push str.Version_d
lea eax, [esp + 0xc4c]
push 0x103
push eax
call esi
push reloc.DSOUND.dll_DirectSoundCreate
lea ecx, [esp + 0x1270]
push 0x104
lea edx, [esp + 0xc5c]
push ecx
push edx
push str.UpdatePlugin
call fcn.004af1b0
mov dx, word [0x500df0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa62]
mov word [esp + 0xa60], dx
mov word [esp + 0x448], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x44a]
push 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x73ff2c]
push 0x104
stosw word es:[edi], ax
lea eax, [esp + 0x450]
push eax
push ecx
call fcn.004a8e10
add esp, 0x34
lea edx, [esp + 0x424]
lea eax, [esp + 0xa3c]
push 0x4f0670
push edx
push 0x4ee3cc
push 0x103
push eax
call esi
mov cx, word [0x500df0]
xor eax, eax
mov word [esp + 0x230], cx
mov ecx, 0x81
lea edi, [esp + 0x232]
add esp, 0x14
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x834]
lea eax, [esp + 0x424]
push edx
push eax
push str._sUpdate_s_
lea ecx, [esp + 0x228]
push 0x103
push ecx
call esi
lea edx, [esp + 0x230]
lea eax, [esp + 0x28]
push edx
push eax
call fcn.0049de50
add esp, 0x1c
test eax, eax
je 0x474aff
mov cx, word [0x500df0]
xor eax, eax
mov word [esp + 0xe4c], cx
mov ecx, 0x81
lea edi, [esp + 0xe4e]
lea edx, [esp + 0xe4c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
push edx
lea eax, [esp + 0x224]
push str.plugin.ini
push eax
call fcn.004374a0
add esp, 0x10
test eax, eax
je 0x474aed
lea ecx, [esp + 0xa3c]
push 1
lea edx, [esp + 0xe50]
push ecx
push edx
call fcn.004373c0
add esp, 0xc
lea eax, [esp + 0x21c]
push 0
push eax
call fcn.00437330
add esp, 8
lea ecx, [esp + 0x14]
push ecx
call ebp
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jb 0x474858
pop edi
pop esi
pop ebp
push reloc.DSOUND.dll_DirectSoundCreate
push str.UpdatePlugin
call fcn.004aed20
add esp, 8
pop ebx
add esp, 0x1454
ret