Function at 0x408b10
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe40
mov eax, dword [0x4ce6a8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x49c5ec], 1
push ebx
push esi
push edi
jne 0x408b3c
cmp dword [0x518fd4], 0
je 0x408de4
push 0x208
lea eax, [ebp - 0xa2c]
push 0
push eax
call fcn.0044a900
mov eax, dword [0x50c768]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x408b64
push eax
call edi
push dword [0x5094fc]
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0xc34]
push 0x104
push eax
call fcn.0040a640
add esp, 0xc
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push 0x551208
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00456be4
push 0x4712dc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044dad3
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044dad3
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00456be4
push 0x4712dc
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0044dad3
push 0x4712e0
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0044dad3
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x414]
add esp, 0x48
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.00456be4
push 0x4712dc
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0044dad3
push 0x472330
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0044dad3
add esp, 0x24
lea eax, [ebp - 0x61c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x824]
push eax
call fcn.00456be4
push 0x4712dc
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0044dad3
push 0x472360
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0044dad3
add esp, 0x24
lea eax, [ebp - 0x824]
push eax
call ebx
push 0x104
lea eax, [ebp - 0xa2c]
push eax
push 0
call esi
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0xe3c]
push 0x104
push eax
call fcn.00456be4
push 0x472370
lea eax, [ebp - 0xe3c]
push 0x104
push eax
call fcn.0044dad3
add esp, 0x18
lea eax, [ebp - 0xe3c]
push eax
call ebx
mov eax, dword [0x50c768]
test eax, eax
je 0x408d4e
push eax
call edi
push 0x50c548
call ebx
test eax, eax
jne 0x408d60
push 0x50c548
call ebx
sub esp, 0x18
mov eax, 0x55143c
mov edx, esp
lea esi, [eax + 2]
mov dword [edx], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408d81
sub eax, esi
mov ecx, edx
sar eax, 1
push eax
push 0x55143c
call fcn.0040a4c0
mov ecx, 0x51eff8
call fcn.00413d80
test al, al
je 0x408db5
mov ecx, 0x51eff8
call fcn.00413790
lea eax, [ebp - 0x20c]
push eax
call fcn.00408e00
add esp, 4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x408de4
lea eax, [ebp - 0x20c]
push eax
call fcn.00408e00
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447cbd
mov esp, ebp
pop ebp
ret