Function at 0x10002ec0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e256
mov eax, dword fs:[0]
push eax
sub esp, 0x644
mov eax, dword [0x10014080]
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
mov edi, ecx
cmp word [edi + 0x314], 0
lea esi, [edi + 0x314]
mov dword [ebp - 0x650], esi
je 0x10003231
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.1000bad0
mov eax, dword [0x10015c78]
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x41e]
push eax
mov word [ebp - 0x420], dx
call fcn.1000bad0
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x626]
push edx
mov word [ebp - 0x628], cx
call fcn.1000bad0
mov eax, dword [edi]
mov edx, dword [eax + 8]
add esp, 0x18
mov ecx, edi
call edx
push eax
push 0x10011c0c
mov ecx, 0x104
lea ebx, [ebp - 0x628]
call fcn.100017c0
xor ebx, ebx
add esp, 8
cmp dword [edi + 0x724], ebx
je 0x100030d3
push str.TitanCore64.dll
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.TitanCore64.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x64c], ebx
mov dword [ebp - 0x648], ebx
mov dword [ebp - 4], ebx
mov ebx, esi
lea esi, [ebp - 0x64c]
call fcn.100043a0
test al, al
je 0x10003062
lea esi, [ebp - 0x644]
lea ecx, [ebp - 0x64c]
call fcn.10001860
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x10003011
mov eax, dword [eax]
push eax
push 0x10011c0c
mov ecx, 0x104
lea ebx, [ebp - 0x420]
call fcn.100017c0
add esp, 8
cmp dword [ebp - 0x630], esi
jb 0x10003041
mov ecx, dword [ebp - 0x644]
push ecx
call fcn.10004f27
add esp, 4
mov eax, dword [ebp - 0x64c]
xor esi, esi
cmp eax, esi
je 0x10003056
push eax
call fcn.100057d1
add esp, 4
mov dword [ebp - 0x64c], esi
mov dword [ebp - 0x648], esi
mov eax, dword [ebp - 0x650]
push 3
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x100031ed
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
mov ebx, eax
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x650]
push eax
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x218]
push ecx
push edx
push str._Titan__Failed_to_move__s_to__s__Error:__d
push ebx
call eax
add esp, 0x14
push 6
lea ecx, [ebp - 0x628]
push ecx
push str.update
push edi
mov edx, str.core
lea ecx, [ebp - 0x420]
call fcn.100033b0
jmp 0x10003213
push str.TitanCore.dll
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.TitanCore.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov dword [ebp - 0x64c], ebx
mov dword [ebp - 0x648], ebx
mov ebx, esi
lea esi, [ebp - 0x64c]
mov dword [ebp - 4], 1
call fcn.100043a0
test al, al
je 0x10003183
lea esi, [ebp - 0x644]
lea ecx, [ebp - 0x64c]
call fcn.10001860
mov esi, 8
cmp dword [eax + 0x14], esi
jb 0x10003132
mov eax, dword [eax]
push eax
push 0x10011c0c
mov ecx, 0x104
lea ebx, [ebp - 0x420]
call fcn.100017c0
add esp, 8
cmp dword [ebp - 0x630], esi
jb 0x10003162
mov ecx, dword [ebp - 0x644]
push ecx
call fcn.10004f27
add esp, 4
mov eax, dword [ebp - 0x64c]
xor esi, esi
cmp eax, esi
je 0x10003177
push eax
call fcn.100057d1
add esp, 4
mov dword [ebp - 0x64c], esi
mov dword [ebp - 0x648], esi
mov eax, dword [ebp - 0x650]
push 3
lea edx, [ebp - 0x218]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x100031ed
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
mov ebx, eax
mov esi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x650]
push eax
mov eax, dword [esi + 0xc]
lea ecx, [ebp - 0x218]
push ecx
push edx
push str._Titan__Failed_to_move__s_to__s__Error:__d
push ebx
call eax
add esp, 0x14
push 6
lea ecx, [ebp - 0x628]
push ecx
push str.update
push edi
mov edx, str.core
lea ecx, [ebp - 0x420]
call fcn.100033b0
jmp 0x10003213
push 0
lea edx, [ebp - 0x628]
push edx
push str.update
push edi
mov edx, str.core
lea ecx, [ebp - 0x420]
call fcn.100033b0
mov ecx, edi
call fcn.10001f80
mov eax, dword [ebp - 0x64c]
test eax, eax
je 0x10003226
push eax
call fcn.100057d1
add esp, 4
mov ecx, dword [ebp - 0x650]
xor eax, eax
mov word [ecx], ax
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.10004f18
mov esp, ebp
pop ebp
ret