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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe40
mov eax, dword [0x4cc5a8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x49a4ec], 1
push ebx
push esi
push edi
jne 0x408b3c
cmp dword [0x516da0], 0
je 0x408de4
push 0x208
lea eax, [ebp - 0xa2c]
push 0
push eax
call fcn.00449240
mov eax, dword [0x50a534]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x408b64
push eax
call edi
push dword [0x5072cc]
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.0040a620
add esp, 0xc
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
push 0x54e7d0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00455534
push 0x46f1e8
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044c423
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044c423
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00455534
push 0x46f1e8
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0044c423
push 0x46f1ec
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0044c423
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.00455534
push 0x46f1e8
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0044c423
push 0x4701d0
lea eax, [ebp - 0x61c]
push 0x104
push eax
call fcn.0044c423
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.00455534
push 0x46f1e8
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0044c423
push str.SBU.exe
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0044c423
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.00455534
push 0x470210
lea eax, [ebp - 0xe3c]
push 0x104
push eax
call fcn.0044c423
add esp, 0x18
lea eax, [ebp - 0xe3c]
push eax
call ebx
mov eax, dword [0x50a534]
test eax, eax
je 0x408d4e
push eax
call edi
push 0x50a318
call ebx
test eax, eax
jne 0x408d60
push 0x50a318
call ebx
sub esp, 0x18
mov eax, 0x54ea04
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 0x54ea04
call fcn.0040a4a0
mov ecx, 0x51cdc8
call fcn.004132f0
test al, al
je 0x408db5
mov ecx, 0x51cdc8
call fcn.00412d30
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.004465ed
mov esp, ebp
pop ebp
ret