Function at 0x496730
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov eax, edx
mov dword [ebp - 0x14], eax
push esi
mov esi, ecx
push edi
test eax, eax
je 0x496a5e
cmp dword [ebp + 8], 0
je 0x496a5e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x496a5e
mov eax, dword [eax]
xor edi, edi
mov ecx, eax
mov dword [ebp - 0xc], eax
shr ecx, 1
and ecx, 1
mov dword [ebp - 4], edi
and eax, 1
lea eax, [ecx + eax*2]
mov ecx, esi
mov eax, dword [eax*4 + 0x4ed9b4]
mov dword [ebp - 8], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x496783
sub ecx, edx
lea eax, [ecx + 0xc]
push eax
mov dword [ebp - 0x10], eax
call fcn.004c8cd1
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4967b8
push str._____synctex_open:_Memory_problem__1__n
call fcn.00498860
add esp, 4
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
sub ecx, esi
lea esp, [esp]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4967c0
mov ecx, ebx
call fcn.004988d0
mov ecx, ebx
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4967e0
sub ecx, edx
je 0x49685a
cmp dword [ebp + 0xc], edi
je 0x496817
push dword [ebp - 0x10]
lea edx, [ebp - 4]
mov dword [ebp - 4], edi
mov ecx, ebx
call fcn.00498af0
add esp, 4
test eax, eax
jne 0x49685a
mov eax, dword [ebp - 4]
test eax, eax
je 0x49685a
mov esi, ebx
mov ebx, eax
mov dword [ebp - 4], esi
jmp 0x496819
xor esi, esi
lea ecx, [ebx - 1]
lea edx, [ecx + 1]
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x496820
mov eax, dword [str..synctex]
mov dword [ecx], eax
mov eax, dword [0x55baac]
mov dword [ecx + 4], eax
mov al, byte [0x55bab0]
mov byte [ecx + 8], al
cmp ebx, edx
je 0x496878
push str..synctex
push str._____synctex_open:_Concatenation_problem__cant_add_suffix__s__n
call fcn.00498860
add esp, 8
mov edi, dword [ebp - 4]
push ebx
call fcn.004bf8aa
add esp, 4
push edi
call fcn.004bf8aa
add esp, 4
mov eax, 2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4968b5
lea ecx, [esi - 1]
lea edx, [ecx + 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x496882
mov eax, dword [str..synctex]
mov dword [ecx], eax
mov eax, dword [0x55baac]
mov dword [ecx + 4], eax
mov al, byte [0x55bab0]
mov byte [ecx + 8], al
cmp esi, edx
je 0x4968b5
push esi
call fcn.004bf8aa
add esp, 4
xor esi, esi
mov dword [ebp - 4], esi
push dword [ebp - 8]
push ebx
call dword [sym.imp.libmupdf.dll_gzopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x49698f
call fcn.004cf771
cmp dword [eax], 2
jne 0x496975
lea edi, [ebx - 1]
lea ecx, [edi + 1]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4968e0
mov eax, dword [0x55baa4]
mov dword [edi], eax
cmp ebx, ecx
je 0x4968ff
push 0x55baa4
jmp 0x49684a
mov eax, dword [ebp - 0xc]
or eax, 2
mov ecx, eax
mov dword [ebp - 0xc], eax
shr ecx, 1
and eax, 1
and ecx, 1
lea eax, [ecx + eax*2]
mov edx, dword [eax*4 + 0x4ed9b4]
mov dword [ebp - 8], edx
test esi, esi
je 0x496956
lea edi, [esi - 1]
lea ecx, [edi + 1]
lea esp, [esp]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x496930
mov eax, dword [0x55baa4]
mov dword [edi], eax
cmp esi, ecx
je 0x496956
push esi
call fcn.004bf8aa
mov edx, dword [ebp - 8]
add esp, 4
xor esi, esi
mov dword [ebp - 4], esi
push edx
push ebx
call dword [sym.imp.libmupdf.dll_gzopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x49698f
call fcn.004cf771
cmp dword [eax], 2
je 0x496857
call fcn.004cf771
push dword [eax]
push ebx
push str.SyncTeX:_could_not_open__s__error__i_n
call fcn.00498860
add esp, 0xc
jmp 0x496857
test esi, esi
je 0x496a43
push edi
call dword [sym.imp.libmupdf.dll_gzclose]
add esp, 4
push esi
push ebx
call fcn.004e1d64
add esp, 8
test eax, eax
je 0x4969fd
call fcn.004cf771
push dword [eax]
push esi
push ebx
push str.SyncTeX:_could_not_rename__s_to__s__error__i_n
call fcn.00498860
push dword [ebp - 8]
push ebx
call dword [sym.imp.libmupdf.dll_gzopen]
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x496a43
call fcn.004cf771
cmp dword [eax], 2
je 0x496857
call fcn.004cf771
push dword [eax]
push ebx
push str.SyncTeX:_could_not_open_again__s__error__i_n
call fcn.00498860
add esp, 0xc
jmp 0x496857
push dword [ebp - 8]
push esi
call dword [sym.imp.libmupdf.dll_gzopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x496a38
call fcn.004cf771
cmp dword [eax], 2
je 0x496857
call fcn.004cf771
push dword [eax]
push esi
push str.SyncTeX:_could_not_open_renamed__s__error__i_n
call fcn.00498860
add esp, 0xc
jmp 0x496857
push ebx
call fcn.004bf8aa
add esp, 4
mov ebx, esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [eax], edi
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret