Function at 0x4373f0
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x1044
call fcn.004d3780
push ebx
mov ebx, dword [esp + 0x104c]
push ebp
push esi
test ebx, ebx
push edi
mov dword [esp + 0x10], 0
je 0x4377bf
mov ebp, dword [esp + 0x105c]
test ebp, ebp
je 0x4377bf
mov eax, dword [esp + 0x1060]
test eax, eax
je 0x4377bf
mov dx, word [0x4ffec0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x62e]
mov word [esp + 0x62c], dx
mov word [esp + 0x834], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x836]
push 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x6dcf84]
push 0x104
stosw word es:[edi], ax
lea eax, [esp + 0x83c]
push eax
push ecx
call fcn.004a7ac0
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea edx, [esp + 0x834]
lea eax, [esp + 0x62c]
push 0x4ef9c0
push edx
push 0x4ec998
push 0x103
push eax
call esi
lea ecx, [esp + 0x640]
push ecx
call fcn.004a7f30
add esp, 0x18
test eax, eax
je 0x4377bf
mov dx, word [0x4ffec0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xe4e]
mov word [esp + 0xe4c], dx
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xe50]
push 0x104
push eax
push ebx
mov ecx, 0x6b8dd4
call fcn.004774b0
test eax, eax
je 0x437697
mov ecx, dword [esp + 0x1060]
lea edx, [esp + 0xe4c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jl 0x43753b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1044
ret
mov eax, dword [esp + 0x1064]
test eax, eax
je 0x437697
lea eax, [esp + 0x10]
push reloc.DSOUND.dll_DirectSoundCreate
push eax
push str.Count
push str.UpdatePlugin
mov dword [esp + 0x20], 0
call fcn.004ae0e0
mov ecx, dword [esp + 0x20]
push reloc.DSOUND.dll_DirectSoundCreate
inc ecx
push ecx
push str.Count
push str.UpdatePlugin
call fcn.004ae2c0
mov dx, word [0x4ffec0]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa5e]
mov word [esp + 0xa5c], dx
add esp, 0x20
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xa3c]
push eax
push str.Name_d
push 0x103
push ecx
call esi
push reloc.DSOUND.dll_DirectSoundCreate
push 0xffffffffffffffff
lea edx, [esp + 0xa54]
push ebx
push edx
push str.UpdatePlugin
call fcn.004adf80
mov ax, word [0x4ffec0]
mov ecx, 0x81
mov word [esp + 0xc68], ax
xor eax, eax
lea edi, [esp + 0xc6a]
add esp, 0x24
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0xc44]
push ecx
push str.File_d
push 0x103
push edx
stosw word es:[edi], ax
call esi
push reloc.DSOUND.dll_DirectSoundCreate
push 0xffffffffffffffff
lea eax, [esp + 0xc5c]
push ebp
push eax
push str.UpdatePlugin
call fcn.004adf80
mov cx, word [0x4ffec0]
mov edx, dword [esp + 0x34]
mov word [esp + 0x38], cx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x3a]
rep stosd dword es:[edi], eax
add esp, 0x24
stosw word es:[edi], ax
push edx
push str.Version_d
lea eax, [esp + 0x1c]
push 0x103
push eax
call esi
mov ecx, dword [esp + 0x1070]
push reloc.DSOUND.dll_DirectSoundCreate
push 0xffffffffffffffff
lea edx, [esp + 0x2c]
push ecx
push edx
push str.UpdatePlugin
call fcn.004adf80
add esp, 0x24
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1044
ret
mov ax, word [0x4ffec0]
mov ecx, 0x81
mov word [esp + 0x21c], ax
xor eax, eax
lea edi, [esp + 0x21e]
push ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x838]
lea edx, [esp + 0x220]
push ecx
push str._sUpdate_s_
push 0x103
push edx
stosw word es:[edi], ax
call esi
lea eax, [esp + 0x230]
push eax
push ebp
call fcn.0049ca20
add esp, 0x1c
test eax, eax
je 0x43775c
mov cx, word [0x4ffec0]
xor eax, eax
mov word [esp + 0x14], cx
mov ecx, 0x81
lea edi, [esp + 0x16]
lea edx, [esp + 0x14]
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.00436fe0
add esp, 0x10
test eax, eax
je 0x43774a
lea ecx, [esp + 0x62c]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00436f00
add esp, 0xc
test eax, eax
je 0x43774a
mov dword [esp + 0x10], 1
lea eax, [esp + 0x21c]
push 0
push eax
call fcn.00436e70
add esp, 8
mov cx, word [0x4ffec0]
xor eax, eax
mov word [esp + 0x424], cx
mov ecx, 0x81
lea edi, [esp + 0x426]
push ebp
rep stosd dword es:[edi], eax
push 0x4eb504
lea edx, [esp + 0x42c]
push 0x103
push edx
stosw word es:[edi], ax
call esi
add esp, 0x10
lea eax, [esp + 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x424]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1044
ret