Function at 0x4077b0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x482dc0
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x4a39ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [ebp - 0x114]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4077f7
mov ax, word [0x48774c]
lea ecx, [ebp - 0x120]
mov word [edi], ax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
mov esi, eax
push str.Launcher.exe
lea ecx, [ebp - 0x118]
mov dword [ebp - 4], 0
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
mov ebx, dword [sym.imp.Engine.dll_public:_class_CTString___thiscall_CTString::operator_class_CTString_const__]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call ebx
lea ecx, [ebp - 0x118]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 4
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x130]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
mov esi, eax
push str.Launcher.exe
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 5
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
lea eax, [ebp - 0x11c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x12c]
mov ecx, esi
push eax
call ebx
lea ecx, [ebp - 0x11c]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 9
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
mov eax, dword [sym.imp.Engine.dll_long_int_g_iCountry]
mov eax, dword [eax]
cmp eax, 8
jne 0x4079a0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x124]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
mov esi, eax
push str.LW.exe
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0xa
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x120]
mov ecx, esi
push eax
call ebx
push eax
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 0xc
call dword [0x487274]
lea ecx, [ebp - 0x120]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea ecx, [ebp - 0x118]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 9
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x120]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
mov esi, eax
push str.LWNew.exe
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0xd
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x124]
mov ecx, esi
push eax
call ebx
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x12c]
jmp 0x4079ef
cmp eax, 3
jne 0x407a1e
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x120]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
mov esi, eax
push str.LastChaosThai.exe
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0x10
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 0x11
push eax
lea eax, [ebp - 0x124]
mov ecx, esi
push eax
call ebx
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x128]
push eax
call dword [0x487274]
lea ecx, [ebp - 0x124]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea ecx, [ebp - 0x118]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 9
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x124]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
mov esi, eax
push str.lccnctNew.dta
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0x13
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
lea eax, [ebp - 0x118]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x134]
mov ecx, esi
push eax
call ebx
lea ecx, [ebp - 0x118]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 0x17
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
push dword [ebp - 0x134]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x407b43
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x138]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
mov esi, eax
push str.lccnct.dta
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 0x18
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::constructor_char_const__]
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 0x19
push eax
lea eax, [ebp - 0x11c]
mov ecx, esi
push eax
call dword [sym.imp.Engine.dll_public:_class_CTString___thiscall_CTString::operator_class_CTString_const__]
lea ecx, [ebp - 0x130]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 0x17
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
push dword [ebp - 0x11c]
call edi
test eax, eax
jne 0x407b23
nop dword [eax]
push 0x1f4
call ebx
push dword [ebp - 0x11c]
call edi
test eax, eax
je 0x407b10
push dword [ebp - 0x11c]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
push dword [ebp - 0x134]
call esi
lea ecx, [ebp - 0x11c]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
push dword [ebp - 0x12c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x407b57
xor esi, esi
jmp 0x407b8e
call fcn.004076b0
push dword [ebp - 0x128]
call edi
test eax, eax
jne 0x407b7b
push 0x1f4
call ebx
push dword [ebp - 0x128]
call edi
test eax, eax
je 0x407b68
push dword [ebp - 0x128]
push dword [ebp - 0x12c]
call esi
mov esi, 1
lea ecx, [ebp - 0x134]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea ecx, [ebp - 0x12c]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
lea ecx, [ebp - 0x128]
call dword [sym.imp.Engine.dll_public:_void___thiscall_CTString::destructor_void_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047b11c
mov esp, ebp
pop ebp
ret