Function at 0x408360
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x4ca578]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x4984e8], 1
push esi
push edi
jne 0x40838b
cmp dword [0x50ce84], 0
je 0x408669
push 0x208
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.00447700
mov eax, dword [0x504e50]
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x4083b3
push eax
call esi
push dword [0x50f094]
call esi
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00407d80
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
push 0x53e5a0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044a958
push 0x46d7e0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044a9b2
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044a9b2
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.0044a958
push 0x46d7e0
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.0044a9b2
push str.ITS_SB_App_Switch.exe
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.0044a9b2
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x310]
add esp, 0x48
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0044a958
push 0x46d7e0
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0044a9b2
push str.Audio.dll
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0044a9b2
add esp, 0x24
lea eax, [ebp - 0x108]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.0044a958
push 0x46d7e0
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0044a9b2
push str.ITS_Process_Status.dll
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0044a9b2
add esp, 0x24
lea eax, [ebp - 0x108]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0044a958
push 0x46d7e0
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0044a9b2
push str.SBU.exe
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0044a9b2
add esp, 0x24
lea eax, [ebp - 0x108]
push eax
call edi
push 0x104
lea eax, [ebp - 0x61c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.004539f4
push 0x46ee1c
lea eax, [ebp - 0x824]
push 0x104
push eax
call fcn.0044a8e3
add esp, 0x18
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x504e50]
test eax, eax
je 0x4085f3
push eax
call esi
push 0x511ac8
call edi
test eax, eax
jne 0x408605
push 0x511ac8
call edi
sub esp, 0x18
mov eax, 0x53e6d0
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 0x408626
sub eax, esi
mov ecx, edx
sar eax, 1
push eax
push 0x53e6d0
call fcn.00409630
mov ecx, 0x511bf0
call fcn.00411f80
test al, al
je 0x40865a
mov ecx, 0x511bf0
call fcn.004118f0
lea eax, [ebp - 0x20c]
push eax
call fcn.00408680
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00444ab5
mov esp, ebp
pop ebp
ret