Function at 0x4120bc
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov eax, edx
mov dword [ebp - 0x18], eax
push esi
mov esi, ecx
push edi
test eax, eax
je 0x4123a2
cmp dword [ebp + 8], 0
je 0x4123a2
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4123a2
mov eax, dword [eax]
xor edi, edi
mov ecx, eax
mov dword [ebp - 0x10], 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 + 0x4f1fbc]
mov dword [ebp - 8], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41210f
sub ecx, edx
lea eax, [ecx + 0xc]
push eax
mov dword [ebp - 0x14], eax
call fcn.004c5e75
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x41213e
push str._____synctex_open:_Memory_problem__1__n
call fcn.00433711
xor eax, eax
pop ecx
inc eax
jmp 0x4123a5
mov ecx, ebx
sub ecx, esi
mov al, byte [esi]
mov byte [ecx + esi], al
inc esi
test al, al
jne 0x412142
mov edi, 0x4f1f08
push edi
push ebx
call fcn.004b86d0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x412164
mov esi, ebx
jmp 0x412177
inc esi
jmp 0x41216a
lea esi, [eax + 1]
push edi
push esi
call fcn.004b86d0
pop ecx
pop ecx
test eax, eax
jne 0x412167
mov edi, 0x4f310c
jmp 0x412181
lea esi, [eax + 1]
push edi
push esi
call fcn.004b86d0
pop ecx
pop ecx
test eax, eax
jne 0x41217e
push 0x4f3110
push esi
call fcn.004b86d0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4121c3
inc edi
jmp 0x4121a7
lea edi, [eax + 1]
push 0x4f3110
push edi
call fcn.004b86d0
pop ecx
pop ecx
test eax, eax
jne 0x4121a4
dec edi
xor ecx, ecx
cmp edi, esi
jbe 0x4121c5
mov byte [edi], cl
jmp 0x4121c5
xor ecx, ecx
mov edx, ebx
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4121ca
sub edx, esi
je 0x41238e
cmp dword [ebp + 0xc], 0
je 0x412209
push dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0xc]
mov ecx, ebx
call fcn.00413e05
pop ecx
test eax, eax
jne 0x41238e
cmp dword [ebp - 0xc], eax
je 0x41238e
mov ecx, ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41220c
mov edx, 0x4f12f4
mov esi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
test ecx, ecx
je 0x412232
dec ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x412223
mov edi, ecx
mov esi, edx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push dword [ebp - 8]
push ebx
call dword [sym.imp.libmupdf.dll_gzopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4122cc
call fcn.004c5185
cmp dword [eax], 2
je 0x41226f
call fcn.004c5185
push dword [eax]
push ebx
push str.SyncTeX:_could_not_open__s__error__i_n
call fcn.00433711
add esp, 0xc
mov edi, dword [ebp - 4]
jmp 0x412390
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412272
mov eax, dword [0x4f1300]
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
or eax, 2
mov dword [ebp - 0x10], eax
and eax, 1
mov ecx, dword [eax*8 + 0x4f1fc0]
mov eax, dword [ebp - 4]
mov dword [ebp - 8], ecx
test eax, eax
je 0x4122b0
lea edi, [eax - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4122a1
mov eax, dword [0x4f1300]
mov dword [edi], eax
push ecx
push ebx
call dword [sym.imp.libmupdf.dll_gzopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4122cc
call fcn.004c5185
cmp dword [eax], 2
je 0x412267
jmp 0x412252
cmp dword [ebp - 4], 0
je 0x412378
push esi
call dword [sym.imp.libmupdf.dll_gzclose]
mov esi, dword [ebp - 4]
push esi
push ebx
call fcn.004c4fbb
add esp, 0xc
test eax, eax
je 0x412334
call fcn.004c5185
push dword [eax]
push esi
push ebx
push str.SyncTeX:_could_not_rename__s_to__s__error__i_n
call fcn.00433711
push dword [ebp - 8]
push ebx
call dword [sym.imp.libmupdf.dll_gzopen]
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x412378
call fcn.004c5185
cmp dword [eax], 2
je 0x412267
call fcn.004c5185
push dword [eax]
push ebx
push str.SyncTeX:_could_not_open_again__s__error__i_n
jmp 0x41225f
push dword [ebp - 8]
push esi
call dword [sym.imp.libmupdf.dll_gzopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x41236e
call fcn.004c5185
cmp dword [eax], 2
je 0x412267
call fcn.004c5185
mov edi, dword [ebp - 4]
push dword [eax]
push edi
push str.SyncTeX:_could_not_open_renamed__s__error__i_n
call fcn.00433711
add esp, 0xc
jmp 0x412390
push ebx
call fcn.004c5e5a
mov ebx, dword [ebp - 4]
pop ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov eax, dword [ebp - 0x18]
mov dword [eax], ebx
xor eax, eax
jmp 0x4123a5
xor edi, edi
push ebx
call fcn.004c5e5a
push edi
call fcn.004c5e5a
pop ecx
pop ecx
push 2
jmp 0x4123a4
push 3
pop eax
pop edi
pop esi
pop ebx
leave
ret